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
309 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Let’s list some of the technologies that enable smooth teleworking. 
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 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

17 Experts available now in Live!

Get 1:1 Help Now