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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] About the global variable NB_LINE in the component

Something need to pay attention when you use globalMap.get("*_NB_LINE").
eg, we have 2 global int variables: tFileInputDelimited_1_NB_LINE and tFileOutput_1_NB_LINE with the same value 125.
((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")) == ((Integer)globalMap.get("tFileOutputDelmited_1_NB_LINE"))

The above expression will evaluate true. When the global int variable NB_LINE <=127, the above expression will evaluate true always.
But when NB_LINE >=128, the above expression will evaluate false.
Therefore, we'd better not using the above expression, here is suggestion to use the global variable as the following to avoid potential problems.
((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")).intValue() == ((Integer)globalMap.get("tFileOutputDeimited_1_NB_LINE")).intValue()
Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi Wliu,
Thanks for your information.

Best regards
Sabrina