How to Use Prompts to Select All Values

  • Upload
    a567786

  • View
    219

  • Download
    0

Embed Size (px)

DESCRIPTION

Prompts to Select All Values

Citation preview

How to Use Prompts to Select All Values

How to Use Prompts to Select All Values

There can be often requirements to create prompts for few reports at the universe level. Since prompts are dynamic filters, during the refresh we can select the values we like. Say for example in a prompt user has to select all the values. So all the values has to be selected before running the report. But by just typing a character or a string if we can run the query for an entire List of Values, then that will help the users. Following is one example of how to create a prompt that helps to select all the List Of Values by just typing a Character or a Word.(('ALL' in @prompt('Set 2 Select Customer-CDDistrict or Type ALL','A','Customer Development Hierarchy\CD District', multi,free)) OR (MAP_ORGANIZATION_PS.CD_DISTRICT_NAME in @prompt('Set 2 Select Customer-CDDistrict or Type ALL','A','Customer Development Hierarchy\CD District', multi,free)))The definition of prompt that is in black font is self explanatory to all. But if you just check the one in blue then we can understand that when the User Response is ALL then ALL matches with ALL and the condition is true. So there is no specific value is filtered, but get all the values. So the report fetches the data for all the List Of Values. This ALL in the definition can be anything a number, a letter etc.