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

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.

mvp_badge
MVP
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

mvp_badge
MVP

Hi Kok,

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

Click Here Run time input


Hope this will help you.


Regards

Rahul Sahu

RunTimeData.oml

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





 

Hi Rahul

I'm using your solution in my project but I've come to an issue.

I have a similar task but my structure can't have a text value in it.so I changed Description input's variable to a List of Text and it displays same value in all rows.

Does this solution not work with List of Text datatype?

Thanks


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

Thank you Manish Jawla  and Rahul Sahu

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