2024 Mar 31 4:47 AM - edited 2024 Mar 31 5:02 AM
Hi dear experts.
I am doing some mix between a lot of Youtube tutorials and now i am facing some troubles with List of Object.
I want to present a list of selected Items on my app. the selection takes place in a second Page with the help of a "Add New" Button.
For this i use an App Variable "List of Objects" to store the selected items in the second page and present this list in the first page.
Everithing is working for me but i want to add logic to my app to delete the "List Of Object" when you leave the first page or when you confirm the creation of the document in the fist page.
is there a way or function that can helpme to do this?
the only way i am thiking is to do several "Set App Variable" flow functions
IF(IS_EMPTY(appVars.LISTOFOBJECTSVAR)==true,appVars.LISTOFOBJECTSVAR,WITHOUT_ITEM(appVars.LISTOFOBJECTSVAR, LAST_ITEM(appVars.LISTOFOBJECTSVAR)))
I thik there will be a smarter way to do this
2024 Mar 31 5:16 AM - edited 2024 Mar 31 5:17 AM
2024 Apr 01 8:35 AM - edited 2024 Apr 01 8:36 AM
If you want it empty, why can't you just set it to empty or [ ] ?
This is what we do in our SAP Build CodeJam, when we want to delete the cart of items (or you can do via formula).
If you want to delete all records from, for example, on-device storage entity, you may need a loop like this.
2024 Apr 02 12:36 AM