0
 Followers
2
 Likes

Right-click variable "Create Action/Function"

On our radar

More often than not we need a function just to return the value of a boolean (or some other type) Site property.

Right clicking a variable should show an option to create a function who's only content (for starters) would be an assign returning the value of that variable.


 createfunction.jpg
Created on 13 Jul 2017
Comments (5)

Hello Bruno. Why do you need to create an action just for that?

14 Jul 2017

Leonardo -

I do this *all the time*. Why? Because I separate all site properties into a "config" espace, so it is easy to find the setting you need, but Site Properties cannot be made public, so I create Get/Set (if needed) Actions for each one.

J.Ja

Justin, that was exactly what I thought.

This should be better handled by allowing to expose site properties as public elements, not by creating wrapper actions around them.

17 Jul 2017

Leonardo -

Yes, that would be another perfectly happy approach, and preferable :)

I can't think of any other place I do this, except for Site Properties... sometimes I will have a very specific use for something like this (like specific Attribute that gets updated without the other values changing) but that is very rare.

J.Ja

17 Jul 2017

ugh, would not like to have them public. rather have wrappers.


views
77
Followers
0