Expressions in query ranges

When creating expressions with comparisons to strings you might have to surround the string with " " like in the example below.


queryRange = strFmt('((%1 == \"%2\") || (%3 == \"%4\"))',
fieldStr(ProjTable, Responsible),
queryValue(element.getEPProjWebApp().EPProjUser().emplId()),
fieldStr(ProjTable, ResponsibleFinancial),
queryValue(element.getEPProjWebApp().EPProjUser().emplId()));


It's important to use \" to achieve the correct behavior.

Read more about ranges here

Comments

Popular posts from this blog

D365FO Data management change tracking enable/disable not working

Displaying a value from a array field in EP

Table array field iteration