0% found this document useful (0 votes)
28 views

Create A Formula Todisplay "ALL" Ifthe PromptisIgnored

This document discusses how to set a prompt as optional in a BusinessObjects WebI query report, create a variable to display the user's response to the prompt, and write a formula that displays "ALL" if the optional prompt is left blank. It provides steps for making a prompt optional, copying prompt text to create a variable, and writing an IF formula that shows either the user's response or "ALL" depending on if the prompt was left blank.

Uploaded by

uday_bvh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Create A Formula Todisplay "ALL" Ifthe PromptisIgnored

This document discusses how to set a prompt as optional in a BusinessObjects WebI query report, create a variable to display the user's response to the prompt, and write a formula that displays "ALL" if the optional prompt is left blank. It provides steps for making a prompt optional, copying prompt text to create a variable, and writing an IF formula that shows either the user's response or "ALL" depending on if the prompt was left blank.

Uploaded by

uday_bvh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

BusinessObjectsWebI:Displayuserresponsetoanoptionalqueryprompt

DidyouknowthatyoucansetapromptinaBusinessObjectsWebIqueryasoptional?Thatmeans whoeverrunsthereporthastheoptiontoleavethepromptblank,sothatallpromptvalueswillbe selected. Youcancreateaformulatodisplaytheuserresponsetoapromptinareport.Ifthepromptisoptional, youcanalsocreateaformulathatdisplaysALLwhenyouleavethepromptblank.Hereshow. MakeaPromptOptional 1. Tomakeapromptoptional,clickthePromptpropertiesboxintheQuerypanel.

2. InthePromptdialogbox,turnontheOptionalpromptcheckbox.ClickOK.

CreateaVariabletoDisplayUserResponsetoaPrompt 3. IntheQuerypanel,gotothepromptyouwantandcopytheexactprompttextbyhighlighting thetextandpressingCTRL+Ctocopyit.

4. Click . 1Lastupdated:6/1/2010

5. OpentheVariableEditor.

6. Givethevariableaname. 7. NavigatetoUserResponseintheFunctionslistanddoubleclickit. 8. Clickinsidetheparentheses.PressCTRL+Vtocopytheprompttext.Enclosethetextindouble quotes.ClickOK.

2Lastupdated:6/1/2010

CreateaFormulatoDisplayALLIfthePromptisIgnored 1. CreateablankcellfromtheTemplatestab(navigatetoFreeStandingCells>FormulaandText Cells>BlankCellanddragthecellintoyourreport). 2. VerifythattheFormulatoolbar displays. 3. Clickintheblankcelltoselectit.ClickthetextfieldareaofthetheFormulaEditor.

4. Typethefollowingformulainthetextfield:

="YOURTEXTHERE:"+If([VARIABLENAME]="";"ALL";[VARIABLE])
Specificexample:

="FundCode:"+If([FundCodeUserResponse]="";"ALL";[FundCodeUserResponse])
Text(enclosedin doublequotes, joinedwithplus sign)

ThispartsaysIfthereisnouserresponsetothevariable (doublequoteswithnothinginbetween),thendisplayALL. Otherwise,displaytheuserresponse.

Theresultwhenyouignoretheprompt:

Theresultwhenyouselectvalue(s)fortheprompt:

Note:YoucanalwaysusetheVariablebutton onFormulatoolbartoturntheformula intoavariable.Ifyouplantosharethereportwithothers,theyareprobablylesslikelyto accidentlymodifyavariablethanaformula. AdditionalResources


Foradetailedstepbystepprocedureoncreatingaprompt,seeWebIEditMode:CreatePromptsina Query.ForadetailedguidetoformulasinWebI,seeUsingFunctions,Formulas,andCalculationsin WebIntelligence.

3Lastupdated:6/1/2010

You might also like