delete record from entity based on a list  (getting current / selected list value)
Application Type
Reactive

I am trying to delete a value from the entity/ table based on a list item shown on the screen. How to get the current value of the list from the screen and pass it to the delete SQL

RukkusHotel.oml

mvp_badge
MVP
Solution

Hi Rukkunudeen,

  • Define a wrapper server action (exposed as public) in the Core module, to delete the Room amenities record based on the RoomAmenityId input parameter value


  • Call the wrapper server action within the Delete screen action and pass the mapped Aggregate current RoomAmenity.Id value as shown below (Preferred Solution)
GetRoomAmenitiesByRoomId.List.Current.RoomAmenities.Id

Or else

  • Introduce an input parameter of RoomAmenityId type to the Delete screen action (which is mapped with the Delete button).

  • Set the mapped Aggregate current RoomAmenity.Id value as the delete action input parameter value, which will also be used as an input value to the delete server action node defined within the same flow.

Refer to the attached .oml file


I hope this helps you!


Kind regards,

Benjith Sam

RukkusHotel.oml

Thanks a lot

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