enter code here
Is it possible to generate a variable or object dynamically?
I store some settings like standard colors in a sharepoint list (PowerAppStyling) and read this to dynamically style all my apps.
Like:
Object,Property,Value
Label,Font,Segoe UI
Label,Fill,White
Label,Color,Grey
This is working fine, I can set the label font like this:
First(Filter(PowerAppStyling,Object = "Label" && Property = "Font")).Value
Now, to make this more easier to read, from the list above, I would like to dynamically, runtime create an object something like this:
PowerAppStyling.Label.Font
that should give a value of "Segoe UI" or a simple variable where I concatenate the columns, like LabelFont
.
I tried the Set() function:
Set(a,"a");Set(b,"b");Set(concatenate(a,b),"ab")
I expected that the 3rd command will create a variable named ab
and set its value to "ab", but t doesn't accept strings in variable names.
Is any of the two option possible, if yes, how?