302
Views
8
Comments
Solved
Store form data in structure and display it on same screen or another screen.
Question
Application Type
Reactive

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.

DisplayStructure.oml
2021-06-02 20-50-04
Márcio Carvalho
Solution

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.

DisplayStructure.oml
2021-06-02 20-50-04
Márcio Carvalho

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.

DisplayStructure.oml
2021-05-13 04-25-29
Vinay Jangam

Thanks Márcio Carvalho, for your reply but I don't want to use entities.


2021-06-02 20-50-04
Márcio Carvalho
Solution

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.

DisplayStructure.oml
2021-05-13 04-25-29
Vinay Jangam

Thanks Márcio Carvalho ,I was looking for the same.


2023-10-21 19-42-11
Tousif Khan
Champion

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

2021-05-13 04-25-29
Vinay Jangam

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.

2023-10-21 19-42-11
Tousif Khan
Champion

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

2021-05-13 04-25-29
Vinay Jangam

Yes that's correct Tousif Khan, thanks for your guidance. 

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