I have a object in the universe with lov’s A,B,C,D,E,F.
I created a prompt in the report level or even condition in designer level.However what i want is when the user sees the prompt in report level, if he enters * it shoul;d select A and B, % C and D and / E and F. Is it possible to do this without creating additional objects in the designer.I don’t want to craete additional objects but if necessary can create them. I tried going through the cascading prompts but could not work it out.
OK, so you want the users, when prompted, to be able to select one or more of those values, or enter * and get all values. Is that correct? This needs to be done in Designer. See here for instructions.
No I don’t want that. I have already incorporated the use of all in prompt. What I want is to do something like ALL but if user enters * it will select only A,B.If he enters % it will select only C,D and so on.
So in my report the user will have flexablity to selcet All if necessary or Aand B or C and D or even induvidually.
OK, I see what you want. The only way I know of to do this would be to set up a database table that will associate * with A & B, % with C & D, and so on. Thsn link that table to the table with the actual values and build your LOV off the new table.
ohhh…so there is no way this can be done at the designer or reporter level.
Can I associate lovs of various objects to a single object. K…here it is I can create 3 diffrent objects in the universe level and customise their lovs as per my requairement. Now can I use these objects somehow to obtain what i want without creating additional prompts.
If you are using Oracle, may be you could define a condition object in the universe on the following lines.
CASE when UPPER (@Prompt (‘Prompt text’,‘A’, mono,free,User:1)) = ‘*’
THEN
TableName.ColumnName in (‘A’,‘B’)
when UPPER (@Prompt (‘Prompt text’,‘A’, mono,free,User:1)) = ‘%’
THEN
TableName.ColumnName in (‘C’,‘D’)
ELSE
TableName.ColumnName in (‘E’,‘F’)
END
(case when table.col in ('A','B') then 1 else 0 end)
OBJ2:
(case when table.col in ('C','D') then 1 else 0 end)
OBJ3:
(case when table.col in ('E','F') then 1 else 0 end)
Then I created my selection object with a where clause of:
1= (Case when @Prompt('Which Group?','A', {'*','%','/'}, mono, free) = '*' then @Where(Class\OBJ1) when @Prompt('Which Group?','A', {'*','%','/'}, mono, free) = '%' then @Where(Class\OBJ2) when @Prompt('Which Group?','A', {'*','%','/'}, mono, free) = '/' then @Where(Class\OBJ3) else 1 end)
That should restrict your groups properly (and you can HIDE OBJ1-OBJ3 and still have them work). If you enter in any other value, you will get all values. You can change that by changing the ELSE clause.