16
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

Rank: #1729
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

Rank: #1729

Core Module

ECommerceSampleCS.oap

Hi Rahul ,

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

thanks.

Rank: #1729

RestAPI

RESTAPILIB.oml

Rank: #1729

End User module

ECommerceSample.oml

Rank: #1729

Customer_CS

CustomersCS.oml

Rank: #1729

Order_CS

OrdersCS.oml

Rank: #1729

Product_CS

ProductsCS.oml

Rank: #2596

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

Rank: #1729

Hello Bruno ,

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

Rank: #2596

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

Rank: #2596

Something like this:

RESTAPILIBV2.oml

Rank: #1729
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

Rank: #1729

RestAPI file

RESTAPILIB.oml

mvp_badge
MVP
Rank: #75

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