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
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
Core Module
Hi Rahul ,
Please share OML file. I am not able to open your oap file.
thanks.
RestAPI
End User module
Customer_CS
Order_CS
Product_CS
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
Hello Bruno ,
I tried what you said but was unable to solve my issue .
In the input parameter Order, the OrderMap attribute should be a list of OrderMapStructure, this way you can iterate over that list.
Something like this:
RestAPI file
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