If you do not want the prompt to be mandatory to limit the number of rows, try the
following technique, originally suggested by Walter Muellner of Mercury Business
Solutions in Austria. The Where clause uses an OR statement to allow users to either answer
ALL or choose individual values from the list:
‘ALL’ IN @Prompt(‘Enter City or ALL’,‘A’, ‘Customer\City’,multi,)
OR
City.city IN @Prompt(‘Enter City or ALL’,‘A’, ‘Customer\City’,multi,)
Pls tell me how to use ‘ALL’ in where clause as i could not get the same.
You already have the correct syntax to implement the ‘ALL’ for the prompt.
You will use this in a predefined condition in the universe, drag it into query panel which when prompted and ‘ALL’ typed in the box should fetch data for all values in the LOV.
Also read the Designer FAQ All in LOV
I am successfull to get ALL in LOV on Report. But when I select ALL and run Report giving me no data. But if I select specific country. Giving me data. Am I missing some thing ?
Syntex is okay I have just copy paste and change objects/class
but thing is when I select ALL on report LOV. Its not fetching any data. But when I select spefic country which having data giving me data for that country on report.
here is what I am using on object
SELECT DISTINCT
CTSALD_OWNER.CTS_COUNTRY_CODE_REF.COUNTRY
FROM
CTSALD_OWNER.CTS_COUNTRY_CODE_REF
UNION
SELECT 'ALL'
FROM DUAL
and where clause :
@Select(Ctsald Owner Cts Country Code Ref\Country) IN @Prompt('Country (or ALL to select all values)','A','Ctsald Owner Cts Country Code Ref\Country',Multi,Free)
OR
'ALL' IN @Prompt('Country (or ALL to select all values)','A','Ctsald Owner Cts Country Code Ref\Country',Multi,Free)