SID-00723: Preferences Variable
I am not able to ask for state of the preference variable. See here:
--
MitaH - 19 Jan 2010
How use a variable
INPUT variable - put in the letters aaa or bbb and click Input:
<FORM>
<input type="text" name="inputvar" />
<INPUT type="submit" value="Input">
</FORM>
Simple print - inputvar is: %URLPARAM{"inputvar"}%
Condition 1 - %IF{" '%URLPARAM{"inputvar"}%' = 'aaa' " then="inputvar is aaa" else="inputvar is not aaa"}%
Condition 2 - %IF{" $'URLPARAM{inputvar}' = 'aaa' " then="inputvar is aaa" else="inputvar is not aaa"}%
PREFERENCES variable:
Simple print - PREVAR is %PREVAR%
Condition 1 - %IF{" '%PREVAR%' = 'ccc' " then="PREVAR is ccc" else="PREVAR is not ccc"}%
Condition 2 - %IF{" $'PREVAR' = 'ccc' " then="PREVAR is ccc" else="PREVAR is not ccc"}%
Both insert and query about the inputvar work well.
The PREVAR works also, but if the row:
is transfered into "My Personal Preferences" in my personal topic Main/MitaH,
then the Conditions 1 and 2 does not work.
How can I read the Preferences and use them in decision logic?
--
JaromirHoudek - 2010-01-19
Discussion and Answer
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2010-03-04
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.