BusinessObjects Board

How to include a selection value 'ALL' in Prompt Values

Hi ,

Can any one suggest me how to include a selection value ‘ALL’ in prompt value.

For Example prompt values

Dept No
10
20
30

I need to include ALL in the prompt values

Dept No
ALL
10
20
30

Thanks & Regards,
Venki.


venkimca (BOB member since 2009-02-23)

Check this Designer FAQ.

Edit: Welcome to B :mrgreen: B!!!


Jansi :india: (BOB member since 2008-05-12)

Thanks for your reply.

I followed as per ur suggestion. But ‘ALL’ is not showing in the list of values.

But ‘ALL’ is showing in the LOV file .

Please advise me why ‘ALL’ is not showing the in the prompt list of values.

Regards.
Venki.


venkimca (BOB member since 2009-02-23)

For that you need to create a object with " All" as the select clause and attach it with the table for which you need to see the All values in the Prompt List of Values…


aniketp :uk: (BOB member since 2007-10-05)

Did you follow the suggested steps and save and then export it to the repository before executing the report?


Jansi :india: (BOB member since 2008-05-12)

I am checking in the Deski , I didn’t check it out in Infoview.

Thanks .


venkimca (BOB member since 2009-02-23)

I didn’t get why you mentioned ‘Infoview’. I talked about exporting the universe to the repository to see the newly added ALL in the List of values of the prompt object while you refresh the report.


Jansi :india: (BOB member since 2008-05-12)

In Universe

for example you have query in edit LOV for Dept No, like
Select dept_no from table_name.

edit this LOV in custom sql,

Select dept_no from table_name
UNION
Select ‘-All-’ from table_name.

also check the checkbox “Do not generate SQL before running” at bottom size in SQL Viewer dialog box.


Vills :india: (BOB member since 2007-10-24)

Hi,
The below Sql query I am using 
SELECT DEPT_NUM FROM (SELECT 
'ALL' DEPT_NUM
FROM
SYS.DUAL
UNION
SELECT DISTINCT
  ( MI_DEPT.DEPT_NUM )
FROM
  MI_DEPT) MI_DEPT
WHERE
( ( MI_DEPT.DEPT_NUM ) in @Prompt('Select one Dept or ALL','A','MI Dept Details\Dept Num' ,multi,FREE) or ('ALL') in @Prompt('Select one Dept or ALL','A','MI Dept Details\Dept Num',multi,FREE)  )

I didn’t created any object for ‘All’

Can you please give me the step by step procedure .

Thanks .

Regards,
Venki.


venkimca (BOB member since 2009-02-23)

Hi ,

I am checking in my local system . Instead of exporting to the repository .

I have opened the report in Deski , and refreshed the report . eventhough ‘ALL’ is not showing in the list of values.

Can you please advise me in what scenario ‘ALL’ is not showing in the list of values.

Thanks for your speed replies.

Regards,
Venki.


venkimca (BOB member since 2009-02-23)

  1. Press the SQL button in the query panel of the LOV
  2. Add the phrase UNION SELECT ‘ALL’ FROM DUAL or similar dummy table for your particular database. For SQL Server (if you don’t care if the object parses or not) add SELECT xx From xx UNION SELECT ‘ALL’ (You don’t need a FROM table)
  3. Click the “Do not generate SQL before running” check box.

[What you asked is already there in the suggested link and also in Vills’ post]

  1. Save and close.

  2. Export the universe to the repository.

  3. Try running the report to see ‘ALL’ in LOV


Jansi :india: (BOB member since 2008-05-12)

Do this in the LOV object properties of dept_num

SELECT DISTINCT 
 MI_DEPT.DEPT_NUM 
FROM 
MI_DEPT
UNION 
SELECT 'ALL' FROM DUAL 

Select ‘do not generate SQL before running’ & press Ok

Do this in the predefined condition

 MI_DEPT.DEPT_NUM in @Prompt('Select one Dept or ALL','A','MI Dept Details\Dept Num' ,multi,FREE)
 or 
'ALL' in @Prompt('Select one Dept or ALL','A','MI Dept Details\Dept Num',multi,FREE) 

Then pull the dept_num object in the query along with the predefined condition

You can first test this in your local machine and then export universe to repository for others to see

.


haider :es: (BOB member since 2005-07-18)

The steps I followed:

  1. Create an object with the below code in the select clause:
' All'
  1. Click on the Associated Tables present at the right hand bottom side, and select the table name(any table from which you are fetching your column and you want to see “all” in that column)

  2. Suppose you have an object “Name” and you want All with this and this “Name” is coming from “XYZ” Table Name. So in this case, in the second step you need to associate your All object with the XYZ table.

  3. Go to the properties tab of this object and then click on Edit.

  4. The query panel will appear. You will see there is a name object. So now click on Combined queries button and then add " All" object in that combined query. Perform Union Operation between Name and All object.

  5. Check the SQL, you will see


Select XYZ.Names from XYZ
UNION 
Select ' All' from XYZ
  1. Now Save and Close and check the list of values for name object, you will see All in the LOVs at the top.

Hope this can help you.


aniketp :uk: (BOB member since 2007-10-05)

Hi ,

Thanks for your information .

Now I can able to see ‘ALL’ in the Universe -> Object Properties-> Properties-> Display .

But the problem is when I create a new report with the prompt Object , In the prompt list of values ‘ALL’ is not showing .

I am not geting what is problem . Please advise me to resolve this issue.

Thanks for your support.

Regards,
Venki.


venkimca (BOB member since 2009-02-23)

Did you follow this steps…


aniketp :uk: (BOB member since 2007-10-05)

Hi,

I saved the universe into my local system . I am n’t exporting universe into repository .

After saving the universe into local system , Creating new report(pointing to local univese) with the prompt value . while running the report in the prompt ‘ALL’ is not showing in the list of values.

Let me know is it mandatory to export the universe into Repository.

Thanks & Regards,
Venki.


venkimca (BOB member since 2009-02-23)

If you trying to develop a report in Deski, then it is not necessary. Your Local copy is sufficient.
Check whether you are taking the right universe means local copy for report development.


aniketp :uk: (BOB member since 2007-10-05)

Hi ,
Thanks for your help on this issue .

Its resolved as per ur steps.

Thanks.

Regards,
Venki.


venkimca (BOB member since 2009-02-23)

Could you please let us know what you did to see ALL in your LOV at last?


Jansi :india: (BOB member since 2008-05-12)