rodrigo987
Programmer
I have a problem that I am wondering if anyone could help me solve.
In the Before Refresh Event of a document I would like to edit the SQL of the data provider.
i.e.
Before the documents is refreshed I would like to give the user the option to do an enquiry on either product code or supplier code and depending on the reponse change the where clause of the data provider to either:
1. stock_table.product_code = @Prompt('Enter Product Code',...) ...
or
2. stock_table.supplier_code = @Prompt('Enter Supplier Code',...) ...
If this can be done I would appreciate any help.
Thanks
Rodrigo
Email rodrigo@ananzi.co.za
In the Before Refresh Event of a document I would like to edit the SQL of the data provider.
i.e.
Before the documents is refreshed I would like to give the user the option to do an enquiry on either product code or supplier code and depending on the reponse change the where clause of the data provider to either:
1. stock_table.product_code = @Prompt('Enter Product Code',...) ...
or
2. stock_table.supplier_code = @Prompt('Enter Supplier Code',...) ...
If this can be done I would appreciate any help.
Thanks
Rodrigo
Email rodrigo@ananzi.co.za