Topic: Automatic Display the Values for Other Prompts Based on the Value User Chooses for the First Prompt.
Usually, there are multiple prompts for one report. When a user selects a value from one of the prompts, could all other prompt values be automatically showing the corresponding values based on what user selected from the first prompt?
For example, if a user runs a report and selects ProvinceA from the Province prompt, then selects a Program from the Program prompt list, the values in that list should be filtered to show corresponding programs only based on ProvinceA. The same case is true for other prompts like Lender/Agency/Program/Branch, etc.
I wonder if this could be done in universeby choosing one value from one prompt, then other prompts will be automatically showing the list of values based on the first prompt value selected.
What is the best way to do this? Can this be done in Designer itself, instead of writing VB code? Or suggest creating cascading prompts?
In universe, you should overwrite the SQL for LOVs of the other prompts to restrict the values based on first prompt by using @Prompt(‘ProvinceA’,) in teh where clause of teh sql.
Hi Andreas,
I did exactly what you guys said about cascading prompts it’s working fine,when i try to do this…
[b]Overriding the LOV SQL
Press the SQL button in the query panel of the LOV
Add the phrase UNION SELECT ‘ALL’ FROM DUAL or similar dummy table for your particular database.
Click the “Do not generate SQL before running” checkbox. [/b]
I used this code in Resort and Service Line in beach universe it’s showing ‘ALL’ but when i click ‘ALL’ in those two prompts it’s saying “No data to fetch”
When i enter Country=US;Resort=Bahamas Beach and Service Line=Food & Drinks.It’s showing data.
I have prompts for COUNTRY,RESORT and SERVICE LINE. When a user selects a value from one of the prompts, could all other prompt values be automatically showing the corresponding values based on what user selected from the first prompt?
For example, if a user runs a report and selects “US” from the Country prompt, then selects a Resort from the Resort prompt list, the values in that list should be filtered to show corresponding resorts only based on country.and also same for service line
If i use this code i can’t restrict values,it’s showing all valuse in resort and service line.
column=@prompt(your prompt stuff) OR
‘ALL’ = @prompt(your prompt stuff)