We are designing reports in BO to be run from WEBI. The user interface will present a number of prompts which are used in the criteria section
to limit the data returned by the report.
We would like to make each of the prompts optional. If the user fills any of them in they will be combined with AND to make up the where clause of the SQL.
Any that are not filled in by the user should be ignored.
A creative solution suggested by one of our designers is to edit the SQL code and then check the box to not regenerate the SQL when the report is run.
For example, consider the case of 2 optional prompts:
SELECT … FROM …
WHERE
( dbo.notification.customer_number = @variable(‘Cust Nbr’)
OR @variable(‘Cust Nbr’) = ’ ’
)
AND ( dbo.notification.purchase_order_number = @variable(‘PO Nbr’)
OR @variable(‘PO Nbr’) = ’ ’
)
The two prompts are used with AND to restrict what data will be returned. Each is combined with an OR @variable(‘prompt’) = ’ ’ so that if the prompt is not filled in, the query will still return data.
The problem with this solution is that if any change is made to the report, we have to edit the SQL to add all the “OR” clauses for all the prompt variables.
We would like to know if there is a way to make the prompts optional, but any that are filled in will be used with an “AND” to further restrict the data returned,
without having to edit the SQL and lock it.
We would like BO to automatically generate the SQL when a change is made to the report,
but still allow the prompts to be optional for the user.
Thank you,
Barry KornReich
bkornreich@amadeuslink.com
********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. **********************************************************************
Listserv Archives (BOB member since 2002-06-25)