2009 Jul 08 2:46 PM
Hi all,
At the selection screen, i have the start date, end date and the list box which displays the location.when the user gives the dates and selects the location of the list box. It has to give you the detailed report based on the location selected but if the list is not selected it should give the output for all the location. Please help me how to do this.
Thanks & regards
2009 Jul 08 2:50 PM
Hi Manvendra ,
Just add one more criteria in your select query where you are fetching data based on date.
Select <some_data>
from <some_table>
where date in <something> and
location in s_location.
where s_location is ur select - option.
Regards,
Anuj
Hi all,
At the selection screen, i have the start date, end date and the list box which displays the location.when the user gives the dates and selects the location of the list box. It has to give you the detailed report based on the location selected but if the list is not selected it should give the output for all the location. Please help me how to do this.
Thanks & regards
2009 Jul 08 2:50 PM
Hi Manvendra ,
Just add one more criteria in your select query where you are fetching data based on date.
Select <some_data>
from <some_table>
where date in <something> and
location in s_location.
where s_location is ur select - option.
Regards,
Anuj
2009 Jul 08 2:53 PM
Hi,
Thanks for the reply.But the location parameter is a list box .
2009 Jul 08 3:02 PM
Hi,
If you can use Select-option with no-extension no intervals
instead of using parameters then it should works.
e.g. Select-option : s_field For table-field no-extension no intervals.
Regards,
Vijay
2009 Jul 08 3:42 PM
Hi Manvendra ,
Either you can do it in the way Raymond has told you or you can put a logic to do this.
Put a if condition for the select query.
If data is inputted in the location parameter then you can fethc the data based on that value otherwise follow the same old select query.
If S_location is initial.
select <some_data>
from <some_table>
where < conditions> and
location EQ s_location.
Else.
select <some_data>
from <some_table>
where < conditions> .
Endif.
Regards,
Anuj
2009 Jul 08 2:55 PM