Data Model--Query Background colour

Hi All
In Oracle Applications(11i)----Standard Reports ,Query Background colour is changed to different colours(other than standard blue colour)
How Can we Achive This.?
Any Suugestions are welcome
Tahnks In Advance
Sasi

Hello Sasi,
I have never touched an Oracle Application before, but in Report builder, i don't think there is a way to change the background color of the Data Model query to anything other than the standard blue.
-Marilyn

Similar Messages

  • Data Grid - Row background colour

    Hi All,
    I want to change the background if each row of a data grid
    object individually. what can I do?
    thx

    Hello Sasi,
    I have never touched an Oracle Application before, but in Report builder, i don't think there is a way to change the background color of the Data Model query to anything other than the standard blue.
    -Marilyn

  • Can you change the data model query dynamically based on its parent query

    Hi
    Question:
    I have a data model query q1 and q2 is the child of q1
    Say q1 returns 2 rows and and
    for the first row
    i want q2 to be select 1 from table1
    for the second row
    i want q2 to be select 1 from table2
    Basically i want to build the q2 dynamically
    for each row fetched in q1.
    Can this be done?
    If so where do i write the code to achieve this
    Thanx in advance.
    Suresh

    One simple (but not very realistic) example:
    1. DATABASE TABLES AND DATA
    CREATE TABLE dept_all (
    deptno NUMBER (2),
    dname VARCHAR2 (20),
    in_usa CHAR (1) DEFAULT 'Y')
    INSERT INTO dept_all VALUES (10, 'DEPT 10', 'Y');
    INSERT INTO dept_all VALUES (20, 'DEPT 20', 'N');
    INSERT INTO dept_all VALUES (30, 'DEPT 30', 'Y');
    CREATE TABLE emp_usa (
    empno NUMBER (4),
    ename VARCHAR2 (20),
    deptno NUMBER (2))
    INSERT INTO emp_usa VALUES (1001, 'EMP 1001', 10);
    INSERT INTO emp_usa VALUES (1002, 'EMP 1002', 10);
    INSERT INTO emp_usa VALUES (3001, 'EMP 3001', 30);
    INSERT INTO emp_usa VALUES (3002, 'EMP 3002', 30);
    CREATE TABLE emp_non_usa (
    empno NUMBER (4),
    ename VARCHAR2 (20),
    deptno NUMBER (2))
    INSERT INTO emp_non_usa VALUES (2001, 'EMP 2001', 20);
    INSERT INTO emp_non_usa VALUES (2002, 'EMP 2002', 20);
    2. DATABASE PACKAGE
    Note that Oracle Reports 3.0 / 6i needs 'static' ref cursor type for building Report Layout.
    So, in package specification we must have both ref cursor types, static for Report Layout
    and dynamic for ref cursor query.
    CREATE OR REPLACE PACKAGE example IS
    TYPE t_dept_static_rc IS REF CURSOR RETURN dept_all%ROWTYPE;
    TYPE t_dept_rc IS REF CURSOR;
    FUNCTION dept_query (p_where VARCHAR2) RETURN t_dept_rc;
    TYPE t_emp_rec IS RECORD (
    empno emp_usa.empno%TYPE,
    ename emp_usa.ename%TYPE);
    TYPE t_emp_static_rc IS REF CURSOR RETURN t_emp_rec;
    TYPE t_emp_rc IS REF CURSOR;
    FUNCTION emp_query (
    p_in_usa dept_all.in_usa%TYPE,
    p_deptno dept_all.deptno%TYPE)
    RETURN t_emp_rc;
    END;
    CREATE OR REPLACE PACKAGE BODY example IS
    FUNCTION dept_query (p_where VARCHAR2) RETURN t_dept_rc IS
    l_dept_rc t_dept_rc;
    BEGIN
    OPEN l_dept_rc FOR
    'SELECT * FROM dept_all WHERE ' || NVL (p_where, '1 = 1') || ' ORDER BY deptno';
    RETURN l_dept_rc;
    END;
    FUNCTION emp_query (
    p_in_usa dept_all.in_usa%TYPE,
    p_deptno dept_all.deptno%TYPE)
    RETURN t_emp_rc
    IS
    l_emp_rc t_emp_rc;
    l_table VARCHAR2 (30);
    BEGIN
    IF p_in_usa = 'Y' THEN
    l_table := 'emp_usa';
    ELSE
    l_table := 'emp_non_usa';
    END IF;
    OPEN l_emp_rc FOR
    'SELECT * FROM ' || l_table || ' WHERE deptno = :p_deptno ORDER BY empno'
    USING p_deptno;
    RETURN l_emp_rc;
    END;
    END;
    3. REPORT - QUERY FUNCTIONS AND DATA LINK
    FUNCTION q_dept RETURN example.t_dept_static_rc IS
    BEGIN
    -- "p_where" is a User Parameter
    RETURN example.dept_query (:p_where);
    END;
    FUNCTION q_emp RETURN example.t_emp_static_rc IS
    BEGIN
    -- "in_usa" and "deptno" are columns from Parent Group (G_DEPT)
    RETURN example.emp_query (:in_usa, :deptno);
    END;
    Of course, we must create Data Link between Parent Group (G_DEPT) and Child Query (Q_EMP).
    Regards
    Zlatko Sirotic

  • ORACLE reports Build 10g - Data Model - query - If statement in Alias ?

    I have the following select statement. It has the alias Survivors, Deaths and "All
    With the ORACLE reports Build 10g - Data Model - I have the following query statement. I require the alias to change. Can the following be done.
    Cases". Is it posible to use :P_LANGUAGE variable to say that -- IF :P_LANGUAGE = FRENCH THEN alias are Survivants for survivors, Décès for Deaths, Tous_les_cas for All Cases. Please advise
    SELECT ALL T_NTR_MULTIBAR.CAT, T_NTR_MULTIBAR.NUM_CASES_LEFTBAR AS Survivors,
    T_NTR_MULTIBAR.NUM_CASES_MIDDLEBAR AS Deaths, T_NTR_MULTIBAR.NUM_CASES_RIGHTBAR AS "All Cases"
    FROM T_NTR_MULTIBAR
    WHERE INSTANCE_NUM = :P_INSTANCENUM
    order by ORDERS

    It is no problem, you can automatically change the complete query before the report is running, which delivers you different kind of values. But the alias names does not change in the group of the data-model, although two query are running with different alias names at different times. In the data model you see the alias names of the first implemented select statement, which are the column fields in the layout.

  • OBIEE EXECUTE PHYSICAL sql as Data Model Query

    The following SQL was generated using OBIEE. I'd like to use it as the SQL query for my data model. It works fine it I hard code all of the values into the where clase. However when I attempt to pass parameter values (:ACCOUNTING_PERIOD & :FISCAL_YEAR) into the below SQL statement, I get an error and the report will not generate. The error is the typical "The report can't be rendered. Check with your administrator". Any ideas on how I can pass parameter values into this SQL?
    EXECUTE PHYSICAL CONNECTION POOL SDEVDW SELECT A.BUSINESS_UNIT,A.PROJECT_ID,A.PROJECT_STATUS,A.EFFDT FROM SPSDW.PS_PROJECT_STATUS A WHERE A.EFFDT = (SELECT MAX(B.EFFDT) FROM SPSDW.PS_PROJECT_STATUS B WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.PROJECT_ID = A.PROJECT_ID AND B.PROJECT_STATUS<>'C' AND B.EFFDT <= (SELECT PPERIOD_END_DT FROM SPSDW.PS_D_DET_PERIOD WHERE PPERIOD_CD = 6 AND PYEAR_NUM = 2008 AND DT_PATTERN_CD = '01' AND SRC_SYS_ID = 'FSCM')
    ) ORDER BY 1,2,3

    I turned on debug and bounded OC4J. After I ran the report, I did not see any link.
    The error that returns is:
    "The report cannot be rendered because of an error, please contact the administrator."
    Where will the link be located. Is there are log file that I can review. We are using BI Publisher enterprise (10.1.3.3.0).

  • Tabular data model: Query keeps timing out when attempting to Edit Table Properties

    Tabular data model (SSDT)
    Problem: I have a table in tabular data model using a SQL Query for a data source. The query in question requires about 3 minutes to regenerate. When I open Edit Table Properties for this data source the query times out and I get an error (see below): "
    Failed to retrieve data from udvTrainJobReportsData. Reason: Query timeout expired"
    This seems to happen anytime I use a query that takes longer than a couple of minutes to regenerate. Anyone have an idea on how to get around this. Is there a timeout setting somewhere in tabular data model that can be increased?
    Thanks...

    Hi ManikantM,
    According to your description, you query keeps time out when edit table properties. Right?
    In this scenario, this error is thrown when connection or query execution exceeds the time out value. Please try to import this table and then increase the connection time out seconds.
    We can increase to ExternalCommandTimeout in Analysis Server Properties. Please refer to link below:
    http://aniruddhathengadi.blogspot.in/2012/07/ole-db-error-ole-db-or-odbc-error-query.html
    Please also refer to a similar thread below:
    https://social.technet.microsoft.com/Forums/office/en-US/3f83a26b-71c6-462e-8b90-2ce2ce0b9465/powerpivots-2010-query-keeps-timing-out-when-attempting-to-edit-table-properties?forum=excel
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Oracle Data Modeler query

    Hi All,
    I am using Oracle SQL Developer Data modeler tool. Find it a very good tool for database designing and its free. Here I can connect to Oracle database and get complete ER diagram, but I didn't see any place through which I can Reverse Engineer changes made to ER Diagram back to Schema.
    Do anybody have any idea about this.
    Thanks,
    Danish

    . Find it a very good tool for database designing and its free.Actually it's not free. The "free" version was an Early Adopter release and not intended for commercial use. The first production release is a very-far-from-free USD 3000 per seat. Worth it? Dunno, I haven't installed the production release yet.
    The EA2 version of the tool does support forward engineering but it doesn't generate diffs between the existing schema and the new one, like Designer could.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Report Builder 6i Data Model

    Report Builder 6i is ending in error if we try to add additional column in the data model query
    select rpad('a',50,'-') cust_name_inv,
    rpad('a',30,'-') cust_no_inv,
    rpad('a',30,'-') sal_name, ---added column
    rpad('a',4000,'-') sort_field1_inv,
    rpad('a',4000,'-') sort_field2_inv,
    0 inv_tid_inv,
    0 contact_site_id_inv,
    rpad('a',60,'-') cust_state_inv,
    rpad('a',60,'-') cust_city_inv,
    0 addr_id_inv,
    0 cust_id_inv,
    0 payment_sched_id_inv,
    rpad('a',20,'-') class_inv,
    sysdate due_date_inv,
    0 amt_due_remaining_inv,
    rpad('a',30,'-') invnum,
    0 days_past_due,
    0 amount_adjusted_inv,
    0 amount_applied_inv,
    0 amount_credited_inv,
    sysdate gl_date_inv,
    'x' data_converted_inv,
    0 ps_exchange_rate_inv,
    0 b0_inv,
    0 b1_inv,
    0 b2_inv,
    0 b3_inv,
    0 b4_inv,
    0 b5_inv,
    0 b6_inv,
    rpad('a',25,'-') company_inv,
    rpad('a',30,'-') cons_billing_number,
    rpad('a',32,'-') invoice_type_inv
    from dual
    where 1=2
    UNION ALL
    &common_query_inv
    We checked the number of columns passed in the lexical parameter, it tallys with the columns in the data model
    Any suggestions is welcome to overcome this issue
    Thanks
    The lexical parameter passes the following query at run time
    SELECT SUBSTRB (party.party_name, 1, 50) cust_name_inv,
    cust_acct.account_number cust_no_inv,
    jr.NAME sal_name,
    c.segment1|| ' '|| c.segment2|| ' '|| c.segment3|| ''|| c.segment4||''|| c.segment5|| ''|| c.segment6 sort_field1_inv,
    arpt_sql_func_util.get_trx_type_details(ps.cust_trx_type_id,'NAME') sort_field2_inv,
    c.code_combination_id inv_tid_inv,
    site.site_use_id contact_site_id_inv,
    loc.state cust_state_inv,
    loc.city cust_city_inv,
    DECODE (:format_detailed,NULL, -1, acct_site.cust_acct_site_id) addr_id_inv,
    NVL (cust_acct.cust_account_id, -999) cust_id_inv,
    ps.payment_schedule_id payment_sched_id_inv,
    ps.CLASS class_inv,
    ps.due_date due_date_inv,
    DECODE (:c_convert_flag,'Y', ps.acctd_amount_due_remaining, ps.amount_due_remaining) amt_due_remaining_inv,
    ps.trx_number invnum,
    CEIL (:as_of_date - ps.due_date) days_past_due,
    ps.amount_adjusted amount_adjusted_inv,
    ps.amount_applied amount_applied_inv,
    ps.amount_credited amount_credited_inv,
    ps.gl_date gl_date_inv,
    DECODE (ps.invoice_currency_code,:functional_currency, NULL,DECODE (ps.exchange_rate, NULL, '*', NULL)) data_converted_inv,
    NVL (ps.exchange_rate, 1) ps_exchange_rate_inv,
    arpt_sql_func_util.bucket_function (:bucket_line_type_0,
    dh.amount_in_dispute,
    ps.amount_adjusted_pending,
    :bucket_days_from_0,
    :bucket_days_to_0,
    ps.due_date,
    :bucket_category,
    :as_of_date
    ) b0_inv, --------------bucket 1
    arpt_sql_func_util.bucket_function (:bucket_line_type_1,
    dh.amount_in_dispute,
    ps.amount_adjusted_pending,
    :bucket_days_from_1,
    :bucket_days_to_1,
    ps.due_date,
    :bucket_category,
    :as_of_date
    ) b1_inv, --------------bucket 2
    arpt_sql_func_util.bucket_function (:bucket_line_type_2,
    dh.amount_in_dispute,
    ps.amount_adjusted_pending,
    :bucket_days_from_2,
    :bucket_days_to_2,
    ps.due_date,
    :bucket_category,
    :as_of_date
    ) b2_inv, --------------bucket 3
    arpt_sql_func_util.bucket_function (:bucket_line_type_3,
    dh.amount_in_dispute,
    ps.amount_adjusted_pending,
    :bucket_days_from_3,
    :bucket_days_to_3,
    ps.due_date,
    :bucket_category,
    :as_of_date
    ) b3_inv, --------------bucket 4
    arpt_sql_func_util.bucket_function (:bucket_line_type_4,
    dh.amount_in_dispute,
    ps.amount_adjusted_pending,
    :bucket_days_from_4,
    :bucket_days_to_4,
    ps.due_date,
    :bucket_category,
    :as_of_date
    ) b4_inv, --------------bucket 5
    arpt_sql_func_util.bucket_function (:bucket_line_type_5,
    dh.amount_in_dispute,
    ps.amount_adjusted_pending,
    :bucket_days_from_5,
    :bucket_days_to_5,
    ps.due_date,
    :bucket_category,
    :as_of_date
    ) b5_inv, --------------bucket 6
    arpt_sql_func_util.bucket_function (:bucket_line_type_6,
    dh.amount_in_dispute,
    ps.amount_adjusted_pending,
    :bucket_days_from_6,
    :bucket_days_to_6,
    ps.due_date,
    :bucket_category,
    :as_of_date
    ) b6_inv, --------------bucket 7
    c.segment1 company_inv,
    TO_CHAR (NULL) cons_billing_number,
    arpt_sql_func_util.get_trx_type_details(ps.cust_trx_type_id,'NAME') invoice_type_inv
    FROM hz_cust_accounts cust_acct,
    hz_parties party,
    ar_payment_schedules_all ps,
    jtf_rs_salesreps jr,
    ra_customer_trx_all ra,
    hz_cust_site_uses_all site,
    hz_cust_acct_sites_all acct_site,
    hz_party_sites party_site,
    hz_locations loc,
    ra_cust_trx_line_gl_dist_all gld,
    ar_dispute_history dh,
    gl_code_combinations c
    WHERE ps.gl_date <= :as_of_date
    AND UPPER (RTRIM (RPAD (:p_in_summary_option_low, 1))) = 'I'
    AND ps.customer_site_use_id = site.site_use_id
    AND site.cust_acct_site_id = acct_site.cust_acct_site_id
    AND acct_site.party_site_id = party_site.party_site_id
    AND loc.location_id = party_site.location_id
    AND ps.gl_date_closed > :as_of_date
    AND DECODE (UPPER (:p_in_currency),
    NULL, ps.invoice_currency_code,
    UPPER (:p_in_currency)
    ) = ps.invoice_currency_code
    AND gld.account_class = 'REC'
    AND gld.latest_rec_flag = 'Y'
    AND gld.code_combination_id = c.code_combination_id
    AND ps.payment_schedule_id = dh.payment_schedule_id(+)
    AND :as_of_date >= NVL (dh.start_date(+), :as_of_date)
    AND :as_of_date < NVL (dh.end_date(+), :as_of_date + 1)
    AND cust_acct.party_id = party.party_id
    AND jr.salesrep_id = ra.primary_salesrep_id
    AND ps.customer_id + 0 = cust_acct.cust_account_id
    AND ps.customer_trx_id + 0 = gld.customer_trx_id
    AND 1 = 1

    The error is query block consists of inconsistent no of columns

  • BI Publisher Report with Multiple data models

    I have an Oracle Report with two different data model(querys) and Layouts for Summary and Details. When the user Choses Summary it execute the summary data model query and display the result in summary Repeating frame Layout and when user choses Details it execute the other query and uses the other layout.
    Now I am creating the same report in Stand alone BI Publisher. As a company standard we are using Data Template for Data model. How can I accomplish the same feature I mentioned above in BI Publisher? Meaning How can I control and execute the querys in BIP based on a parameter "Summary" or "Details" ?
    Can Someone help
    George

    option1:
    The query should be same @ detail level, only the template has to be different for summary and details.
    @runtime, user can choose to see the detail/summary
    Disadvantage, if the data is huge,
    advantage , only one report.
    option2:
    create two separate reports summary and details
    and create diff data and diff layout and keep it as different report
    Advantage, query will perform based on the user run report, summary/detail, so that you can write efficient query.
    Dis advantage , two reports query/template to be maintained.

  • Why do I get the symbol data link in the query_name of the data model

    If I use an inline subquery within the SELECT of a data model query, the symbol data link appears in the query_name of the data model.
    This causes the data link between two queries not to be used even if there is an existing link between the two. The trace file doesn't
    have that join condition and so the child query in which the inline subquery was added fetches many redundant data.
    Any idea what that symbol represents and how to get rid of it. It also appears during other times, not only when we use inline subquery
    within a SELECT. Not sure if it can cause any harm to the report.
    The problem is seen in Report Builder 6.0.8.19.0. Not sure if the problem is with other releases also.
    Any suggestions are welcome.

    I am living with the symbol in the query box as well, because my report only has a single query. My query also has several inline subqueries. I had never seen this before last week, spent a day re-reading the manuals and couldn't figure it out.
    My post is not a solution, but a "me too" echo that could use an answer.
    Troy Tremble
    If I use an inline subquery within the SELECT of a data model query, the symbol data link appears in the query_name of the data model.
    This causes the data link between two queries not to be used even if there is an existing link between the two. The trace file doesn't
    have that join condition and so the child query in which the inline subquery was added fetches many redundant data.
    Any idea what that symbol represents and how to get rid of it. It also appears during other times, not only when we use inline subquery
    within a SELECT. Not sure if it can cause any harm to the report.
    The problem is seen in Report Builder 6.0.8.19.0. Not sure if the problem is with other releases also.
    Any suggestions are welcome.

  • Data model with a dynamic table name

    Hi,
    I have report requirement, where in the table name in the data model query is unknown.So I use lexical parameter like " select * from &P_TABLE_NAME". This dynamic table is created and data populated in the before report trigger and table name is assigned to P_TABLE_NAME. The parameter P_TABLE_NAME has to be assigned an initial value otherwise the report errors with 'invalid table name' error. So I give a dummy table say 'DUMMY' as the initial value which has the same structure (with no data ) as the table that is being created in the before report trigger.
    The problem is that the data model query is being parsed ( and maybe executed ) even before the 'before report' trigger is run. As a result, the report o/p is empty, since the query used the DUMMY table for execution. But after the report completes, I can see the dynamic table being created with data.
    Question: Why is the before report trigger getting executed after the datamodel query is parsed and executed.
    Regards,
    Suresh

    Hi....
    yes, these are the settings I have:
    server folder: /Applications/MAMP/htdocs/dwphpelclasico
    web url:  http://localhost/dwphpelclasico/
    They should be correct. But I still get the message:
    Warning:  require_once(Connections/elclasico.php) [function.require-once]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/dwphpelclasico/list.php on line 1
    Could it be something with list.php?
    This is a new file I created to display my tableand  where I am inserted the record set.
    thanks

  • What are nested groups in data model?

    I am new to Oracle reports. I am trying to modify the data model query. I don't understand nested groups . i.e There are two groups within one groups. These two groups are linked by dotted line. I don't find any information in online help. Please help me to understand this feature. I appreciate any link which explains this.
    Thanks
    Message was edited by:
    user609146

    Hello,
    If it is something similar to the data model screen shot at :
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_matrix.htm
    then, it is a matrix Report
    Regards

  • Can we use session variables in BI publisher's Data Model SQL Query?

    Hi Experts,
    We need to implement Data level security in BI Publisher 11g.
    In OBIEE we do so by using session variables, so just wanted to ask if we can use the same session variables in BI Publisher as well
    ie can we include the where clause in the Data Models SQL Query like
    Where ORG_ID = @{biServer.variables['NQ_SESSION.INV_ORG']}
    Let me know your views on this.
    PS: We are implementing EBS r12 security in BI Publisher.
    Thanks

    Read this -> OBIEE 11g: Error: "[nQSError: 23006] The session variable, NQ_SESSION.LAN_INT, has no value definition." when Creating a SQL Query using the session variable NQ_SESSION.LAN_INT in BI Publisher [ID 1511676.1]
    Follow the ER - BUG:13607750 - NEED TO BE ABLE TO SET A SESSION VARIABLE IN OBIEE AND USE IT IN BI PUBLISHER
    HTH,
    SVS

  • CM14 BI Publisher - modifying an existing Data Model, the Graphic View in Query Builder does not display

    I am trying to edit the default forms/reports that come with CM14, trying to edit the data model, data set, (to get to the old Infomaker style graphic view) , the Query model does not display (error the list of tables is too long..) Oracle tell me the limit is 60,  there are not 60 tables referenced in any CM report.
    Does this Query builder view work at all on any report?
    (bigger question, we are moving from CM12, should we move to CM13 which works with infomaker?)
    Thanks,
    Paul L

    Kurt, thanks for your replies.
    A couple of notes/clarifications.
    1.     You are correct that BI works better in Firefox--I have observed issues with the BI display when using IE.  I would recommend using Firefox too.
    2.     You are correct about the way to get to the Query Builder to see a graphical view of data tables.  There are basically two issues with this that I mentioned, but will re-iterate:
    a.  If you have an EXISTING query in the data set, then click the "Query Builder" button, this will remove the existing query that's there, it will NOT display the existing query in the query builder.  Query Builder works only to create a NEW query from scratch.
    b.  Query builder is limited to selecting 60 fields max in your query.  If you are creating a large report with many tables, you may find that 60 fields is not enough.  For that you will have to work in the SQL edit screen rather than using the query builder.
    I would impress on anyone developing CM14 reports that they become familiar with the database schema and relationships to avoid problems when developing your BI reports.  You should be able to find the tables and joins documentation in the knowledgebase.

  • With clause in SQL query data model

    Hello!
    isn't it possible to use the with clause in sql query data models?
    for example following query:
    WITH
    a_test as (
    select dummy from dual
    select *
    from a_test
    brings up a "XML Parsing Error: no element found"-error...
    BR Paul

    I tried a slightly different query (see below) and the query worked fine and retrieved data.. I did not get any errors.
    WITH
    a_test as (
    select 'dummy' from dual
    select *
    from a_test
    This works as well.. retrieving the value of the parameter
    WITH
    a_test as (
    select :Test_ID from dual
    select *
    from a_test
    thanks,
    BIPuser

Maybe you are looking for