[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:
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,
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.