Interactive Reporting - Chg Query from Using Table to Result Set w/ same Co

Currently I have a query that uses an Oracle table. I would like to change the query to use the result set of another query wh/ contains the same information & column names (however, since I am creating the results from scratch, I don't have to wait for the Oracle table to be updated). Is there a way to do this change w/o IR automatically removing the column names from the results and then making me go back into each result set and re-adding them, formatting them, etc. For example, the query currently uses a table called Defect_History, wh/ has columns bug_id, application, sub-app, etc. This table is not updated on a daily basis, so I have created a new query wh/ goes against the source tables used in creating the Defect_History table and puts the latest information into an IR result set. Is there a way to change the current queries that use the Defect_History table to use the IR result set instead w/o basically recreating each of the subsequent queries? I have gone into Dashboard Studio Optimize Utility, but the queries show as using Data Model, Data Model2, etc as the Parent and I am not able to make changes to it.
Thanks.
Terri

I am in the Dashboard Studio - Optimize Utility. When I select that report (or any of the others), the Reparent button is grayed out on the toolbar. I've also tried right-clicking on the report and it's grayed out there as well. Any ideas?

Similar Messages

  • I need to query from db table and static VO in same time

    I have query VO which returns user roles
    so the result will be something like 1,5,6,3,1
    and i have static list contains the role names with their codes
    1 ------> administrator
    2 -------> user
    3 --------> system manager
    I used the first VO to build ADF select one choice contains the code of roles
    how can I display the role name instead of its code

    thank you john for explaining
    if I put the static list in data base the problem is solved, I can get the role names by my query, but NO I can't but it in database
    I am now trying to do that by java code but I want to know if that can be done without writing codes

  • Dbms_xmlgen.newcontext query from multiple tables and ||

    I have two questions
    How do I get a dbms_xmlgen.context to query from multiple tables? I have been able to make it work with using one table only, but not with multiple tables.
    And how to get the || (concat) to work within my query for my output to an xml file?
    Here is my current query:
    create or replace function get_xml return clob is
    result clob;
    qryctx dbms_xmlgen.ctxHandle;
    SELECT DBMS_XMLGEN.getxml('select prefix, suffix, fiscal_yr
    FROM rcv.recv_accessions ra
    where ra.prefix = 8 and ra.fiscal_yr = 11')xml into result FROM dual;
    result := DBMS_XMLGEN.getXML(qryCtx);
    This is what I desire:
    SELECT DBMS_XMLGEN.getxml('select ra.prefix||'-'|| ra.suffix||'-'|| ra.fiscal_yr accession, ss.date_in, st.test
    FROM rcv.recv_accessions ra, ser.sero_samples ss, ser.sero_tests st
    where ra.prefix = 8 and ra.fiscal_yr = 11 and ss.raid = ra.id and st.ssid = ss.id')xml into result FROM dual;
    On this both the reference to multiple tables and the concat function cause errors.
    Thank you
    Edited by: user583094 on Mar 2, 2011 3:36 PM

    Hi,
    for the concat do I use xmlconcat?No, XMLConcat is used to concatenate XMLType fragments.
    The || operator will do fine, but you must escape any single quote inside the string :
    SELECT DBMS_XMLGEN.getxml(
    'SELECT ra.prefix ||''-''|| ra.suffix ||''-''|| ra.fiscal_yr as accession,
            ss.date_in,
            st.test
    FROM rcv.recv_accessions ra,
          ser.sero_samples ss,
          ser.sero_tests st
    WHERE ra.prefix = 8
    AND ra.fiscal_yr = 11
    AND ss.raid = ra.id
    AND st.ssid = ss.id'
    INTO result
    FROM dual;Or, use the quoting operator to define a custom string delimiter :
    SELECT DBMS_XMLGEN.getxml(
    q'{SELECT ra.prefix ||'-'|| ra.suffix ||'-'|| ra.fiscal_yr as accession,
            ss.date_in,
            st.test
    FROM rcv.recv_accessions ra,
          ser.sero_samples ss,
          ser.sero_tests st
    WHERE ra.prefix = 8
    AND ra.fiscal_yr = 11
    AND ss.raid = ra.id
    AND st.ssid = ss.id
    INTO result
    FROM dual;BTW, a good practice would be to use bind variables for the query. DBMS_XMLGEN can handle them nicely :
    CREATE OR REPLACE FUNCTION get_xml
    RETURN CLOB
    IS
    qryctx   DBMS_XMLGEN.ctxHandle;
    v_out    CLOB;
    qrystr   VARCHAR2(4000) :=
    'SELECT ra.prefix ||''-''|| ra.suffix ||''-''|| ra.fiscal_yr as accession,
            ss.date_in,
            st.test
    FROM rcv.recv_accessions ra,
          ser.sero_samples ss,
          ser.sero_tests st
    WHERE ra.prefix = :b_prefix
    AND ra.fiscal_yr = :b_fiscal_yr
    AND ss.raid = ra.id
    AND st.ssid = ss.id';
    BEGIN
    qryctx := DBMS_XMLGEN.newContext(qrystr);
    DBMS_XMLGEN.setBindValue(qryctx, 'b_prefix', '8');
    DBMS_XMLGEN.setBindValue(qryctx, 'b_fiscal_yr', '11');
    -- to generate empty elements if necessary :
    DBMS_XMLGEN.setNullHandling(qryctx, DBMS_XMLGEN.EMPTY_TAG);
    v_out := DBMS_XMLGEN.getXML(qryctx);
    DBMS_XMLGEN.closeContext(qryctx);
    RETURN v_out;
    END;

  • Combine two reports in query designer using key figure with sap exit

    Hi experts,
    i want to combine two reports in query designer using key figure with sap exit
    in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
    to calculate due and not due in two columns
    in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
    to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
    now i have requirement like this
    not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
    or
    not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
    thank you

    Hi Dirk,
    you perhaps know my requirement,
    for the management to make used in one report,
    we have in reporting finacials Ehp3.
    Vendor Due Date Analysis - which show due, not due
    Vendor Overdue Analysis - show only due and analysis in time grid frame
    i want to combine in one report that show NOT DUE, DUE, DUE time frames in grid.
    krish...

  • I am using pages '09. I have been trying to put together a report and I am using tables to help keep my data in line. My data is free text and would like to footnote certain data as to it origin, but footnoting is grey-out. How can I footnote on table mod

    I am using pages '09. I have been trying to put together a report and I am using tables to help keep my data in line. My data is free text and would like to footnote certain data as to it origin, but footnoting is grey-out. How can I footnote in table mode inpages '09?

    Footnotes can only be inserted in the main text area between the margins on a Word Processing document.
    Peter

  • Interactive Reports for Marketing Campaigns using HANA

    Dear Experts,
    We are Implementing Interactive Reports for Marketing Campaigns using HANA Hence, I request you all to help with the Config Steps  / any documents that help.
    Your Help is really appreciated.
    Thanks In advance
    Satish

    David,
    There are several drawbacks with the standard functionality that you will encounter:
    -  SAPconnect only supports HTTP url posting or RFC destination setup (which means you need a third party server program)
    -  The mail forms do not impose a limitation on the length of messages
    -  Target groups do not check if the person has a mobile number.
    If you look at SMS gateway providers they normally allow use via web service or SMPP.  If you plan on doing "bulk" campaigns where you will generate multi-thousand messages a month then you need to use one of these options.  SMPP is a binary protocol that is way too complicated for a business application to implement.  So web services is your best bet.
    If we used mostly standard CRM functionaliy we would do the following for SMS:
    -  Use the segment builder to handle our target groups
    -  Use the personalized mail functionality
    -  Use the open channel exits for segment execution to handle the communication to SMS gateway.
    Now keep in mind that for SMS campaigns this is going to be cubersome, and not going to provide all the mobile marketing functionality you need.  It still appears that even for CRM 52/2007 that mobile marketing is not really fully addressed in the solution with several major gaps.
    We ended up going down a custom route, because the segment builder was not-user friendly and unstable in CRM 40 and the mail form technology did not meet our needs for sending messages and creating template based scenarios.  We still make use of the CRM business partner master for the distribution.
    If you have any further questions on doing SMS campaigns with CRM, please let me know.  This is one area where I have spent some extensive research.  If you are looking for SMS gateway providers in the US, I can also provide some names based on our previous research.
    Thank you,
    Stephen

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Import data from few tables and export into the same tables on different db

    I want to import data from few tables and export into the same tables on different database. But on the target database, additional columns have been added
    to the same tables. how can i do the import?
    Its urgent can anyone please help me do this?
    Thanks.

    Hello Junior DBA,
    maybe try it with the "copy command".
    http://download.oracle.com/docs/cd/B14117_01/server.101/b12170/apb.htm
    Have a look at the section "Understanding COPY Command Syntax".
    Here is an example of a COPY command that copies only two columns from the source table, and copies only those rows in which the value of DEPARTMENT_ID is 30:Regards
    Stefan

  • Interactive report based on a temporary table?

    hi -- I'm trying to get around some performance issues using database links, and the use of global temporary tables was suggested.
    However, the performance issue is in defining the query for an interactive report... and the allowable source for these seems to be more particular
    than for other queries / reports.
    I currently use asa collection the source of data for the IR -- works, but is SLOW for DB links.
    I don't know how much benefit to expect from the use of a global temporary table... but it seems I can't
    create an IR based on a temporary table... as when the query is parsed the table does not exist.
    Am I missing something? Has anyone done this?
    Thanks,
    Carol

    If you build the global temporary table and leave it in place, then it might work. Deleting and creating tables on the fly is NOT really suggested in Oracle. When you need to, you could in the page header execute a procedure to select/insert into the global temp table, since they normally clear out when your session is complete..
    Thank you,
    Tony Miller
    Webster, TX

  • ALV OOps report- getting data from two tables and adding issue

    Hi,
    This is sales employee performance report.
    I need to select all the fields from two tables based on user input ie VKorg, sales employee .
    There is one field callled " Net sales"in both the tables.
    Based on sales employee number, i need to add that net sales which i get from two tables.
    I need to generate single report.
    Can you give some inputs reg. the select query.
    My idea is select all the data from both tables using join statement.
    Thanks

    Hi,
    I have written like this:
    select * from S002 as a join S006 as b
        into table ME->SS002_RAW[]
        where vkorg in me->select_parameters->SO_VKORG[] = vkorg in me->select_parameters->SO_VKORG[]
              and ZZSLSEMP01 in me->select_parameters->SO_so_empl[] = ZZSLSEMP02 in me->select_parameters->SO_so_empl[].
    when i do like that,
    I am getting error
    Incorrect structure of FROM clause . . . .     
    If you give some idea on this
    Edited by: Raja on Apr 22, 2009 11:19 AM

  • Interactive report on SELECT * FROM X

    Hi,
    Is there anyway to create an interactive report using SELECT * FROM my_table; where you can add a new column to "my_table" and for the interactive report to pick up the new column without having to go into the report region and hit apply changes?
    I've tried using a collection but that doesn't work as you still have to manually refresh the report region.
    I've even tried hacking my way into:
    wwv_flow_f4000_util.save_interactive_rpt_region (
    p_region_id in number,
    p_flow_id in number,
    p_plug_name in varchar2 default null,
    p_region_name in varchar2 default null,
    p_region_template in number default null,
    p_display_seq in number default null,
    p_display_column in number default null,
    p_display_point in varchar2 default null,
    p_region_source in varchar2 default null,
    p_breadcrumb_template in number default null,
    p_list_template in number default null,
    p_region_display_error_msg in varchar2 default null,
    p_required_role in varchar2 default null,
    p_display_when_cond in varchar2 default null,
    p_display_when_cond2 in varchar2 default null,
    p_display_cond_type in varchar2 default null,
    p_region_header in varchar2 default null,
    p_region_footer in varchar2 default null,
    p_region_column_width in varchar2 default null,
    p_customized in varchar2 default null,
    p_customized_name in varchar2 default null,
    p_requied_patch in number default null,
    p_url_text_begin in varchar2 default null,
    p_url_text_end in varchar2 default null,
    p_translate_title in varchar2 default null,
    p_comment in varchar2 default null);
    (Yes, I know that's bad!)
    Still can't get this to work anyway.
    There must be a way of doing this....
    Any help gratefully recieved.
    Thanks
    Yog

    Keith,
    No it doesn't.
    Here is an example.
    1. Created an interactive report with source as select * fom dept.
    2. Ran my page and saw a report based on columns deptno, dname and loc
    3. Added a column to dept called "newcol"
    4. Reran the page - columns are still deptno, dname and loc
    5. clicked on green cog / select columns and the only options avaiable are still deptno, dname and loc
    In order to get "newcol" to appear I have to edit the page, go to my report region and click Apply Changes. A summary appears with the new column "newcol" shown. I click apply changes again and run the page and only then does the new column appear.
    Cheers
    Yog

  • [Help] Join query from 3 tables

    Hi, I'm new to database. I have a question about joining 3 tables, pardon me for my bad english.
    My tables look like this
    table 1: Person (id,firstname, lastname)
    table 2: AssignPersonAddress (id,personid,addressid,type)
    table 3: Address (id,telefon, street, etc)
    I need AssignPersonAddress table, because in my data structure a person can have more than 1 address and the address type should be saved (for eg: private, work)
    I want to make a select query to report all of person with his private telefon and work telefon, like this.
    PERSON | PRIVATE | WORK
    At the moment my query looks like this
    select p.name , a1.tel AS Private, a2.tel AS Work
    from person p,
    addresse a1 ,
    AssignPersonAddress apd1,
    AssignPersonAddress  apd2,
    addresse a2
    where p.id  = apd1.person (+)
    and apd1.adresse  = a1.id
    and apd1.art = 'Private'
    and p.objectid = apd2.person (+)
    and apd2.adresse  = a2.id
    and apd2.art = 'Work'the problem is I only get the person who has private and work address. But what I want is all person no matter if the person has only 1 address or 2 address.
    As you can see I put the outer left join at the where condition, but I'm still getting the wrong result.
    thx in advance
    Danny
    Edited by: raitodn on Oct 1, 2009 3:51 AM
    Edited by: raitodn on Oct 1, 2009 4:12 AM

    Hi,
    You're essentially doing an inner join, because some of the comparisons are missing the + markerr.
    Do this instead:
    select  p.name , a1.tel AS Private, a2.tel AS Work
    from      person                p
    ,      addresse           a1
    ,      AssignPersonAddress      apd1
    ,      AssignPersonAddress      apd2
    ,      addresse           a2
    where      p.id           = apd1.person (+)
    and      apd1.adresse      = a1.id (+)
    and      apd1.art (+)     = 'Private'
    and      p.objectid      = apd2.person (+)
    and      apd2.adresse      = a2.id (+)
    and      apd2.art (+)     = 'Work'
    ;What does this mean?
    where      p.id           = apd1.person (+)It means "include rows from p even if they don't have any matching rows in apd1". Whenever that happens, all the colummns from apd1 will be NULL.
    So far, so good.
    Now, what happens if you follow that with
    and      apd1.adresse      = a1.id The condition above means "include this row from apd1 only if there is matching row in a1". If apd1 is NULL, this condition will never be TRUE (even if a1.id is NULL).
    When you do a cascading outer join like this, all columns in the distal table (the table farther away from the table that must be present) need to be marked with the + sign. That includes conditions involving a constant, like
    and      apd1.art (+)     = 'Private' By the way, when posting code or results on this site, always type these 6 characters:
    (small letters only, inside curly brackets) to preserve spacing and to keep some strings, such as the outer-join marker, form being interpreted as emoticons.
    Edited by: Frank Kulash on Oct 1, 2009 6:37 AM
    Added explanation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Query from source table takes lots of time

    I have to load data from an Oracle table which has millions of records. The loading knowledge module I am using is 'lkm sql to oracle'.
    I see that the query from the source database takes lot of time and doing a full table scan where as it supposed to be using an index.
    I dont have any lkm with 'lkm oracle to oracle'. Some how I need to add a hint to this source query. How I can do this?

    This LKM is not indicated to large volume of data, try to use LKM Oracle to Oracle (DBLINK), see ODI KMs documentation for more information.
    Related to HINTS you can add this with KM options, see that some Oracle ODI11g new KMs already have some options to do it, so you can put the hint on interface options of KM or define the temp index on the interface

  • Loans disappear from report after fields from second table are added

    We are using Crystal XI.  We have two tables from a sequel database we use for the reports, and we always have.  Suddenly, we have been experiencing problems with loans being dropped from the reports and we have been trying to isolate the problem.  To troubleshoot, I created a very simple report to provide the loan number and the borrower name from Table 1.  I did not create any parameters so the report provided the information for all loans in the database.  However, when I add a field to the report from Table 2, either all of the loans disappear or the number of loans on the report are drastically reduced.
    As another test, I created a report to include just the loan number.  The loan number field appears in both tables.  I get different results if add the loan number to the report from Table 1 than I get if I add the loan number to the report from Table 2. When I create the report, the tables auto-link with no errors.  
    I have reviewed all the report options and general options in Crystal and can't find why this is occurring.  I have had our IT staff troubleshoot and help me test using older versions of the tables, but we get the same results.  Any suggestions will be greatly appreciated.

    From what you have described, could it be your table joins?  You mention that once you add the second table, records get dropped.
    Check your table join, even though it auto links, right click on the link and see if the join is INNER or LEFT OUTER.
    If INNER then every loan number in Table 1 should exist in Table 2, LEFT OUTER = every loan number in table 1 will be fetched irrespective of whether it has a corresponding match in table 2 or not.
    Check your joins and change them and see if that makes a difference.

  • Interactive Report Column Heading Filters using LIKE instead of =

    Still on APEX 3.1
    I have an inter active report with a column Like Below
    select case when trunc(c.resp_contact_dt, 'MM') = trunc(sysdate, 'MM') or trunc(c.oth_contact_dt, 'MM') = trunc(sysdate, 'MM') then '<img src="/i/contact_2_green.png" alt="RESP A: ' || to_char(c.resp_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.resp_contact_dt, 'MM/DD/YYYY') ||'
    ' || 'OTH A: ' || to_char(c.oth_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.oth_contact_dt, 'MM/DD/YYYY') || '">'
    when trunc(c.resp_attempt_dt, 'MM') = trunc(sysdate, 'MM') or trunc(c.oth_attempt_dt, 'MM') = trunc(sysdate, 'MM') then '<img src="/i/contact_2_yellow.png" alt="RESP A: ' || to_char(c.resp_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.resp_contact_dt, 'MM/DD/YYYY') ||'
    ' || 'OTH A: ' || to_char(c.oth_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.oth_contact_dt, 'MM/DD/YYYY') || '">'
    else '<img src="/i/contact_1_red.png" alt="RESP A: ' || to_char(c.resp_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.resp_contact_dt, 'MM/DD/YYYY') ||'
    ' || 'OTH A: ' || to_char(c.oth_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.oth_contact_dt, 'MM/DD/YYYY') || '">' end as Contact,
    This column header has an User defined LOV
    select '%green%' d,
    '<img src="/i/contact_2_green.png">' r from dual
    Union select '%red%' d,
    '<img src="/i/contact_1_red.png">' r from dual
    union select '%yellow%' d,
    '<img src="/i/contact_2_yellow.png">' r from dual
    When user select my Red image from the column header link
    the filter generates where contact = '%red%' This fails
    Is there a way to generate the filter contact like '%red%' without the user having to change it to like.
    Is this possible in 4.0?

    I am assuming Because of the crickets either I am doing my SQL to incorrectly and there is a better way to return get a popup with a changing image into an interactive report
    or
    There is no way to do what I am trying

Maybe you are looking for

  • Error while uploading R/3 Derived Role into EP

    Dear all, When i was trying to upload the derived role from backend R/3 system. It's giving following error. com.sap.portal.pcd.rolemigration.RoleMigrationException: Nested Exception. Failure to execute native function. Nested Exception. ROLE_IS_DERI

  • Reports 2.5

    Hi All, Formatting of a report takes a long time - what can speed this up? PC platform is NT. Oracle DB 7.3.4. The SQL statement has been tuned as req'd. Would a higher spec PC help? Grateful for replies. Andy

  • Hi reg report

    Hi all There is a report for vendor price comparision list. for 12 months .,, In that in each vendor , i have to give green color for highest price  and red colour for lowest price.,,  how shuld I ?? In each row, i should find the max and min dynamic

  • HELP! SQLServer7 & Weblogic problem.

    I can not get a SQLServer connection pool to work. All I get is the error: java.sql.SQLException: Login failed for user '(null)'. Reason: Not associated w th a trusted SQL Server connection. Severity 14, State 1, Procedure 'null null' Line 0 Unable t

  • Reinstall CS 5.5

    Hi, I purchased the ADobe Web Premium SC 5.5 suite a couple years ago and recently got a new computer. I still have the license key to transfer the license to my new computer, but I can't find the download files to be able to reinstall the suite on m