Multiple Queries with Multiple Prompts

Hi,
I created a WEBI that consist of two queries. Both query is the same except the currency value in the prompt.
Query 1: Currency is MYR
Query 2: Currency is USD.
I have both Query1.NetSales and Query2.Netsales in the same report. I am able to get the report to show correct figure by running the query one by one and fill in the currency separately.
But when I run all queries or refresh all data, it only show one prompt and both queries will run based on the currency in the prompt (either MYR or USD). In the infoview, I can only able to fill in values for one prompt.
Anyone could please advise how can the report handle multiple prompts?

Thanks, but my report still doesn't show the correct figure.
My Universe is generated by the SAP BW query. The prompt is auto generated base on the condition filter in the universe which is including the currency and country.
I had added the currency in the query filter for both query:
Query1:  LovCurrency: Prompt "MY Currency:"
Query2: LovCurrency: Prompt "US Currency:"
when I run all the queries, I am able to see the above 2 newly created filter in the prompt. I had filled in MY Currency with "MYR" and US Currency with "USD". and I select Malaysia as country.
Both Query1.NetSales and Query2.NetSales in the report appear the same value and it's in MYR currency. The figure is automatically calculate base on the country default currency. If I choose multiple countries in the prompt, I will get unknown number.
My question is that, why is my currency in query filter does not take effect and overwrite the default currency.

Similar Messages

  • Multiple queries with 1 connection

    Can I execute multiple queries with one connection?
    //Example -
    <%
    String firstconn;
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    firstconn = "jdbc:mysql://localhost/profile?user=mark&password=mstringham";
    // pass database parameters to JDBC driver
    Connection aConn = DriverManager.getConnection(firstconn);
    // query statement
    Statement firstSQLStatement = aConn.createStatement();
    String firstquery = "UPDATE auth_users SET last_log='" + rightnow + "'WHERE name='" + username + "' ";
    // get result code
    int firstSQLStatus = firstSQLStatement.executeUpdate(firstquery);
    // close connection
    firstSQLStatement.close();
    %>     
    Now, instead of building a new connection for each query, can I use the same connection info for another query?
    if so - how do you do this?
    thanks for any help.
    Mark

    Create multiple statement objects from your connection. It's a good idea to close these in a finally block after you're done with them
    Connection conn = null;
    Statement stmt1 = null;
    Statement stmt2 = null;
    try {
        conn = DriverManager.getConnection();
        stmt1 = conn.createStatement();
        // some sql here
        stmt2 = conn.createStatement();
        // some more sql here
    } finally {
        if ( stmt1 != null ) stmt1.close();
        if ( stmt2 != null ) stmt2.close();

  • Workbook with multiple queries on multiple tabs

    Scenario: There is a workbook with multiple queries on multiple tabs.
    In 3.x, it was possible to refresh only a select query within the WB but I'm not finding this to be the case in the NW04s BEx Analyzer. It seems that it will always refresh all queries on all tabs.
    Do any of you know a way around this?

    Hi Bigtoja (and others).
    This is not possible in BI/2004s.
    Please refer to https://websmp106.sap-ag.de/~sapidb/011000358700004483762006E page 23. It seems that it will be implemented in a stack sometime in 2008.
    BR
    Stefan

  • Multiple Macs with multiple user accounts

    I have a Mac computer connected to airport and use Time Machine for backups. This works well.
    I have now purchased a second Mac and would like to include this second Mac so that I can move between Macs and work. There does not appear to be any mechanism to allow this.

    After searching the web and the discussion here, here's my minimal impact solution for multiple Macs with multiple users in a household:
    1) Set up Mac1 for myself only
    2) Set up Mac2 for the wife and kid
    3) Set up each Mac to backup to the Airport base station using Time Machine (this would create two separate backups on the Airport base station's drive, which from what I've read has its own problems)
    4) On Mac1 setup "empty user accounts" for the wife and kid. These will not have any files in them - just an access mechanism. If they want to access their files, they can use Time Machine's "The Browse Other Backup Disks Option" to get their file from Mac2, work on it and then drop it in the Shared Folder. Next time they are on Mac2, remember to copy the updated/created file from the Shared Folder into their Mac2 user account. If possible, get Time Machine to not backup the "empty user accounts".
    5) Do the same for me on Mac2.
    Not the most elegant solution, but until Apple get off their backside and make this seamless, I can't think of anything else :-( .
    P.S. iCloud is not a soluton since it costs hundreds of dollars a year, uses up intenet data allowance and is slow.

  • Multiple Quizzes with multiple results (in Captivate 6)

    Hey guys, Thanks for reading!
    Does anyone know if it is possible to do multiple tests with multiple results in captivate 6? or if it is possible to have a pre-test with a quiz, and have separate results for each?
    I've been having a play with captivate 6 and when I put a quiz in, it overrides the results slide for my pre-test.
    Looking at the results slide master properties I can choose to have results for one of my quizzes but not both (even on separate slides):
    It wont even let me insert another slide based on the other result.
    I would like to know if multiple quizzes with multiple results is possible in Captivate 6?, or if I am simply doing something wrong?
    Thanks!

    Sorry for way-late reply...
    It's really more how your LMS handles 'courses' and the terminology it uses.
    Essentially, most often, a 'SCORM Package' (SCO) is a 'course'. I'd rather call each SCO a 'lesson' as, to me, 'courses' should be setup in the LMS with a series of 'Lessons'.
    Regardless of the terminology, each 'SCO' is launched by the LMS and one score can be recorded for it via SCORM.
    So if you need multiple final scores recorded, each of those final scores need to be in their own SCO.
    A common approach is a Pre-Test SCO (or 'lesson', or 'course', whatever term), a 'Content' SCO perhaps with some interspersed scored interactions, and a Post-Test SCO...all three merged together as a 'course' (or whatever term) within the LMS.
    That said, as said, it really all depends on how your LMS handles various SCOs...
    Clear as mud?
    E

  • How to search for multiple values with Bex Prompts

    Hi,
    I would like to know  if it is possible to search for multiple values at the same time with Bex Prompts instead of searching one value at a time (please see the screen shot below). I searched the forum couldn't find any relevant answers. please let me know  how  to achieve?
    Thanks,
    Charvi.

    Hi Charvi,
    You can use wild card search to ensure you get multiple similar values listed as search output.use * for multiple characters and ? for single character.
    For Example, Ravi * would result you all employees with first name as Ravi
    You can use various search formats such as * Ravi * and * Ravi and Ra?? etc.
    Thanks
    Mallik

  • Single report with multiple queries OR multiple reports with single query

    Hello Experts,
    I have a confusion regarding Live Office connection for many days. I asked many people but did not get a concrete answer. I am re-posting this question here and expecting an answer this time.
    The product versions that I am using are as follows:
    FrontEnd:
      BOE XI 3.1 SP4 FP 4.1
      Xcelsius Enterprise 2008 SP4
    Backend:
      SAP BW 7.0 EHP1
    I have created a dashboard which is getting data from a webi report using LO connections.
    The webi report has five report parts which are populated by five different queries.
    Now my question is, when the five LO connections are refreshed, is the webi report refreshed five times or just once?
    If the report is refreshed five times, then I guess it is better to have five different webi reports containing single report part, because in that way we can prevent same query being executed multiple times.
    SO what is the best practice- to have a single report having multiple queries - OR - to create multiple webi reports with single query?
    Thanks and Regards,
    PASG

    HI
    I think Best Practice is Multiple reports with single query
    Any way If LO connections refresh 5 time the query will refresh 5 timesRegards
    Venkat

  • Multiple Queries with JDBC

    Hello. I'm somewhat new to all of this, so forgive me if this is something really basic.
    I'm developing an application which must interact with my MySQL database pretty frequently, however it seems to me that I am unable to, essentially, have multiple ResultSets open at a given time, which as a result prevents me from making multiple queries simultaneously. The essential problem is...
    ResultSet rs = statement.execute( "SELECT * FROM table");
    if (rs.next())
        ResultSet srs = statement.execute( "SELECT * FROM table2");
        rs.getInt("id");
    }...Yields a NullPointerException on line 5. If I am correct in my understanding, this is due to a ResultSet closing when it's statement is used a second time.
    My best guess to solving this problem is to create a pool of statement objects (which would essentially be a number of connections to the DB), and then use the first open statement object (or a newly created one) to run a particular query... however this seems rather sloppy. Not to mention that, offhand, I'm not even sure if I can have multiple connections open to the DB at the same time. Is there any better way to run multiple queries at the same time with JDBC?
    Thanks in advance for any help.
    -Jess

    That's actually what I thought at first as well... given that a NPE is generally thrown along the lines of null.getMethod() however there is no null anywhere in my code, only a closed ResultSet... which returns an NPE on using a get method. For example:
    //our import
    import java.util.*;
    import java.sql.*;
    import javax.swing.JComponent.*;
    public class Server
            public static void main( String args[] ) throws Exception
                    try
                            //register driver
                            Class.forName("com.mysql.jdbc.Driver");
                            //location of database (including string to register unicode as utf-8
                            String dbUrl = "jdbc:mysql://localhost:1111/db_name?requireSSL=false&useUnicode=true&characterEncoding=UTF-8";
                            //create connection object
                            Connection mysqlConnection = DriverManager.getConnection(dbUrl,"username","password");
                            //autocommit
                            mysqlConnection.setAutoCommit(true);
                            //log information
                            System.out.println("Connected. Connection=" + mysqlConnection);
                            Statement mysqlStatement = mysqlConnection.createStatement();
                            mysqlStatement.execute("SELECT * FROM mud_index_players");
                            ResultSet rs = mysqlStatement.getResultSet();
                            if (rs.next())
                                    System.out.prinlnt("getInt() is " + rs.getInt("id"));
                                    mysqlStatement.execute("SELECT * FROM mud_table_stats");
                                    ResultSet rs2 = mysqlStatement.getResultSet();
                                    System.out.println("Now it's " + rs.getInt("id"));
                    catch ( ClassNotFoundException cnfe )
                            cnfe.printStackTrace();
                    catch ( Exception e )
                            e.printStackTrace();
    }Yields:
    Connected. Connection=com.mysql.jdbc.Connection@329f3d
    getInt() is 1
    java.lang.NullPointerException
            at com.mysql.jdbc.ResultSet.buildIndexMapping(ResultSet.java:575)
            at com.mysql.jdbc.ResultSet.findColumn(ResultSet.java:930)
            at com.mysql.jdbc.ResultSet.getInt(ResultSet.java:2507)
            at Server.main(Server.java:34)Where line 34 in Server.main is System.out.println("Now it's " + rs.getInt("id"));Thanks again for all your help!
    -Jess
    Message was edited by:
    [email protected]
    (Was missing some code tags)

  • Would like assistance with multiple devices with multiple iTunes accounts syncing on one PC

    I have had an iPhone for some years now and have been syncing with my PC without issue (first with iPhone 3gs and now with iPhone 4s). My wife bought me an iPad 3 retina in December 2012 which syncs with the same PC as my phone and shares the same iTunes account. Apps downloaded onto one device are automatically downloaded to the other, iMessages are sent and received to both devices also.
    My Wife now has an iPad mini with retina (using her own existing iTunes account which she previously used for an iPhone she no longer uses). I synchronised her new iPad mini with my PC assuming iTunes would manage the device and related account and contents separately to my existing account and 2 devices. However this has caused an issue with the sharing of apps. Since doing so I have started seeing updates available on my devices for apps which I have never downloaded, but my wife has.  If I tell my iPad to update said apps, I am asked for my Wife's iTunes account password. 
    On doing some searching via google I now understand that I should have created a second windows profile on my PC for my wife and installed iTunes onto this profile for the purposes of syncing her device.
    I would very much like to do this, but would like some assistance on the best course of action for doing so. If I proceed and created a second profile and sync her device to this, I presume I would need to tell iTunes to treat her iPad as a new device (and wonder what would happen to her existing content)? Assuming we do this, I presume the issue of my seeing her app updates would still persist?
    Could someone advise if they have any experience with similar issues/queries?

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • Multiple queries without multiple tables?

    Greetings,
    Is there anyway I can choose between multiple queries and have the results come out on the one display table or do I have to have one display table per query?
    I'm thinking like having a dropdown list bound to queries and the results being displayed per selection.
    Many Thanks,
    Phil.

    I have this in _init() of myPage.java :
    myOwnRowSet.setDataSourceName("java:comp/env/jdbc/test1");
    myOwnRowSet.setCommand(getSessionBean1().getMethod());
    myOwnRowSet.setTableName("testTable");
    dataTable1Model.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{myPage.myOwnRowSet}"));Then in the sessionbean getMethod()returns SQL query based on the input from user. In myPage.java i have the table already constructed and inside table I have hyperlink with link_action_method() that goes like this:
    getSessionBean1().setSomeMethod(""+getValue("#{currentRow['TRIP']}"));
    log("field's value is "+(String)getValue("#{currentRow['TRIP']}"));but in log I can see If i clicked let's say on 15th row it will store data in sessionbean not from 15th row of the table beeing displayed but from the 15th row from database! What am I doing wrong? Thx for your help,
    bojanidis
    See also http://forum.sun.com/jive/thread.jspa?threadID=104342&tstart=0

  • How do set up multiple devices with multiple graphs in labview

    Hello,
    I am new at LabView, and we are trying to setup a test rig to measure voltage, pressure and flow rates. We are currently using a NI-6009USB box and Labview version 8.2.  Our problem lies in setting up the actual measurements on separate graphs. How do i go about setting up the daq-assistant to measure mulitple devices, and graph them on their own graphs?  We also need to know how to program in when measuring flow, how to convert it from square wave form to a calibrated curve?
    Any help would be greatly appreciated!
    Nate

    When you configure the DAQ Assistant, you will be first asked to select the measurement type. Assuming that you have voltage sensors because you have the 6009, you select Analog Input>Voltage. You then get a list of devices. Since you only have one, it should be listed as Dev1. Expand that and then pick the channels you have connected to the sensors. Just like it says at the bottom of the of the channel window, you can select multiple channels with  <CTL> or <SHIFT> click. After you've done that, the next window is where you select your sample rate, number of samples, etc. You can also select a custom scale for each channel. This is where you would enter any formula you have from the sensor vendor in order to convert a voltage reading to scaled units.
    The output of the DAQ Assistant is a dynamic data type. You can wire this to a single graph to display all readings together or use the Split Signals function to break out individual channels for separate graphs.
    Message Edited by Dennis Knutson on 02-22-2007 03:33 PM
    Attachments:
    Split Signals.PNG ‏4 KB

  • Multiple iPods with Multiple computers

    I have two iPods and each syncs with a different machine. Each has a unique music library. What would happen if I switched iPods. i.e. plugging two different iPods into one machine? Will they somehow merge the libraries, or will iTunes just complain that I'm confused.
    Thanks,

    Have a look at this article: How To Use Multiple iPods with One Computer
    Also, before you connect an iPod that is currently linked to a different library, read this one: Using iPod with Multiple computers

  • Issues with multiple Files with multiple subdbs on a single environment.

    I'm having an issue with Berkeley DB 4.2 on 32-bit platforms, regarding multiple physical files with multiple subdatabases in a single database environment. Specifically, when I open a subdatabase for a physical file, Berkeley DB thinks that it is using the same subdatabase in a different physical file.
    I'm doing the following:
    1. Create and open a db enviornment.
    2. Move file1 to the common area.
    3. Open, get and close the subdatabases in file1.
    4. Move file2 to the common area.
    5. Open, get and close the subdatabases in file2.
    6. remove file2 from the common area
    7. Move file3 to the common area.
    8. Open a subdatabase from file3. About 1/2 the time, the fetches
    return data from file2, not from file3.
    It's possible that at some earlier time (i.e. before step 1 of this
    test case), file1, file2 and file3 were the same file. I noticed
    that there is something called env->fileid_reset, but that is not
    in 4.2.52.
    Any ideas?

    Looks like I've resolved the issue

  • Help with multiple contacts with multiple phone numbers

    I'm fairly new to the iPhone so thanks in advance for any help with this issue.
    I have contact list with records for a lot of people (300+), each with several phone numbers each, home, mobile & work, etc, .I can't seem to find a way to have the iPhone announce the name & number or name & type (home,mobile,work) of the caller from the contact list, my old cell phone could do that easily.
    At the moment what I've been doing as a work around for a few (important) people is to create a custom ringtone for that caller & that phone number.  Since it also seems there's no way to attach a different ringtones to each number in a single contact record I've had to create multiple contact records for each person, each with a different name/number combination such as "John Doe Work", "John Doe Home" or John Doe Mobile" then assign to it the custom ringtone I created for that name/number. 
    I need to this so that if I receive a call while I'm driving (or whatever) that I can't answer right then for some reason (often happens),  the ringtone I created for that name & number helpfully lets me know  who & where their calling from.  It's very important to know where someone is calling from, if someone's calling from home then I know I've got some time,  but if their calling from work then I need to get back to them quickly.
    This is a real pain!, having to make multiple contacts & ringtones for a every person with multiple numbers is a extraordinary waste of time.  My old cell phone could do this with no problem but there doesn't seem to be any way to do this with my new iphone.  Am I missing something here?  I am new to the iPhone so if there’s a solution to this that I’ve missed I'd very much appreciate the assistance.
    Thanks in advance.
    Al

    https://discussions.apple.com/message/18271382#18271382

  • Multiple SSID With Multiple VLANs configuration on Cisco Aironet APs: Assotiated clients cannot obtain IP addresses

    Hi Surendra,
    I was just given this task to see how i can configure a second ssid for guest access in our environment.
    this is our network setup prior to this request: Internet----Firewall (not ASA)---ce520---C1131AG and CME router is also connecting to the ce520 switch. we only have two vlans: one for voice and two for data.
    Presently, there is no vlan configured on the AP because it on broadcasting ont ssid and wireless users gets IP from a windows DHCP server on the LAN. the configuration on the ce520 switch port for the AP and other switches say access vlan is the DATA vlan which automatically becomes the native vlan for all trunk port connecting the AP and other Stiches to the network.
    Now with this new requirement, i have made my research and i have configured the AP to broadcast both the production and the guest Vlans. The two vlans are 20-DATA and 60-Guest. I made the DATA vlan on the AP the native vlan since the poe switch is using the DATA vlan as native on the trunk ports. I configured the firewall to serve as DHCP server for the guest ssid and i have added the ip helper-address on the guest vlan interface on all switches while the windows server remains the dhcp server for the production DATA Vlan. I have confirmed that the AP, switches can ping the default gateway of the guest dhcp server which is another interface on the firewall. I can now see and connect to all broadcasted ssids but the problem is I am not getting IP addresses from both the production dhcp server and guest dhcp server when i connected to the ssid one at a time.
    My AP config is attached below.
    Please tell me what am I doing wrong.
    Do i need to redesign the whole network to have a native vlan other nthan the data vlan?
    Does the access point need to be aware of the voice vlan?
    Do the native Vlan on the AP need to be in Bridge-group 1 or can i leave it in bridge-group 20?
    I will greatly appreciate your urgent response.
    Thanks in advanced.

    Hi,
    As far as i know we dont set the ip helper address on the radio interface. It should be on the L3 interface of corresposding VLANs i.e.
    int vlan 20
    ip helper-address 192.168.33.xxx
    int vlan 60
    ip helper-address 130.20.1.xxx
    I'm assuming that your using SVI's (int Vlan 20 and int Vlan 60) rahter than physical interfaces. Also hope you have configured switch port as trunk where this AP is connected.
    Modify the AP config as below since you are using data vlan as the native vlan
    interface Dot11Radio0.20
    encapsulation dot1Q 20 native
    interface FastEthernet0.20
    encapsulation dot1Q 20 native
    Ideally your AP fastethernet configuration should looks like below and not sure how you missed this as this comes by default when you have multiple vlans for multiple ssids.
    interface FastEthernet0.20
    encapsulation dot1Q 20 native
    no ip route-cache
    bridge-group 20
    no bridge-group 20 source-learning
    bridge-group 20 spanning-disabled
    interface FastEthernet0.60
    encapsulation dot1Q 60
    no ip route-cache
    bridge-group 60
    no bridge-group 60 source-learning
    bridge-group 60 spanning-disabled
    Hope this helps.
    Regards
    Najaf

Maybe you are looking for