In an e-commerce application, when the user enters the ‘My Cart’ screen, the previously added products must be displayed. For this process, the Get From Bag action is used to retrieve the relevant cart data and present it to the user via the list component.
Configuration Steps:
- UI Design module, create the ‘My Cart’ screen.
- Add the list component (ListView, Table, etc.).
- Define the following action for the OnClick event of a button on the screen:
- + ADD ACTION → Bag → Get From Bag
- Enter the Bag Key value as a parameter:
- Example: ‘default’ or ‘currentUser.id + “_bag”’.
- Bind the action result to the data source of the Table element to display the contents to the user.