A better way to manage Local Variables in OutSytems 10

I have a form with a really large number of local variables. So if I have to make all of my local variables in Service Studio I am going to end up have endless scrolling whenever I have to find my variables. 

If set my local variables to a list of records I get a drop down which neatly tucks away the unnecessary variables into their categories.
The problem with the above method though is as soon as I Ajax Refresh I lose my variable values. and my form gets reset so I have to use a normal local variable.

Is there no way I can group my local variables into different groups in one Web Block.


Solution

Hi,

You can create structures to organise related attributes together. Then use the structure as data type for your local variables.

Regards,

Daniel

Solution

You can use Structure to organise attributes as Daniel mentioned.

 But if you don't want to create structure, you can also create a record and add attributes to them as well.

https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Data/Use_Structures_and_Records_to_Create_Compound_Data_Types

Babu Basha wrote:

You can use Structure to organise attributes as Daniel mentioned.

 But if you don't want to create structure, you can also create a record and add attributes to them as well.

https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Data/Use_Structures_and_Records_to_Create_Compound_Data_Types

Thank you for the link, it helped. :D