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
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!ThanksN_G
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
Hi Mikhel,
Provide orderproductId from 'GetOrderProductsByOrderId' Aggregate in below action.
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