Build a query on runtime and not on design time

Post Author: rchokler
CA Forum: WebIntelligence Reporting
When i build web Intelligence report the BO tool writes the Sql query includes all object I've picked up.
I would like the TOOL not to build the hole SQL query on design time, I wand it to build the query includes only
the objects the users picked up to display on the report (on runtime)
Can i do it?
BO XI  release 2 Enterprise edition

Hi,
As far as I know this can't be done at once because you have to consider :
- Every Opportunity and their time-limited ProductRevenues
AND
- Time-limited Opportunities
If you want to achieve this, you have to consider the 2 datasets separately and make your first query :
ObjOpptyQueryPageInput.ListOfOpportunity.Opportunity.searchspec = "([ModifiedDate] >= '01/01/2013 00:00:00')";
but also another query with the restriction on the ProductRevenue Searchspec.
This shouldn't be too hard because the searchspec functionality is present at each level :
- ListOfOpportunity -> Opportunity (the top-level that you used for your query)
- ListOfOpportunity -> Opportunity -> ListOfProductRevenue -> ProductRevenue (the sub-level that you should use for the second query)
Then in your C# code, you merge the 2 datasets and you end up with your expected result.
Hope this helps,
Charles.
http://www.dubant.com

Similar Messages

  • Denmark!  How dó i change my Ipad2, so the app, iTunes, Open in Danish and not english every time i turn it ón ?

    Denmark!  How dó i change my Ipad2, so the app, iTunes, Open in Danish and not english every time i turn it ón ?

    The language of the store is set by the store that you are using. Are you logged in with your Danish iTunes account on the iPad : Settings > Store ?

  • How can I find out the overall time and not only the time of a single clip?

    I have set up two cameras in one room. Both cameras record the same thing from different perspectives at the same time. I have found an interesting scene for video 1 (recorded by camera 1). Now I would like to find the time at which the interesting scene takes place in video 2.
    However, I have not seen any way to get displayed, at what time the scene starts in relation to the total length of the video (e.g: scene starts after 5 minutes from total 10 minutes).
    The indicated time refers only to a part of the clip and not to the overall project, even if a special clip is not selected. Does anyone know, how I can find out the time?

    Go to Settings>iCloud>Storage & Backup.  It will be shown just below the Back Up Now button at the bottom.

  • Jerky and "Not In Real Time"

    Why is my footage in AF 5.5 jerky and why do I get a message in red saying"Not in Real Time"?
    Any ideas please?

    You're not giving us any information to work with to help you. We need to know a lot more to help you. Please provide answers to the questions listed here: "FAQ: What information should I provide when asking a question on this forum?"
    I'm going to take a guess, and I'm guessing that you are previewing by pressing the space bar. Don't do that. Use RAM preview to get real-time playback of previews.
    Start here to learn After Effects: http://adobe.ly/bjBT3P

  • How do I set up my Airport Express and not interrupt my TIme Capsule

    I have ATT UVerse recently installed and have my Time Capsule Router Behind their installed router. I recently purchased Airport Extreme and want to install it as well so I can connect an older Version of a Sony PS3 which doesn't have bluetooth capability via rj45 since the time capsule is no where close to my PS3. Is there a way to install this Airport Express and not mess up the settings of the Time Capsule?

    Hello hbwilli. Welcome to the Apple Discussions!
    I recently purchased Airport Extreme and want to install it as well so I can connect an older Version of a Sony PS3 which doesn't have bluetooth capability via rj45 since the time capsule is no where close to my PS3. Is there a way to install this Airport Express and not mess up the settings of the Time Capsule?
    Yes. You will want to configure the new 802.11n AirPort Express Base Station (AXn) as a ProxySTA. In this configuration, the AXn will join the wireless network created by the Time Capsule and share Internet access through its Ethernet port to the PS3.
    To activate ProxySTA, you must set up the Express to join a wireless network and then enable the Allow Ethernet Clients setting; both settings are located in the Wireless tab of AirPort Utility. The feature should work with any wireless network: a, b, g, or n; and 5GHz or 2.4GHz. (Note that the Express, which ships with firmware 7.3, must also be updated to firmware 7.3.1 for this feature to appear.)

  • UndefinedException when working with RL-facts and testing at design time

    Hi,
    I'm performing some tests with JDeveloper Rules Designer on a very basic level. I'm defining rl facts (fact types), define a rule and write a test function to test this rule at design time. When executing my test function with the "Test Function" function an error occurs:
    UndefinedException: symbol 'Person' is undefined in main...
    Person is a fact type (RL Fact) that is the output parameter type of the decision function. If I don't use an output parameter everything works fine.
    If I use XML Facts instead of RL Facts and define an output parameter for the decision function everything works fine, too.
    Are there any restrictions for rl facts?
    //Mike

    Sure you can read and write at the same time. But normally you would be reading from one place and writing to another place.
    I rather regret avoiding the OP's earlier post asking how to combine two classes. I looked at the two classes posted and realized the best thing to do was actually to break them into more classes. But I also realized it was going to be a big job explaining why and how, and I just don't have the patience for that sort of thing.
    So now we have a Big Ball Of Tar™ and I feel partly responsible.

  • How to build a query across parent and child object fields?

    As a part of an Integration Requirement, I need to query Opportunity records that have been Modified after a specific date and time?
    Now, Opportunity has a child object called ProductRevenue with a one to many relationship. Is there anyway I can construct a querypage that will fetch records whose Opportunity fields 'OR' its child ProductRevenue's fields have been modified after a specific date and time?
    I have tried using the SearchSpec argument, but it does not let me query across child object fields.
    For eg:-
    ObjOpptyQueryPageInput.ListOfOpportunity.Opportunity.searchspec = "([ModifiedDate] > '01/01/2013 00:00:00') OR ([ProductRevenueData.ModifiedDate] >= '01/01/2013 00:00:00')";
    [This above code written in C# thew me an error saying - The object Opportunity does not have an integration component called - ProductRevenueData.ModifiedDate.]
    Any help will be greatly appreciated. Thank you.

    Hi,
    As far as I know this can't be done at once because you have to consider :
    - Every Opportunity and their time-limited ProductRevenues
    AND
    - Time-limited Opportunities
    If you want to achieve this, you have to consider the 2 datasets separately and make your first query :
    ObjOpptyQueryPageInput.ListOfOpportunity.Opportunity.searchspec = "([ModifiedDate] >= '01/01/2013 00:00:00')";
    but also another query with the restriction on the ProductRevenue Searchspec.
    This shouldn't be too hard because the searchspec functionality is present at each level :
    - ListOfOpportunity -> Opportunity (the top-level that you used for your query)
    - ListOfOpportunity -> Opportunity -> ListOfProductRevenue -> ProductRevenue (the sub-level that you should use for the second query)
    Then in your C# code, you merge the 2 datasets and you end up with your expected result.
    Hope this helps,
    Charles.
    http://www.dubant.com

  • Why not all jars picked up by ojdeloy and how to generate build.xml from command line and not JDEV GUI - quick question

    Hi All
    We have 11.1.1.7 ojdeploy to compile our app.
    We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
    eg:
      <path id="classpath">
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
    </path>
    Log Output -
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
    [ora:ojdeploy] -g
      [ora:ojdeploy] -Xlint:all
      [ora:ojdeploy] -Xlint:-cast
    [ora:ojdeploy] -Xlint:-empty
      [ora:ojdeploy] -Xlint:-fallthrough
      [ora:ojdeploy] -Xlint:-path
      [ora:ojdeploy] -Xlint:-serial
      [ora:ojdeploy] -Xlint:-unchecked
      [ora:ojdeploy] -source 1.6
      [ora:ojdeploy] -target 1.6
      [ora:ojdeploy] -verbose
      [ora:ojdeploy] -encoding Cp1252
      [ora:ojdeploy] -classpath
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
      [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
    1- Is it because it depends on how jpr or jws are configured ?
    2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?

    The first  warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
    The second warning is about you not installing acpid.
    The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
    And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
    When I do lspci -v I get:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at d0f0 [size=8]
    Memory at c0000000 (32-bit, prefetchable) [size=256M]
    Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
    Last edited by gog (2009-10-15 23:59:49)

  • Tune the query with join and not exists

    This is on 10g R2.
    I have a query similar to :
    Select A.*, C.*
    From A inner join B on A.id = B.id
    Left join C on A.kid = C.kid
    Where not exists
    (select * from D where A.fid = D.fid and A.stat = 2);
    I want avoiding to use the NOT EXISTS in the last part of the query
    I tried the autotrace explain of above and compared with others format and found no better execution plan than that. The explain plan indicated that there were long "table access full" operation on B, due to its little huge records, and a long operation of the "NESTED LOOPS OUTER". I had tried to replace the NOT EXISTS part with another LEFT JOIN in the FROM, but it went worse. So Anyone can suggest a better way? or it is the most efficient query I can get?

    Here is the tkprof output
    from baandb.ttfacr200201 a
       inner join baandb.ttfgld106201 c on (a.t$ttyp = c.t$otyp and a.t$ninv = c.t$odoc) and c.t$leac like :"SYS_B_0"
       left join baandb.ttfgld910201 d on c.t$dim2 = d.t$dimx and d.t$dtyp = :"SYS_B_1"
       where not exists
        (select * from baandb.tcisli205201 b
         where a.t$ttyp = b.t$ityp and a.t$ninv = b.t$idoc)
         and (a.t$trec = :"SYS_B_2" or a.t$trec = :"SYS_B_3" and t$tdoc = :"SYS_B_4")
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.01       0.01          0          0          0           0
    Fetch        5      1.06      52.11      29925      45943          0          54
    total        7      1.07      52.12      29925      45943          0          54
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 31
    Rows     Row Source Operation
         54  HASH JOIN RIGHT ANTI (cr=45943 pr=29925 pw=0 time=2317005 us)
       9957   INDEX FAST FULL SCAN TCISLI205201$IDX1 (cr=39 pr=0 pw=0 time=54 us)(object id 16639)
      10067   NESTED LOOPS OUTER (cr=45904 pr=29925 pw=0 time=68531937 us)
      10067    HASH JOIN  (cr=35837 pr=29925 pw=0 time=68471521 us)
      10420     TABLE ACCESS FULL TTFACR200201 (cr=2424 pr=0 pw=0 time=20894 us)
      33156     TABLE ACCESS FULL TTFGLD106201 (cr=33413 pr=29925 pw=0 time=117767552 us)
         51    INDEX UNIQUE SCAN TTFGLD910201$IDX1 (cr=10067 pr=0 pw=0 time=53177 us)(object id 20402)
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        2      0.00       0.00          0          0          0           0
    Execute      3      0.02       0.02          0          0          0           0
    Fetch        6      1.06      52.11      29925      45943          0          55
    total       11      1.08      52.14      29925      45943          0          55

  • Why does the editing feature work at times and not at other times ?

    I have paid for the right to edit documents created as PDF's.  Now when I sign in and try to edit the documents the program only works once in a while. 

    Hi Sara,
    Yes, the Export PDF subscription is what I am having trouble with.
    For example,  when I open and Export a file as attached to remove our vendors information and substitute our company info to provide export documentation for
    our lumber shipments I am not able to edit the document.
    I bought the subscription for this exact purpose to save having to recreate these documents on my own time. This is very time consuming as it must be done by hand
    in Excel.
    I was able to edit a similar document yesterday but today, no dice ???
    Sincerely,
    [private information removed]
    WILL WHAT WE DO TODAY - SPEAK WELL OF US TOMORROW

  • Simple Select query with 'where', 'and', 'between' clauses takes time

    Hi,
    I have a select query as below
    SELECT * FROM (SELECT a.*,ROWNUM currentStartRecord From (select ai_inbound.ai_inb_seq tableseq,'AI_INBOUND' tablename,'INBOUND' direction,ai_inbound.appl,ai_inbound.ai_date datetime,ai_inbound.ic_receiver_id pg_id,ai_inbound.ic_sender_id tp_id,ai_inbound.session_no,ai_inbound.ic_ctl_no,ai_inbound.msg_set_id msg_type,ai_inbound.appl_msg_ctl_no reference_no,ai_inbound.fg_version version,ai_inbound.msg_status status,ai_inbound.input_file_name,ai_inbound.output_file_name,ai_inbound.ack_file_name from ai_inbound where ai_inbound.appl = ? and ai_inbound.ai_date between ? and ? )a where ROWNUM <= 49)where currentStartRecord >= 0
    The above query takes longer time through application than expected when the date fields are passed whereas it works fine when no date fields are passed. We are using oracle9.2 version of the database. All the indexed columns and partitioned indexed columns are rebuild.
    Kindly let me know how can i tune up the query to improve the performance.
    Thanks

    Hi,
    I have a select query as below
    SELECT * FROM (SELECT a.*,ROWNUM currentStartRecord From (select ai_inbound.ai_inb_seq tableseq,'AI_INBOUND' tablename,'INBOUND' direction,ai_inbound.appl,ai_inbound.ai_date datetime,ai_inbound.ic_receiver_id pg_id,ai_inbound.ic_sender_id tp_id,ai_inbound.session_no,ai_inbound.ic_ctl_no,ai_inbound.msg_set_id msg_type,ai_inbound.appl_msg_ctl_no reference_no,ai_inbound.fg_version version,ai_inbound.msg_status status,ai_inbound.input_file_name,ai_inbound.output_file_name,ai_inbound.ack_file_name from ai_inbound where ai_inbound.appl = ? and ai_inbound.ai_date between ? and ? )a where ROWNUM <= 49)where currentStartRecord >= 0
    The above query takes longer time through application than expected when the date fields are passed whereas it works fine when no date fields are passed. We are using oracle9.2 version of the database. All the indexed columns and partitioned indexed columns are rebuild.
    Kindly let me know how can i tune up the query to improve the performance.
    Thanks

  • Will a system restore from Time Machine erase any of the data that is currently on the Mac and not in the Time Machine?

    We had a lot of data on our Mac (i.e. photos, iTunes libraries etc) which we backed up via Time Machine. The hard disk corrupted so we had to get it wiped. When we got it back, my parents started using the mac as per usual but they didn't do a full System Restore from Time Machine. So, if I do a full restore now, will it erase any of the new photos, musc etc that is currently on the mac?

    The Time Machine restore will only restore what is on Time Machine.  Making a clone is probably a better means of ensuring whatever data you want recovered gets recovered together with Time Machine.
    Generally speaking, applications that are newer than the operating system from Apple that are included with the operating system are not supported.  So in your data recovery process from your clone, you'll have to be careful what data you choose to copy back.

  • Why is my iPod skipping and not holding a time?

    I have a 4G 40GB clickwheel. It has recently begun skipping briefly every minute or so when playing any songs. I'm sure it's not the songs.
    It also will no longer hold the time when I set the clock. It keeps reverting to 12 a.m. Jan. 1, 2002.
    I have recently been using an iHome to charge it. The skipping happens regardless of whether I am listening via the iHome or headphones.
    Can anyone help? Thanks.

    You may want to try a restore.
    http://docs.info.apple.com/article.html?artnum=60983
    btabz

  • I lose my tabs when connecting to new sites sometimes and not at other times.

    I cannot determine the solution in any settings.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Removing NOLOGGING and not explicitly designating LOGGING

    We have a table that was created similar to:
    create table aTableName
    ( col1 integer,
    colN
    ) tablespace someName nologging;
    Is there an alter command that will put the status of logging for the table the same as if it were created
    create table aTableName
    ( col1 integer,
    colN
    ) tablespace someName;
    Also, are there three states for logging:
    1. LOGGING
    2. NOLOGGING
    3. (undefined)
    I think I am asking to put logging in the third (undefined) state?

    Kent Waldrop wrote:
    Is there an alter command that will put the status of logging for the table the same as if it were createdNo. All you can do is explicitly set table to LOGGING or NOLOGGING:
    ALTER TABLE table_name [NO]LOGGING;
    Also, are there three states for logging:
    1. LOGGING
    2. NOLOGGING
    3. (undefined)
    No, there is only LOGGING or NOLOGGING. Just open docs and you will see that default value is LOGGING. So if you create table without specifying LOGGING/NOLOGGING table will be created with LOGGING:
    SQL> create table test_logging(x number)
      2  /
    Table created.
    SQL> select  logging
      2    from  user_tables
      3    where table_name = 'TEST_LOGGING'
      4  /
    LOG
    YES
    SQL> SY.

Maybe you are looking for

  • Reg: ALV list Display

    Hi Experts,                 My requirement is i need a button along with the tool bar of ALV list display . when i check the button it should display the Selection criteria values which user entered as a pop up . Is there any default tool which displ

  • HT1338 Why am I getting a message "You can't open the application iPhoto because it may be damaged or incomplete" - v11, purchased and installed before Lion upgrade

    I get the message "You can't open the application iPhoto because it may be damaged or incomplete." This is a currently support iPhoto'11. Purchased and installed prior to OS X Lion upgrade. Was working, and now it is not. What might have happened? I

  • WITH clause in insert statement?

    Hi, Can I use a WITH clause in my insert select. Something like this: with q as       select a            , b         from tabc insert into tab( volume_x, volume_y ) select sum( s.volume_x ), sum( s.volume_y )   from (          select q.a  volume_x  

  • Runtime exceptions while trying to DES encryption

    Hi, I am quite new to Java and I am trying the following Encryption/decryption logic using DES Encryption. It works fine on my machine which has JDK 1.4 version and JCE 1.2.2 CODE SAMPLE:- import java.io.UnsupportedEncodingException; import java.secu

  • Illustrator CS6 Crashes When Opening PDF Files

    This is a new issue and it is happening on my Windows 7 Home Premium Desktop PC, my Windows 8.1 Laptop & my MacBook Pro (OS X 10.10.1) Below is the information from the Event Viewer Faulting application name: Illustrator.exe, version: 16.0.3.691, tim