Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Disable trigger when no record found in Qvd

Hi All, I am using Qlikview 64 bit Server SR 5 for generating Qvds, Analysis Files and sending mails.

I have my analysis files A1, A2 (with 'n' no. of reports) which are dependent on main Qvd Generator file Q1.
Tasks are defined for generating report based on analysis files A1,A2 and mail is send based on trigger defined in task.

The requirement is:

Task not to be triggered when there is no record in Qvd Q1(Qvd consists of multiple tables, if no record in any one of the table then task should not get triggered)

Please suggest how to fulfill the requirement.


Thanks in advance

2 Replies
Not applicable
Author

Hi Kumar

You can use the function NoOfRows() to evaluate if the table contains any data.

Example:

IF NoOfRows('Table')>0 THEN

Not applicable
Author

Hi Frederik,

Thanks for your response.

My requirement is in case if any of the tables returns 0 record (by using NoOfRows), I need to disable the trigger.
So how can I disable a trigger based on the above condition?
How can I do it by script while loading data from table? or by any setting in Server?

Thanks,