Focal Point
[Solved] Header error message dissappears when static where clause is added

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4857021176

June 10, 2014, 08:12 AM
nico
[Solved] Header error message dissappears when static where clause is added
I have a report, that returns a error message when the date range is > certain amount of days. Everythign works as intended until i add a where clause condition of:

-*WHERE PERFORMANCE.ANSWERSET1.STATUS EQ 'Failed';

All parameters are successfully passed but when i add this static condition, my retrun error message (that is being passed from a sql stored proc successfully) is not visible, just a empty report

Why would my header keep dissappearing when the static condition is added?

This message has been edited. Last edited by: Tamra,


WebFOCUS 7.6
Windows, All Outputs
June 11, 2014, 12:09 AM
Ram Prasad E
Try SET EMPTYREPORT = ON

Thanks,
Ram


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
June 11, 2014, 07:27 AM
nico
Thank you, i was able to improvise on the stored proc level. I'm not sure webfocus can handle static sql & stored procedures mixed.


WebFOCUS 7.6
Windows, All Outputs
June 12, 2014, 11:34 AM
Anatess
Where did you put the WHERE clause?

If you have this:

SQL SQLORA
EX <stored proc>;
TABLE FILE SQLOUT
PRINT *
WHERE <type fieldname here> EQ <type condition here>;
END


The stored procedure returns stuff then webfocus filters it out.

Or, you can add the filter to the stored proc like you said.

Or, you can put whatever native sql code that your database will process between the SQL and ; and it will get sent to the db and let the db run it. Basically, if the sql code will run in your db, you can put it between SQL and the ; and it will run.


WF 8.1.05 Windows