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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How can I get a count of selection criteria ( select count(*) from abc ) from database (tRedshiftInput)

How can I get a count of selection criteria ( select count(*) from abc ) from database (tRedshiftInput). I tried the following in tJavaRow right after tRedshiftInput, but got null value

 

globalMap.get("****"+(Integer)globalMap.get("tRedshiftInput_3_NB_LINE"));

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks so much Sabrina.

Yes, it worked when I connected tRedShiftInput to tJava with OnComponentOk.

Soma

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hello,


((Integer)globalMap.get("tRedshiftInput_1_NB_LINE")) does count the total number of selected rows. 

You can also use tfixedflow component to print ((Integer)globalMap.get("tRedshiftInput_1_NB_LINE")) into console. let us know if tfixedflow component is OK with you.

 

Best regards

Sabrina

 

Anonymous
Not applicable
Author

Thanks so much Sabrina.

Yes, it worked when I connected tRedShiftInput to tJava with OnComponentOk.

Soma