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
314 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
[X]
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
  • 3
  • 3
6 Comments
 
LVL 101

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 101

Expert Comment

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

mlmcc
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 101

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Invest in your employees with these five simple steps to improve employee engagement and retention.
This video demonstrates basic masking and how to edit the mask to reveal the desired image.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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