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
303 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
Comment Utility
Are you running the reports through InfoView?

mlmcc
0
 
LVL 1

Author Comment

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

Expert Comment

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

mlmcc
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 1

Author Comment

by:sqlagent007
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you. Sorry for the delay.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
If your app took Google’s lash recently, here are the 5 most likely reasons.
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now