Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error message when referencing a variable using values.myVariable without using the variable on its own first #16

Open
kanserh opened this issue Jun 17, 2022 · 0 comments

Comments

@kanserh
Copy link

kanserh commented 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);

@kanserh 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant