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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

conditional component run

Hi,

 

I want to execute component only if previous component have rows more than 'n' 

 

how to achieve this where condition can be on count of rows processed in link from previous component ?

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

 

    I am talking about tMap numeric sequence.

0683p000009M4av.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi,

 

    The best way is to validate the value of NB_LINE parameter of the main flow like below (using Control+Space to get all available variables).

 

 

0683p000009M4ko.png

 

Another small trick is to add a numeric sequence to the input flow and map the value to a context variable. Once the last row s also processed, use the value loaded in that context variable to measure the number of rows.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

Hi @nthampi 

 

#1 NB_LINE parameter - I tried control+space by selecting component and by selecting link but it is not working out. I will get message as "Properties not available"

 

#2 add a numeric sequence -- Here you may need to give me more details, please. Are you referring "Numeric" routine ? or is it something in Tmap ?

Anonymous
Not applicable
Author

Hi,

 

    I am talking about tMap numeric sequence.

0683p000009M4av.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂