Solved

how to create a web-i report with a prompt for "state name"...bet when ALL is selected then display all cities.

Posted on 2014-11-04
6
311 Views
Last Modified: 2014-11-10
I am going to just use the eFashion universe here, because anyone can get that one. I am running BO XI R3. (soon to upgrade to BI 4.1)

I need to create a report that gets called by a .net web application and this report will need to prompt for input. For this dialog let's just say the report gets all cities by state with state being the filter. So for example, if I select California as my state, then I will get cities like: San Francisco and Los Angeles.

Here is where it gets tricky, I need to accept multiple values like: "Colorado, California", when "Colorado" is passed in, then I only want to see Colorado cities. This is easy, I just create a filter with "state" then set it to prompt....but then I need to accept a value like "ALL", and display all the cities for all the states. So when "ALL" or "0" is passed in then I want the report to ignore the filter.

In TSQL we get around this with something like this:

WHERE (0=@prompt OR STATE=@prompt)
0
Comment
Question by:sqlagent007
  • 3
  • 3
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 40422463
Are you running the reports through InfoView?

mlmcc
0
 
LVL 1

Author Comment

by:sqlagent007
ID: 40422498
Yes, however the .net application uses "OpenDocument" to call the reports.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 40422572
Is the Open document call passing the parameters or is this when you refresh the data?

mlmcc
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 1

Author Comment

by:sqlagent007
ID: 40422940
Both. During the initial call from the .net app the parameters are passed in the URL to openDoc, however users may choose to refresh the report or run it directly from infoView.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 40423983
You do the same basic thing in WebI.  Generally you do it in the universe by creating a prompt or filter with a prompt for a value.

Something like this in the universe

@Prompt('Select city','A','EFashion\City',Multi,Free) = 'ALL' OR EFashion\City' = @Prompt('Select city','A','EFashion\City',Multi,Free)

mlmcc
0
 
LVL 1

Author Closing Comment

by:sqlagent007
ID: 40434217
Thank you. Sorry for the delay.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A list of useful business intelligence software.
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question