This question about Topic Markup Language and applications: Answered
how can i access to a VAR in the view script when it was set in a topic?
I have set it in the topic text like this:
* #set VARNAME = on
I have tried it with TWiki::Prefs::getPreferencesValue( "VARNAME" ) and TWiki::Func::getPreferencesValue( "VARNAME" ) but i m getting an error: "Undefined Subroutine ...".
Can someone explain me please what i have to do, to access to a self created VAR?
to set a variable, you need to remove the # character, and possibly to make it a capital S
we traditionally use the # to comment out a setting
- 09 Jan 2009
of course i have set the VAR without a #. This was only written down here by me to not set a VAR here.
I m getting an error "Undefined Subroutine ..." while trying to access the VAR by TWiki::Func::getPreferencesValue.
I wrote at the top of the script "use Twiki;". Am I right? Or should I write smth else? Have I forgortten smth.?
I created a VAR in a Topic and want to access to it in a script. So I need a short explanation or an example how I have to do it.
- 12 Jan 2009
| Subject || Topic Markup Language and applications |
| Extension || |
| Version || TWikiRelease04x02x03 |
| Status || Answered |