248
Views
3
Comments
Solved
A better way to manage Local Variables in OutSytems 10
Question

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.


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi,

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

Regards,

Daniel

2019-10-24 08-26-27
Babu Basha

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

2018-10-03 08-35-42
Garth Baker

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 

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