BusinessObjects Board

LOV with ALL and None

HI Gurus,

We are in the process of converting CRs to Universes. For the CR reports, the parameter Fields have ALL and None values. Which not avilable in the LOV

I want to include ALL and None in my Object LOV. Please help me out in changing the SQL for the LOV in the Select distinct. Back end is SQL Server 2008.

Thanks
RUC


RUC :us: (BOB member since 2010-05-03)

Hi,

This Designer’s FAQ describes it:


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Thanks for the Reply and the link,

I have gone through the Link where it shows only ALL but not for None.

Do I need to include Union for ALL and None both ?? I a newbie Help me out

Thanks
RUC


RUC :us: (BOB member since 2010-05-03)

Hi,

The FAQ describes how to add ALL into an LOV. If you need also NONE to be added into the LOV then just do the same what FAQ talks about but for NONE now.

By the way, what does a report should do with a condition when NONE is selected?


Marek Chladny :slovakia: (BOB member since 2003-11-27)

Add None also in the object query. So it will fetch all LOV’s, All and None but in prompt only use LOV’s and All.

So None will appear in the LOV’s, but when you will select None, prompt condition will fail.


Rakesh_K :india: (BOB member since 2007-12-11)

Hi Rakesh,

Thanks for replying me, Is there any other possibility to add None which it should not bring any LOV’s

Thanks
RUC


RUC :us: (BOB member since 2010-05-03)

Here is my SQL in the LOV, Please help me out to add ‘ALL’ and ‘None’

SELECT DISTINCT
CLARITY.dbo.PAT_ENC.CONTACT_DATE
FROM
CLARITY.dbo.PAT_ENC

Thanks
RUC


RUC :us: (BOB member since 2010-05-03)

Hi,

Have you read the Designer’s FAQ :?: It’s mentioned there how to add values into an LOV if you have SQL server :roll_eyes:

SELECT DISTINCT
CLARITY.dbo.PAT_ENC.CONTACT_DATE
FROM
CLARITY.dbo.PAT_ENC 
UNION 
SELECT 'ALL'
UNION 
SELECT 'None'

Marek Chladny :slovakia: (BOB member since 2003-11-27)

I tried using the code
SELECT DISTINCT
CLARITY.dbo.PAT_ENC.CONTACT_DATE
FROM
CLARITY.dbo.PAT_ENC
UNION
SELECT ‘ALL’
UNION
SELECT ‘None’

But I when run and test the Lov object, I am only seeing the ALL and None Values.

In my scenario, I need like when I select 'ALL ’ >>>> should include all the list of values and for ‘None’ >>>> should not include any list of values.

Please help me out with any other solution


RUC :us: (BOB member since 2010-05-03)

RUC Did you find out the solution for your problem?


BOB newbie (BOB member since 2011-02-15)

What is your prompt condition.


Rakesh_K :india: (BOB member since 2007-12-11)