If I want to send a refreshed report to an End User based on a particular value in report. How do we achieve it?
For Ex:In an Employee report there would be 2 columns:
Employee Name and No. Of leaves, the report would refresh on a daily basis. If any of the employee takes more than 5 days of leave then only report should go to Manager’s Inbox else no report to be sent to the Manager.
I am assuming you are reporting on a database table. Write a script to create a txt file and place it in a shared location based on the condition leave >5 i.e. when the report should be sent to the manager. Now schedule the report with the file event.
Yes I thought of this option and a PL/SQL statement would generate the TRG file once an employee take more than 5 days leave, but this would hamper performance if there are huge no. of employees the PL/SQL statement would run for each employee in that table… Is there any way we can handle this in Web-I report side rather than DB side?
A couple of things to think of you could invoke a having clause, using your measure, in the where clause of the SQL of >5.
This would mean that the report will return no rows, unless the records you are interested in exist.
You could then look at the technique, suggested by Marek, here:- https://bobj-board.org/t/151998