Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Variable as part of field name in expression, script and everywhere else.

Hi there,

IN script if i were to include variable as a part of fieldname

Set var1=1

i would put "test$(var1)test" to yield test1test.

IN expression

i would do the same. but however it underlines with the red line and says error in expression, BUT

it does calculate it gives the correct value despite that.

Is there a way to remove the red underline that says error in expression?

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Yes, you can disable the error lines altogether in the script/expression editor

The syntax checker in both the expression and script editors is having trouble with the recognition of various advanced features. It has problems with Field names that are assembled from strings and variables, just like it has problems with recognising compact set modifier operators like *= and -=.

Don't worry, just ignore them.

View solution in original post

2 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Yes, you can disable the error lines altogether in the script/expression editor

The syntax checker in both the expression and script editors is having trouble with the recognition of various advanced features. It has problems with Field names that are assembled from strings and variables, just like it has problems with recognising compact set modifier operators like *= and -=.

Don't worry, just ignore them.

Not applicable
Author

Hi, cause i still want them to check. How to disable? but is my syntax correct by using " " for combining string and variable?