Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I've stumbled upon that several times with various expressions, and have to import such expressions manually.
Minimal reproducible (on QDF 1.4.1) case is:
VariableName,VariableValue,Comments,Priority
SET vL.Dim,$(=Only(Field1)),,Additional formulas
SET vL.Sum,sum($(=Only(Field1))),,Additional formulas
Given that file slightly more complex vL.Sum expression imports as expected and slightly more simple vL.Dim is silently skipped.
Could we classify it as a bug?
Hi Vadim, the bug have been identified and fixed (still version 1.4.1).
Best regards
Hi and thank's Vadim, we will have a look at this and get back to you.
Best regards
Magnus
By the way, in my Expresion Editor in addition to export in QDF format I have option to export expressions into plain qvs files with SET and LET commands.
So I have to deal with similiar problem there and I've found that for SET expressions that bit of code (in Python) works relatively reliably:
if '$(' in exp:
command = 'let'
exp = exp.replace("'","~~~")
exp = exp.replace("$(","@(")
exp = "replace(replace('%s','~~~', chr(39)), '@(', chr(36) & '(')" % exp
For expressions in question I get next commands that work well when `included`
let vL.Dim = replace(replace('@(=Only(Field1))','~~~', chr(39)), '@(', chr(36) & '(');
let vL.Sum = replace(replace('sum(@(=Only(Field1)))','~~~', chr(39)), '@(', chr(36) & '(');
Hi Vadim, the bug have been identified and fixed (still version 1.4.1).
Best regards