35
Views
4
Comments
Solved
Delete product
Application Type
Reactive

nHello, I am trying to delete a product but It wont work I dont know what is wrong with the actions I created. for reference I attached image and oml


DataModelIntegrity.oml
2021-10-01 12-43-46
N_SG
Solution

Hi @Mikhel Dela Cruz,

You need to make the following changes:
1-Create an input parameter named CurrentProductId with data type OrderProductIdentifier in the DeleteOnClick action.
2-Pass the current product ID to the CurrentProductId input parameter  (GetOrderProductsByOrderId.List.Current.OrderProduct.Id) .
3-Pass the CurrentProductId parameter to the DeleteProduct2 server action .Attached OML along with fixes.

Hope it helps!
Thanks
N_G


DataModelIntegrity.oml
2022-07-03 17-24-08
Sourabh sharma
Solution

Hi 

I have seen you missed only to pass the id to your deleteAction ..

Step-1 Create the Input Parameter with OrderProduct identifier 

Step-2 Pass the current Id like .

Final Step Your Delete action also required that current ID taht also you have to pass ..

Hope now you got this ... now 

Kind regards

 


2024-01-09 08-05-30
Dipali Shrawane

Hi Mikhel,

Provide orderproductId  from 'GetOrderProductsByOrderId' Aggregate in below action.

2021-03-08 09-24-09
Rúben Meireles

Hi all,

This should be the solution :) 


Like @Dipali Shrawane mentioned you are using the wrong aggregate in your delete action. You need to use the same as in the the table and that is the GetOrderProductsByOrderId. Adding inputs to the delete action its not needed and just generates confusion.

Cheers, 

Rúben 

2021-10-01 12-43-46
N_SG
Solution

Hi @Mikhel Dela Cruz,

You need to make the following changes:
1-Create an input parameter named CurrentProductId with data type OrderProductIdentifier in the DeleteOnClick action.
2-Pass the current product ID to the CurrentProductId input parameter  (GetOrderProductsByOrderId.List.Current.OrderProduct.Id) .
3-Pass the CurrentProductId parameter to the DeleteProduct2 server action .Attached OML along with fixes.

Hope it helps!
Thanks
N_G


DataModelIntegrity.oml
2022-07-03 17-24-08
Sourabh sharma
Solution

Hi 

I have seen you missed only to pass the id to your deleteAction ..

Step-1 Create the Input Parameter with OrderProduct identifier 

Step-2 Pass the current Id like .

Final Step Your Delete action also required that current ID taht also you have to pass ..

Hope now you got this ... now 

Kind regards

 


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