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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jduenyas
Specialist
Specialist

Question reReports

All,

I have a procedure (script) that generates reports. It selects time span and individual Sales People and generates a report which I later send automatically, via a 3rd party engine, to the individual recipients.

Occasionally there is no data to report for an individual.

Is there a way to determine if there is no data in a chart so to skip the report?

 

Thanks

Josh

1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

It depends what 3rd party engine you use.

In my experience in Macros I count the number of rows in the table that will be send:

 	SET obj = ActiveDocument.GetSheetObject("info1")
	
	control = obj.GetRowCount
	IF control> 1 THEN
	
 		send_report vTO, vCC, reportFile, vName
 		
 	END IF

 

View solution in original post

2 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

It depends what 3rd party engine you use.

In my experience in Macros I count the number of rows in the table that will be send:

 	SET obj = ActiveDocument.GetSheetObject("info1")
	
	control = obj.GetRowCount
	IF control> 1 THEN
	
 		send_report vTO, vCC, reportFile, vName
 		
 	END IF

 

jduenyas
Specialist
Specialist
Author

That worked !!!

Thanks