0
En revisión
Is there a way to name a preference through the use of a variable?
If I'm trying to create a preference named "mark" like this:
<action name="setMark">
<assign property="preference:mark" value="_next">
</action>
If I have a variable named _mark, is there a way for me to designate the name of the preference with the variable like this?
<action name="setMark">
<assign property="preference:[var:mark]" value="_next">
</action>
<action name="setMark">
<assign property="preference:mark" value="_next">
</action>
If I have a variable named _mark, is there a way for me to designate the name of the preference with the variable like this?
<action name="setMark">
<assign property="preference:[var:mark]" value="_next">
</action>
Servicio de atención al cliente por UserEcho
"preference:[var:mark]"
"preference:_mark"
My advice is in your setmark action to throw an alert tag at the top to make sure that your variable has a value before you assign it to the pref.
<action name="setMark">
<alert message="VAR - [var:mark] VAR2 - _next"
<assign property="preference:[var:mark]" value="_next">
</action>
<assign property="preferences:[var:mark]" value="next">
<assign property="preferences:_mark" value="next">
The only way I've been able to write to a preference is to name it explicitly like this:
<assign property="preferences:MARK001" value="_next">