Have the local variables in actions sorted on name (or manual)
1519
Views
16
Comments
On our RadarOn our Radar
Service Studio

Hi,

When you have a lot of local variables in a action it's sometimes hard to find the variable.
The sort order is now the order of creating the variables.

It would be better to sort them on name of on a manual sort.

Sort local variables.JPG

Its a good idea.Sort by variable name is necessary for clear and systematic  view.

You can already manually order the variables. Use CTRL+up or down to change the order. When also adding an automated sort, this manual functionality will break. Personally I like the current possibility, because I can group variables together that belong to each other. 

Kind regards,

Remco Dekkinga

I mean it should not do it automatic but I would like to have the option:

- right click on action name and choose 'Sort local variables'

Remco thanks for key stroke tip, is there a list of other hidden key stokes?

I really like this idea! I agree this should be an option rather than default behavior.

One could even adjust the naming conventions to automatically group variables that way through prefixing.

The same functionality would also be great for screen variables and screen actions as well. The possibility to sort alphabetically should then show: Input variables (sorted A-Z), Local variables(sorted A-Z), and Screen actions (sorted A-Z).

Merged this idea with 'alphabetically sort local variables' (created on 02 May 2016 16:29:40 by Jason Herrington)
If you add a local variable to a page/webblock, please have them automatically sort in alphabetical order.

This comment was:
- originally posted on idea 'alphabetically sort local variables' (created on 02 May 2016 by Jason Herrington)
- merged to idea 'Have the local variables in actions sorted on name (or manual)' on 07 Sep 2021 06:58:27 by Kurt Vandevelde
I deliberately group screen/action variables together by purpose.

?J.Ja


This comment was:
- originally posted on idea 'alphabetically sort local variables' (created on 02 May 2016 by Jason Herrington)
- merged to idea 'Have the local variables in actions sorted on name (or manual)' on 07 Sep 2021 06:58:27 by Kurt Vandevelde
2016-04-21 20-09-55
J.
 
MVP
You can sort them yourselves, so what would be the advantage?



This comment was:
- originally posted on idea 'alphabetically sort local variables' (created on 02 May 2016 by Jason Herrington)
- merged to idea 'Have the local variables in actions sorted on name (or manual)' on 07 Sep 2021 06:58:27 by Kurt Vandevelde

I would like to have the opposite for screens, web blocks and screen actions. Allow me to move them into any order that I want. I find myself forcing a name of an object to make sure they group together.  A simple example, I like action names to be like getCalculatedVariable() and setCalculatedVariable(), but I have to name it CalcuatedVariable_get() and CalculatedVariable_set().
Just my two cents.



This comment was:
- originally posted on idea 'alphabetically sort local variables' (created on 02 May 2016 by Jason Herrington)
- merged to idea 'Have the local variables in actions sorted on name (or manual)' on 07 Sep 2021 06:58:27 by Kurt Vandevelde

I would like to have the opposite for screens, web blocks and screen actions. Allow me to move them into any order that I want. I find myself forcing a name of an object to make sure they group together.  A simple example, I like action names to be like getCalculatedVariable() and setCalculatedVariable(), but I have to name it CalcuatedVariable_get() and CalculatedVariable_set().
Just my two cents.



This comment was:
- originally posted on idea 'alphabetically sort local variables' (created on 02 May 2016 by Jason Herrington)
- merged to idea 'Have the local variables in actions sorted on name (or manual)' on 07 Sep 2021 06:58:27 by Kurt Vandevelde
I agree, perhaps a "sort" command in the contect menu, but otherwise have an order by your choosing. @David, please add that Idea, so I can vote it up :).

This comment was:
- originally posted on idea 'alphabetically sort local variables' (created on 02 May 2016 by Jason Herrington)
- merged to idea 'Have the local variables in actions sorted on name (or manual)' on 07 Sep 2021 06:58:27 by Kurt Vandevelde
Merged this idea with 'Sort variables and actions' (created on 10 Feb 2023 15:08:09 by Henrique Mello)

It should be possible to select several items such as variables and action in the elements of the screen and, when clicking with the right button, give the option of sorting alphabetically in ascending and descending order. This would help in using existing flows and also in reading items on the screen.

Changed the category to
Service Studio

Absolutely useful.

Could OutSystems look at this a little more "lovingly", please? :)

The development/analysis performance will have a positive impact.

We have (and I think I speak on behalf of all those who perform analysis/implementation) situations with many (and there are really many) variables, when looking for a specific one sometimes we take a long time to look at the whole list when we cannot risk losing the analysis point in the flow (if a find usages is performed).