|
Post by jonass on Mar 8, 2021 14:58:00 GMT
Hello all
So after a few hours of troubleshooting my head is spinning, I cant figure this out.
I have 3 TS variables I populate in UI++
<Action Type="TSVar" Name="APRole">AP-ADM</Action>
<Action Type="TSVar" Name="LTRole">Finance</Action>
<Action Type="TSVar" Name="WIRole">WI-Wlan Finance</Action>
Setting APRole to AP-ADM doesnt not work, it will set APRole to 0. If I remove the -, then it will work. However the last line works, WIRole will be set to WI-Wlan Finance.
I feel like I stumbled upon on a weird bug.
Regards Jonas
EDIT: Quotationmarks to the rescue, still weird issue(probalby perfectly logical), but I can move on now.
|
|
|
Post by Jason on Mar 9, 2021 16:37:48 GMT
You need to one of the following when the value contains a dash and you don't want the value to be interpreted as a VBScript expression (and thus see the dash as a minus operation which will fail): 1. Surround the value in double-quotes: <Action Type="TSVar" Name="APRole">"AP-ADM"</Action> 2. Use the DontEval parameter: <Action Type="TSVar" Name="APRole" DontEval="True">AP-ADM</Action> Reference: uiplusplus.configmgrftw.com/docs/actionconfig/variables.html
|
|