Hi all,
I have a form and I want to store the data in structure and display that data on same screen or another screen.
I would much prefer to display that data in another screen.
Please find the attachment.
Thank you.
If you want to add data from the form to a list, you need to use list append.
Also, I had the logic for Serialize and Deserialize as @Tousif Khan advised you to use. But next time, you should look at the available courses at OutSystems to learn a thing or two :)
To deserialize, you need to put in both screens a text input; that input in both screens will be deserialised using the same data type which was serialised.
Also, if you click on another link, for example, the menu, you must pass the serialised data to maintaining the data on your screens.
And in each screen you deserialize.
Check the OML and let us know if that's what you want.
Try to do this with the entity you are trying to create forms and list info
https://www.outsystems.com/product-updates/reactive-scaffolding/
What you are doing right now will not save anything. You would need to keep passing data through screens using input parameters. But it is better to save it on the database.
Also, this data action is not doing anything.
Check the OML to see if that's what you want.
Thanks Márcio Carvalho, for your reply but I don't want to use entities.
Thanks Márcio Carvalho ,I was looking for the same.
Hello
When We use loacal variable, and define structure to it, the local variable have scope to its screen only, you cannot use it on another screen, however if you want to performsuch thing then you need to define input variables to another sceen and then pass a value from parent screen to the destination screen where input parameters are defined,
if you are storing a local list then you need to pass the information using json and then pass it as a string and then you need to deserialize it on the destination screen.
Hope this helps
Best Regards Tousif Khan
Thanks Tousif Khan, for your reply.
Yes I understand that we cannot pass data without input parameter to another screen.
But we can display that data on the same screen right so it would be great if you help me with that. By editing the .oml file that I have shared.
As @Márcio Carvalho said you can use list append to append the form data to a structure
where you need to pass the form data and append it to a local structure list
Yes that's correct Tousif Khan, thanks for your guidance.