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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
COW_WW
Contributor
Contributor

NB_LINE global variable doesn't return any value

Hello,

I'm trying to use the NB_LINE global variable to get the number of records passed through each link.

0695b00000SpuGxAAJ.png

0695b00000SpuI5AAJ.png

It works fine for the first link of tRowGenerator_2, but doesn't work for the second link tMap3 and just prints null.

Am I doing anything wrong?

Thanks

Labels (2)
1 Solution

Accepted Solutions
InfoCraft
Creator
Creator

@COW_WW BA​ ,

All components produce one or more globalMap variables that can be used within other components, such as tJava.

  1. you can write component name and then using Ctrl + Space to locate your specific  globalMap variable0695b00000SpwXgAAJ.png
  2.  
  3. Otherwise you can simply expand the given component and drag the variables from the outline panel into your code panel0695b00000SpwTAAAZ.png

Select as Best if its OK

Kind regards,

😷19.

View solution in original post

4 Replies
InfoCraft
Creator
Creator

Hi @COW_WW BA​ ,

  • tMap does not have this global variable.

but only : ((String)globalMap.get("tMap_3_ERROR_MESSAGE"))

===> you can use : ((Integer)globalMap.get("tLogRow_4_NB_LINE")) to get the number of records (after)

 

Kind regards,

😷19.

COW_WW
Contributor
Contributor
Author

@not specified not specified​ 

Thank you. It worked.

Is there any way to check which components have this global variable and which components don't?

InfoCraft
Creator
Creator

@COW_WW BA​ ,

All components produce one or more globalMap variables that can be used within other components, such as tJava.

  1. you can write component name and then using Ctrl + Space to locate your specific  globalMap variable0695b00000SpwXgAAJ.png
  2.  
  3. Otherwise you can simply expand the given component and drag the variables from the outline panel into your code panel0695b00000SpwTAAAZ.png

Select as Best if its OK

Kind regards,

😷19.

COW_WW
Contributor
Contributor
Author

@not specified not specified​ Thank you!