
Using a variable as a field expression in functions
I would like to use a variable as a parameter in functions that take a field expression if possible.
For instance, the following syntax works.
inList(SALES.COUNTRIES.COUNTRY_NAME, $country_list)
I would like to use a session variable that would contain "SALES.COUNTRIES.COUNTRY_NAME", i.e. something like this.
inList($field, $country_list)
This syntax does not work as expected. The function checks if "SALES.COUNTRIES.COUNTRY_NAME" string is in $country_list, it does not check the value of the SALES.COUNTRIES.COUNTRY_NAME field.
Is there a way to let Incorta know that $field should be interpreted as a field expression/reference and not as the actual string value?
Like
Follow