You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use reference a variable using values.myVariable without using the variable first on its own, you get a red error flare message indicating the variable hasn't been used. An example is the code below where you want to show the variable with thousands separator by converting to Locale String. (Note, you also use this notation when performing math on the variables.)
Example: {[( values.userCount).toLocaleString()]}
This can be fixed by changing the format of the variableName variable. See below.
Replace this line:
var variableName = Ext.String.format("{{0}}",c.id);
With this line:
var variableName = Ext.String.format("{0}",c.id);
The text was updated successfully, but these errors were encountered:
kanserh
changed the title
Getting error message when using a variable i
Getting error message when referencing a variable using values.myVariable without using the variable on its own first
Jun 17, 2022
If you use reference a variable using values.myVariable without using the variable first on its own, you get a red error flare message indicating the variable hasn't been used. An example is the code below where you want to show the variable with thousands separator by converting to Locale String. (Note, you also use this notation when performing math on the variables.)
Example: {[( values.userCount).toLocaleString()]}
This can be fixed by changing the format of the variableName variable. See below.
Replace this line:
var variableName = Ext.String.format("{{0}}",c.id);
With this line:
var variableName = Ext.String.format("{0}",c.id);
The text was updated successfully, but these errors were encountered: