Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
312 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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 shows how use content aware, what it’s used for, and when to use it over other tools.

808 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