How to add/append data to show on listing screen as a draft copy before save to table

Hi, 

I m new to Outsystems, currently using outsystems ver.11 to do a web project. I am trying to create a screen which show a empty list at initial, then have Add button and Submit button. Add button will call the form input screen allow user to key in data and temporary stored and show on the list as draft records.  After adding few draft data records, once Submit button was clicked then only it will insert in to the entity.

May i know how can i do this using outsystems to temporary stored data in the listing at the client side.

Solution

Hi Kok,

You can create a local variable of list type may be of text type(may be of your choice) and then you can append that list one by one by adding the items to it(using list append system action) and at final stage you can call server action to save that record in the database. May i know where you got stuck while implementing this logic?

Regards,

Manish Jawla

Solution

Hi Kok,

As provided solution by @Manish. i created a demo.

Click Here Run time input


Hope this will help you.


Regards

Rahul Sahu

Yes. I use local variable with list data type. it works!. 

Thank you Manish Jawla  and Rahul Sahu

Rahul Sahu wrote:

Hi Kok,

As provided solution by @Manish. i created a demo.

Click Here Run time input


Hope this will help you.


Regards

Rahul Sahu

 Hi Rahul,

      I am searching for the same solution and i saw this thread, just  a question, how could i make it work in traditional web app? i'm having a hard time, implementing this. Hope you could help me, i know its not good to post a question within an existing thread, but i did it anyway. 

Thank you!

- Laurence