Hi I am new at this. I have read almost all the topics in this forum. And I am way confused as to how to actualy implement this. I need to have all as a selection for prompts in a universe. I am working currently in Xtreme Sample Universe 11.5 and this is what I have so far:
Customer.City IN @Prompt(‘Select City’,‘A’,‘Customer\City’,‘multi’,‘free’) OR ‘ALL’ in @Prompt(‘Select City’,‘A’,‘Customer\City’,‘multi’,‘free’)
I have the refresh and export with set up. This should be pretty straight forward. But I do not see ‘ALL’ as the first selection in the prompt values.
thanks for your reply, but it doesn’t make any sense. There is no ‘All’ in any small table, so when you try to select it, you get an error saying there is no value ‘All’ in the table.
So I have this code:
(@Select(Customer\City) IN @Prompt(‘Select a city…enter ALL for all Cities’,‘A’,‘Customer\City’,MULTI,FREE) )
OR
(‘ALL’ in @Prompt(‘Select the city… or enter ALL for all Cities’,‘A’,‘Customer\City’,MULTI,FREE) )
This generates 3 entry boxes:
Select City
Select a city…enter ALL for all Cities
and
Select the city…or enter All for all cities
It gives me the value button to choose values, but I do not generate any values.
“All” is a constant. You should be able to select it from any available table. Oracle provides the dual table just for this purpose.
select 'All' from table_01
That should work. If you have 3 rows of data in table_01 then you will get three rows back with the word ‘All’ in them. That’s why Steve suggested the word “Distinct” be added, as it would group the three rows that look alike into a single row.
SELECT DISTINCT
xyz.dbo.table1.Name
FROM
xyz.dbo.table1
UNION
select ‘…ALL’
and check do not generate slq option.
Then in the condition type condition as
@Select(table1\name) IN @Prompt(‘Select name or select …ALL for all names’,‘A’,‘table1\name’,MULTI,FREE) OR (’…ALL’) IN @Prompt(‘Select name or select …ALL for all names’,‘A’,‘table1\name’,MULTI,FREE).
It gives me single prompt to select …ALL or sigle or multiple names.
But you do not see this come up into WEbi or Crystal in the prompt list. So I am still looking for the solution that allows a lov that has ‘all’ that when chosen, it means all items in lov list should be generated for a result set.
here is the code in the sql:
SELECT
Customer.City
FROM
Customer
UNION
SELECT ‘*ALL’
FROM
Customer
ORDER BY
1
This is the where clause:
@Select(Customer\Country) IN @Prompt(‘Select Country’,‘A’,‘Customer\Country’,multi,free) OR ‘*ALL’ IN @Prompt(‘Select Country’,‘A’,‘Customer\Country’,multi,free)
I don’t see the *All come through to Webi or Crystal. I do see it in the universe list when you display the lov list.
So if I don’t see it in the Webi LOV list and I don’t see it in the Crystal lov list, why?
Finally got it to work. So I can choose Multi values or ALL or a single value and everything works.
Now I find though, that it will not sort ascending correctly. Is there a way to force the sort other than applying the sort to the field selected and make it stick?