As per requirement I have to create a conditinola prompt for Start date where user can enter value for Start Date < = > and Between.
For example, If user wants to see all data for start date which is greater than ‘27-May-2007’ or start date = ‘27-May-2007’ or start date <‘27-May-2007’ or start date between ‘25-May-2007’ and ‘27-May-2007’ using prompt.
All those prompt conditions (equal to, less than, greater than) can only be given in separate queries.
You can however give a range of date prompts by saying date_obj between ‘From Dt’ and ‘To Dt’
Report will be running on following prompts -
1.Country
2.Code
3.Start date
Now requirement is User can enter start date for different conditions -
1.<
2.=
3.>
4.Between
For example,
If user want all start date<‘27-May-2008’ then report will be executed for
country = ‘United States’
code = 'US"
start date<‘27-may-2008’
or
user want all start date = ‘27-May-2008’ then report will be executed for
country = ‘United States’
code = 'US"
start date = ‘27-may-2008’
Basically start date prompt will be considered as report refresh time.
Here User has some flexibility to choose for which condition of start date he wants to referesh reports.
Then you need to have two different queries and set the prompt as desired.
You cannot have them in one single query as one is less than prompt date and other equal to. You can get data for either of them in a query
This code works absolutely fine for ‘<’,’=’ and ‘>’. But when I add ‘between’ as well with two prompt text then 3 prompt window opens
1.For enter operator.
2.To Date
3.From date
Now if user wants to select Effective date = prompt date then Ok button is not enabled.(As second prompt text is not selected)
Please advise how to fix this issue.I mean to say if User select ‘<’ then he can get only single prompt if user select between then he will have 2 prompt
Prompts are all independent. It is not possible to have the values of one prompt based on the result of another prompt unless you use cascading prompts.
What I mean is, if the user selects “between” or something else, there is no way to enable / disable the next set of prompts.
I don’t believe cascading prompts are a solution to this issue. They are designed to be a sequence of prompts, but they are not going to allow you to suppress a prompt if a value is selected.