Hello,
I am trying to set-up a ShowPanel token that I will use later on in the dashboard in this way:
<panel depends="$ShowPanel$">
Here is how I am setting it up
<input type="dropdown" token="tok_usecase" searchWhenChanged="true">
<label>Use Case</label>
<choice value=""01"">Use Case 01</choice>
<choice value=""02"">Use Case 02</choice>
<choice value=""03"">Use Case 03</choice>
<choice value=""04"">Use Case 04</choice>
<choice value=""05"">Use Case 05</choice>
<choice value=""06"">Use Case 06</choice>
<default>"01"</default>
<initialValue>"01"</initialValue>
<change>
<condition match="$tok_usecase$=="05"">
<set token="ShowPanel">true</set>
<unset token="tok_audit"></unset>
<unset token="tok_taskID"></unset>
<unset token="tok_sessID"></unset>
</condition>
<condition match="$tok_usecase$!="05"">
<unset token="ShowPanel"></unset>
<unset token="tok_audit"></unset>
<unset token="tok_taskID"></unset>
<unset token="tok_sessID"></unset>
</condition>
</change>
</input>
but it seems the $ShowPanel$ token is not valorized. I tried to print it in the panel title but it appears as $ShowPanel$ instead of having the value equal to "true".
Do you know where the error is?
Thanks a lot,
Edoardo
Gi
<input type="dropdown" token="tok_usecase" searchWhenChanged="true">
<label>Use Case</label>
<choice value=""01"">Use Case 01</choice>
<choice value=""02"">Use Case 02</choice>
<choice value=""03"">Use Case 03</choice>
<choice value=""04"">Use Case 04</choice>
<choice value=""05"">Use Case 05</choice>
<choice value=""06"">Use Case 06</choice>
<default>"01"</default>
<initialValue>"01"</initialValue>
<change>
<condition label="Use Case 05">
<set token="ShowPanel">true</set>
<unset token="tok_audit"></unset>
<unset token="tok_taskID"></unset>
<unset token="tok_sessID"></unset>
</condition>
<condition match="true()">
<unset token="ShowPanel"></unset>
<unset token="tok_audit"></unset>
<unset token="tok_taskID"></unset>
<unset token="tok_sessID"></unset>
</condition>
</change>
</input>
ve this a try
Gi
<input type="dropdown" token="tok_usecase" searchWhenChanged="true">
<label>Use Case</label>
<choice value=""01"">Use Case 01</choice>
<choice value=""02"">Use Case 02</choice>
<choice value=""03"">Use Case 03</choice>
<choice value=""04"">Use Case 04</choice>
<choice value=""05"">Use Case 05</choice>
<choice value=""06"">Use Case 06</choice>
<default>"01"</default>
<initialValue>"01"</initialValue>
<change>
<condition label="Use Case 05">
<set token="ShowPanel">true</set>
<unset token="tok_audit"></unset>
<unset token="tok_taskID"></unset>
<unset token="tok_sessID"></unset>
</condition>
<condition match="true()">
<unset token="ShowPanel"></unset>
<unset token="tok_audit"></unset>
<unset token="tok_taskID"></unset>
<unset token="tok_sessID"></unset>
</condition>
</change>
</input>
ve this a try
Thank you so much, it works!