Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
richie1985
Contributor
Contributor

[resolved] clear context value

hi,
since version 5.6.0 i cant delete values in a context variable.
when i try to delete anything i will set the old value back 0683p000009MPcz.png
how can i set it to empty so that my "if(!context.datum.equals(""))" will work again?

Thx!
Erik
Labels (2)
9 Replies
Anonymous
Not applicable

At first empty is not cleared, it is simply an empty string. null would be a reasonable initial value.
Is the datum field a Date or a String?
In case of String I would ask:
if (context.datum.isEmpty() == false) 
richie1985
Contributor
Contributor
Author

okay than in other words:
how to set a empty string in context variable?
Anonymous
Not applicable

context.datum = "";

But it is mostly not a clean way to set an empty string. I would set it to null or to any reasonable value. What do you are trying to solve with the empty string?
richie1985
Contributor
Contributor
Author

mhhh i only want to delete this value in context settings in talend, when i click on the value i cant delete the text... in older version it was possible, but now i HAVE to set anything

0683p000009MBY6.jpg
Anonymous
Not applicable

hi, 
make sure you're not trying to modify a 'context group' value directly in context view.
if not , it's not a normal behavior.
regards
laurent
richie1985
Contributor
Contributor
Author

context group? no its a normal context variable. when you create one its empty. BUT when you set value you CANT delete this value, you can only set a other value....
richie1985
Contributor
Contributor
Author

so is not possible?
Anonymous
Not applicable

nothing is impossible 0683p000009MA9p.png
never encountered this kind of problem.
which version of 5.6 ?  
Could report a bug on jira so
regards
richie1985
Contributor
Contributor
Author

i use version 5.6.0.20141024_1545, can you open a bug report?