185
Views
14
Comments
Solved
Unable to add multiple records
Application Type
Reactive, Service

Hello ,

I'm unable to add multiple products into OrdersMap entity . 

Also unable to delete the added product which are added in the user Interface .


I'm trying to implement 4 Layer Canvas . For that purpose I'm exposing the logic and connectivity with database in the RESTAPI_LIB module located in E-Commerce_Sample_CS

And the End User module is in the E-Commerce_Sample .

I'm attaching the following oml .


Thanking You ,

Regards ,

Rahul Gupta

ECommerceSample.oap
2020-10-22 12-15-35
Rahul Gupta
Solution

Hello , I tried you logic but was unable to solve my problem .

Can you check the End user module mistakes to solve my issue .

I'm attaching the latest oml files

ECommerceSample.oml
2020-10-22 12-15-35
Rahul Gupta

Core Module

ECommerceSampleCS.oap
2020-06-04 15-38-19
Samiksha Manekar

Hi Rahul ,

Please share OML file. I am not able to open your oap file.

thanks.

2020-10-22 12-15-35
Rahul Gupta

RestAPI

RESTAPILIB.oml
2020-10-22 12-15-35
Rahul Gupta

End User module

ECommerceSample.oml
2020-10-22 12-15-35
Rahul Gupta

Customer_CS

CustomersCS.oml
2020-10-22 12-15-35
Rahul Gupta

Order_CS

OrdersCS.oml
2020-10-22 12-15-35
Rahul Gupta

Product_CS

ProductsCS.oml
2020-12-31 12-12-07
Bruno Ferreira

Hi Rahul,

On the "For Each" action, you are iterating the ProductIds local variable and you didn't assign it (it's empty).
You can try to iterate the GetOrderById aggregate instead.


Best Regards,
Bruno Ferreira

2020-10-22 12-15-35
Rahul Gupta

Hello Bruno ,

I tried what you said but was unable to solve my issue .

2020-12-31 12-12-07
Bruno Ferreira

In the input parameter Order, the OrderMap attribute should be a list of OrderMapStructure, this way you can iterate over that list. 

2020-12-31 12-12-07
Bruno Ferreira

Something like this:

RESTAPILIBV2.oml
2020-10-22 12-15-35
Rahul Gupta
Solution

Hello , I tried you logic but was unable to solve my problem .

Can you check the End user module mistakes to solve my issue .

I'm attaching the latest oml files

ECommerceSample.oml
2020-10-22 12-15-35
Rahul Gupta

RestAPI file

RESTAPILIB.oml
2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Rahul,

I have checked the shared sample .oml file and felt that a lot of code-correction is required in the current End User Module/Add Order Screen implementation. Please check the attached updated .oml file.

Hope this helps you!


Kind regards,

Benjith Sam

ECommerceSample.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.