Dynamic Query Input Variables / Dynamic Reporting Ouput

Hi All,
Overall Architecture :
Front End : Webpshere Portal
Middle Tier : Webpshere Application Server
Reporting Presentation Layer : Business Objects Reports (The reports will use the BEX query as a datasource)
Reporting DataSource = BEX Query
I am trying to build a BEX query based on the following. I have a sales ODS that shows the following data. Based on a user's selection, the report should return the corresponding data. What would be the best way to tackle something
like that ? Thanks all or your help !
Example :
SALES ODS :
Customer -
Sales $ - Rebate Indicator---Refund Indicator-----Equipment Indicator
   Apple -
1000--False False--
False
   Apple -
10--True -  False--
False     
   Apple -
  50--False True--
False
   Apple -
40--False False--
True
QUERY INPUTS #1 :
Customer Site             = Apple
Rebate Indicator       = True
Refund Indicator       = True
Equipment Indicator     = False
QUERY RESULT :
Customer -
Sales $
   Apple -
     1060
QUERY INPUTS #2 :
Customer Site              = Apple
Rebate Indicator        = False
Refund Indicator        = True
Equipment Indicator      = False
QUERY RESULT :
Customer----
Sales $
   Apple----
1050

Hi Nigel ,
Instead of creatin query on ODS u should create on Cube .
ODS Data :
Customer -
Sales $ - Rebate Indicator---Refund Indicator-----Equipment Indicator
Apple -
1000--False False--
False
Apple -
10--True - False--
False
Apple -
50--False True--
False
Apple -
40--False False--
True
Cube data :Would get aggregated depend on Customer and other similar charatoristic.

Similar Messages

  • Generating Dynamic Query for Ad-Hoc Reports

    Hello,
    What is the best way to create a dynamic query to generate ad-hoc reports? I have a couple of ideas but not sure which would work best and be most flexible.
    I would like our users to be able to check checkboxes for what data they would like returned in their report. The data would be pulled from a number of tables, 10+, depending on what pieces of data they checked.
    Should I write one dynamic query, with a bunch of IF statements in it?
    Should I write many individual queries and then join them together in a temp query?
    Should I create a temp table on our SQL server which contains the data from all of the tables; then query that? (I am worried about data being out-of-date with this option.)
    Which one of these solutions should I go with or is there a better solution that I am not considering?
    Thanks for the help.
    Josh

    Do you mean a Stored Procedure? Would the Stored Procedure then have one query on it with a bunch if IF statements? Maybe a bad example, but something like this?
    Yep.
    I haven't written a proc for a coupla years (I have DB people to do that for me now, bless 'em), but every DB is different, so the approach will vary depending on what DB you have.  It's perhaps time to buy a book or do a google or something.
    Adam

  • Error in Query input variable

    Hello Experts
    I have a query which has input variable 0I_FPER for Fiscal year period and takes interval as input.
    when i try to select values i get following error. i have tried different inputs
    "Characteristic Fiscal year/period has no master data for "003.2010" "
    I tried creating new input variables and still get same ptoblem for TO value put in.
    Please help.
    Thanks in advance
    Regards
    Sudeep

    Hi
    I am using 0FISCPER infoobject for restriction, master data table for this is T009B.
    i even tried to rebuild this using tranfer global setting s option but problem still exists.
    0FISCPER object has no SID table.
    Moreover this report work fine using RSRT but give error at inputs when i run it over web.
    I am still facing same problem
    Please help
    Regards
    Sudeep
    Edited by: Sudeep Paranjape on Dec 27, 2010 10:50 AM

  • Performance issues with query input variable selection in ODS

    Hi everyone
    We've upgraded from BW 3.0B to NW04s BI using SP12.
    There is a problem encountered with input variable selection. This happens regardless of using BEx (new or old 3.x) or using RSRT. When using the F4 search help (or "Select from list" in BEx context) to list possible values, this takes forever for large ODS (containing millions of records).
    Using ST01 and SM50 to trace the code in the same query, we see a difference here:
    <u>NW04s BI SQL command</u>
    SELECT                                                                               
    "P0000"."COMP_CODE" AS "0000000032" ,"T0000"."TXTMD" AS "0000000032_TXTMD"                             
    FROM                                                                               
    ( "/BI0/PCOMP_CODE" "P0000" ) LEFT OUTER JOIN "/BI0/TCOMP_CODE" "T0000" ON  "P0000"."COMP_CODE" = "T0000
      "."COMP_CODE"                                                                               
    WHERE                                                                               
    "P0000"."OBJVERS" = 'A' AND "P0000"."COMP_CODE" IN ( SELECT "O"."COMP_CODE" AS "KEY" FROM              
      "/BI0/APY_PP_C100" "O" )                                                                               
    ORDER BY                                                                               
    "P0000"."COMP_CODE" ASC#                                                                               
    <u>BW 3.0B SQL command:</u>
    SELECT ROWNUM < 500 ....
    In 3.0B, rownum is limited to 500 and this results in a speedy, though limited query. In the new NW04s BI, this renders the selection screen unusable as ABAP dumps for timing out will occur first due to the large data volume searched using sequential read.
    It will not be feasible to create indexes for every single query selection parameter (issues with oerformance when loading, space required etc.). Is there a reason why SAP seems have fallen back on a less effective code for this?
    I have tried to change the number of selected rows to <500 in BEx settings but one must reach a responsive screen in order to get to that setting and it is not always possible or saved for the next run.
    Anyone with similar experience or can provide help on this?

    here is a reason why the F4 help on ODS was faster in BW 3.x.
    In BW 3.x the ODS did not support the read mode "Only values in
    InfoProvider". So If I compare the different SQL statements I propose
    to change the F4 mode in the InfoProvider specific properties to
    "About master data". This is the fastest F4 mode.
    As an alternative you can define indexes on your ODS to speed up F4.
    So would need a non-unique index on InfoObject 0COMP_CODE in your ODS
    Check below for insights
    https://forums.sdn.sap.com/click.jspa?searchID=6224682&messageID=2841493
    Hope it Helps
    Chetan
    @CP..

  • Dynamic query results parsing/ dynamic reports

    Is there a way of creating a cursor at runtime, then querying the contents of the the fields of the cursor, without knowing the names and field type of the individual columns at design time?
    Say I did as a basic example
    Create table testtable( id number,name varchar2(200), address1 varchar2(200),address2 varchar2(200),address3 varchar2(200),dateopened date);
    Create or replace procedure testproc(v_query in varchar2(2000)) is
    type cur_typ is REF CURSOR;
    c_cursor cur_type;
    BEGIN
    open c_cursor for v_query;
    loop
    fetch the row into some sort of dynamic record dynrec;
    exit when _cursor%notfound;
    something like
    if dynrec.fields(3).field_type='Date' then
    dbms_output.putline( to_char(fields(3),'dd/mm/yy'));
    else
    dbms_output.putline(fields(3));
    end if;
    end loop;
    close c_cursor;
    END;
    then i'd be calling it with
    testproc('select name, address1,dateopened from testtable where id=24');
    or
    testproc('select address1,address2,address3 from testtable where id=24');
    how do I define the dynamic record without knowing what table it refers to? And, how do I get the column contents?
    Thanks for your input
    James

    You'll need a combination of USER|DBA|ALL_TAB_COLUMNS and the DBMS_SQL package.
    Sorry, don't have time for more of a hint than that.

  • Query input variable issue

    Hi experts,
    We are using BEx 3.5.
    1.We defined a RKF such that restricting the 0deb_cre_lc on Fiscal Year/period and restricted Fiscal Year/Period with a mandatory variable and the condition is <= ( Less than or equal to ).
    When we execute a query a input screen will come asking to enter a Fiscal Year/Period.
    Its a mandatory field.As per our client only 16 periods are defined and the fiscal year variant is V3.
    Periods are from 001 to 016.
    User will be entering like 001.2005 or 012.2008 like that.So in the output we will be getting the balance
    i.e 0deb_cre_lc amount less than or equal to the user entered fiscal year/period.
    But when user enters 234.2008 or any other wrong value which is other than 001 to 016 the report should
    not be executed.But now it is executing.
    Is there any possibility such as if user enters any period out of the range 001 to 016 then the report
    should not be executed. or show any error message. Or Is there any possibility such that if user enters
    only the values which are in the infoprovider then only the report should be executed.
    For the above requirement, please check whether the following code matches or not. But the code is not
    working.
    Tables: /BIC/AZSM_DSO00.
    data: begin of zfisc occurs 0,
    fiscper(7),
    end of zfisc.
    Data WA_I_T_RANGE like line of I_T_VAR_RANGE.
    If i_step = 3.
    Case i_vnam.
    WHEN 'TEST_FCE'.
    SELECT FISCPER FROM /BIC/AZSM_DSO00 INTO table ZFISC where FISCPER = /BIC/AZSM_DSO00-FISCPER.
    READ TABLE I_T_VAR_RANGE INTO WA_I_T_RANGE WITH KEY VNAM = 'TEST_FCE' .
    *READ TABLE ZFISC with key fiscper = WA_I_T_RANGE-LOW.
    IF ZFISC CA WA_I_T_RANGE-LOW.
    IF sy-subrc EQ 0.
    exit.
    else.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    i_class = 'CD'
    i_type = 'E'
    i_number = '121'
    i_msgv1 = 'Enter Correct value for FISCPER'
    EXCEPTIONS
    dummy = 0
    OTHERS = 0.
    RAISE no_processing.
    ENDIF.
    ENDIF.
    Endcase.
    Endif.
    Please check the code and let me know if i have done any mistakes.
    Regards,
    smitha.

    Have done the specified changes. The code is as follows. But it is not working.
    Tables: /BIC/AZSM_DSO00.
    data: begin of zfisc occurs 0,
    fiscper(7),
    end of zfisc.
    data: text(12) type c.
    text = text-001.
    Data WA_I_T_RANGE like line of I_T_VAR_RANGE.
    If i_step = 3.
    Case i_vnam.
    WHEN 'TEST_FCE'.
    *SELECT FISCPER FROM /BIC/AZSM_DSO00 INTO table ZFISC where FISCPER = /BIC/AZSM_DSO00-FISCPER.
    SELECT FISCPER FROM /BIC/AZSM_DSO00 INTO table ZFISC.
    READ TABLE I_T_VAR_RANGE INTO WA_I_T_RANGE WITH KEY VNAM = 'TEST_FCE' .
    READ TABLE ZFISC with key fiscper = WA_I_T_RANGE-LOW.
    *IF ZFISC CA WA_I_T_RANGE-LOW.   commented this
    IF sy-subrc EQ 0.
    exit.
    else.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    i_class = 'CD'
    i_type = 'E'
    i_number = '121'
    i_msgv1 = text
    EXCEPTIONS
    dummy = 0
    OTHERS = 0.
    raise again.
    RAISE no_processing.
    *ENDIF.  commented this
    ENDIF.
    Endcase.
    Endif.
    The structure of table /BIC/AZSM_DSO00. It is having 96 fields. Short des is 'ODS Object ZSM_DSO : Active Records'
    Regards,
    smitha.

  • Dynamic query in 10g

    i am calling a report from a 10g form. i wanna to pass a dynamic query from form to report. I am able to perform this with 6i but can't using 10g. is there any way to create a dynamic query in reports 10g
    thanks

    Actually, i am creating the whole query upon based on a condition in form, then i am passing this query to report via a data parameter. following is the some part of code, which i am using
    IF :CONTROL.VOUCHER_FORMAT='S' THEN
    V_QUERY:=('select bvno vno,bvdate vdate from bvrm where bvno ='''||:vno||''' AND bvrm.bvdate='''||:VDATE||''' and ccode='''||:PARAMETER.ccode||''' and fycode='''||:PARAMETER.fycode||''' AND BVRM.BVTYPE='''||:VTYPE||''' GROUP by bvdate,bvno');
    else
    V_QUERY:=('select bvno vno,bvdate vdate from bvrm where bvrm.bvdate BETWEEN '''||TO_DATE(:FROMDATE,'DD/MM/YYYY')||''' AND '''||to_date(TO_DATE(:TODATE,'DD/MM/YYYY')+1)||''' and ccode='''||:PARAMETER.ccode||''' and fycode='''||:PARAMETER.fycode||''' AND BVRM.BVTYPE = '''||:VTYPE||''' GROUP by bvdate,bvno');
    end if;
    RG_ID:=CREATE_GROUP_FROM_QUERY(RG_NAME,V_QUERY);
    NUM:=POPULATE_GROUP(RG_NAME);
    ADD_PARAMETER(PL_ID,'Q_MAIN',DATA_PARAMETER,RG_NAME);
    after this code, i am calling the run_report_object normally. this code works fine with 6i, but doesn't with 10g     
    thanks

  • How to fetch indivdual rows from a dynamic query.

    Hi,
    I wish to fetch the individual rows returned from a dynamic query.
    if my dynamic query is:
    dyn_stmt := select col1, col2, col3
    from tab1;
    The query returns multiple rows.
    Then how to fetch individual rows of this query ?
    Please explain.

    declare
      cur_test sys_refcursor;
      c1 varchar2(30);
      c2 number;
      c3 date;
    begin
      dyn_stmt := select col1, col2, col3 from tab1;
      OPEN cur_test FOR dyn_stmt;
      LOOP
        FETCH cur_test INTO c1, c2, c3;
        IF cur_test%NOTFOUND THEN
          EXIT;
        END IF;
        -- Process this row
      END LOOP;
      CLOSE cur_test;
    END;

  • Dynamic Query in Report Builder

    HI
    I have a doubt:
    I need to receive a parameter in my report and I need this parameter in the query, that means, I need to create a dynamic query depending on the value that I receive in one of the parameters that has my report.
    I tried to use the resource of Searching by Reference Cursor tool, it is a blue circle in the Data Model View of Report Builder.
    When I click this tool, I have an initial code, It is:
    function QR_1RefCurDS return <RefCurType> is
    begin
    end;
    In PL/SQL I tried to create to test and to play, this code:
    Note: If you want to try only to test, it is simple and works:
    create or replace package TEST_REFCURTYPE as
    type refcurtype is ref cursor;
    function TEST_REFCURTYPE (P_DATE_TO nvarchar2) return refcurtype;
    end;
    create or replace package body TEST_REFCURTYPE as
    function TEST_REFCURTYPE (P_DATE_TO nvarchar2)
    return refcurtype is
    refcur refcurtype;
    mysql varchar(1000);
    begin
    If P_DATE_TO is not null then
    mysql := 'select '''|| P_DATE_TO ||''' from dual';
    else
    mysql := 'select sysdate from dual';
    end if;
    open refcur for mysql;
    return refcur;
    end;
    end;
    The problem is to pass this example of code to the function QR_1RefCurDS, I do not have a place to make reference to the type:
    type refcurtype is ref cursor;
    I tested the Unit Program in the Report Builder but it did not work, because all the code I try to write and create, for example in the Event BEFORE REPORT, it opens  Funcion( ) …., and I can not make reference to the type refcurtype inside a Function( ).
    Would you help me please?
    Or there is another way to make a dynamic query in the Report Builder?
    Sorry for my English, I am a Brazilian living in Spain.

    Hi,
    you can use lexical parameters in your queries. Instead of a ":" use in the query before the parameter a "&". Then the parameter stands for a part of the query and not for a value (Bind parameter). In the before report trigger you can set this parameters. They can contain parts of SQL like order or where. Make sure that the default value for this lexical parameters are set to get a valid query.
    SELECT ENAME, &p_column as COL2 FROM EMP &p_order
    and in the trigger something like
    IF :p_which_column = 1 THEN
    :p_column := 'SAL'
    ELSE
    Saludos
    Rainer

  • Dynamic query to produce crosstab/pivot report

    Hello,
    I've not been able to find any examples similar to my situation but perhaps I'm using the wrong search phrases...
    I'm basically trying to create a cross-tab type report based on a dynamic query (since I do not know how many accounts a person has):
    select '  SELECT x.name, x.type, ' from dual
    union
    select ' max(decode(x.account,'''||m.account||''',x.amount,null)) as "'||substr(s.proj||' '||m.account,1,30)||'",'
      from db1.manager m, db1.person p, pi.charges c, db1.status s
    where m.manager_id = p.id
       and M.ACCOUNT_ID = C.ACCT_ID
       and M.ACCOUNT_STRING = S.project
       and C.JNL = (select max(id) from db1.journ j where j.TYPE ='M')
       and p.username = :username
       and nvl(M.END_DATE, sysdate +1) >= sysdate
    group by m.account, s.proj
    union
    select 'sum(x.amount) grand_total from (select m.account, c.name, c.type, c.amount '
              ||'from db1.manager m, db1.person p, pi.charges c '
              ||'where m.manager_id = p.id '
              ||'and p.username = :P68_PRINC '
              ||'and c.acct_id = m.account_id '
              ||'and c.jnl = (select max(id) '
              ||'from db1.journ j where j.TYPE =''M'')) x '
              ||' group by type, name' from dualThe output from this query for the particular manager I selected is:
    SELECT x.name, x.type,
    max(decode(x.account,'12012',x.amount,null)) as "Internal 12012",
    max(decode(x.account,'17929',x.amount,null)) as "Staged 17929",
    max(decode(x.account,'18054',x.amount,null)) as "Help Software 18054",
    max(decode(x.account,'3428',x.amount,null)) as "Mow 3428",
    max(decode(x.account,'3428',x.amount,null)) as "Mow 3428_1",
    max(decode(x.account,'3508',x.amount,null)) as "Stampede 3508",
    max(decode(x.account,'9102',x.amount,null)) as "Open Collaborative 9102",
    sum(x.amount) grand_total
    from (select m.account, c.name, c.type, c.amount
    from db1.manager m, db1.person p, pi.charges c
    where m.manager_id = p.id
        and p.username = :P68_PRINC
        and c.acct_id = m.account_id
        and c.jnl = (select max(id)
       from db1.journ j where j.TYPE ='M')) x
      group by type, nameThis query generates another query that ultimately produces the report below (please pardon the alignment) that I want to see on a report page.
    NAME     TYPE     Internal 12012     Staged 17929     Help Software 18054     Mow 3428     Mow 3428_1     Stampede 3508     Open Collaborative 9102     GRAND_TOTAL
    #EXAM1221     M                                                                            22                                                                                             22
    #EXAM1222     M                          14.83             14.77                     12.56                          2.22                                                          44.38
    #EXAM1223     M                          6.73                 6.7                             5.7                                  1                                                          20.13
    THOEORY       M                          106.5                                                                                                                                      106.5Should I be using the report type that is based on a 'PL/SQL function body returning SQL query' for this type of report??? If so, how does that get set up?
    Thanks in advance!
    ~Jake

    This solution works in that it generates the proper query. I can copy the query (from debug mode) and paste it in TOAD and it works perfectly. However, in the report page it tells me: "report error:ORA-01403: no data found".
    I found this thread: report error: ORA-01403: no data found when SUM columns
    I did have a couple other regions on the page (previous attempts) that were hidden so I deleted them completely. Still no luck.
    I am also summing up several columns...if that has anything to do with it.
    Does anyone have any suggestions?
    Thanks again!!!
    ~Jake
    Edited by: jhammer on Jul 27, 2010 11:02 AM

  • Dynamic query variable

    How can I have a variable inside the query variable?
    someQuery.dynVar# to be defined as "some text some text #
    url.someVar# some text"
    ColdFusion seems to disregard the CFML code contained inside
    the
    query or
    cffile[read] variables and outputs it with variable names
    surrounded with #. When it's set with
    <cfset> it's displayed as intended.
    How can I force CF to process CFML inside query
    variables?

    This reminds me of the biggest issue that has been bothering
    me for years. ColdFusion CANNOT do dynamic code evaluating. This is
    one of PHP's (it still sucks big time as a web application
    development language) greatest advantages over CF, although
    evaluating dynamic pieces of code is almost just as slow as
    including them from files, one by one. But still...
    CF's evaluate() can only evaluate functions, variables, etc.
    But not actual code, including tags, multiple statements, or
    anything complex like that.
    Actually, I'm not quite sure what you're trying to achieve
    here. It sounds like you want to set _triggers_ for variables, so
    that they would auto-update themselves as some other variables
    changes. Sounds impossible.
    Also, you're wrong when you say "it" works with
    <cfset>. Try this:
    <cfset var1 = "dang">
    <cfset var2 = "ding#var1#****">
    <cfset var1 = "">
    <cfoutput>#var2#</cfoutput>
    If this would work as you stated, you would get "dingdong".
    But you won't, since you can't process code dynamically within a
    variable in CF.
    So, you're best off with something like like cflib's UDF,
    which takes care of the parsing right when you need it.

  • Interactive report based on dynamic query

    Hello
    I am using Apex 4.1 and have a requirement to create an interactive report based on a dynamic query. This option is available in Classic report but in Interactive this feature is not there. Tried using collections or just a view (thought of changing the view definition during "On load", but structure of the report is already defined based on the definition of the view at design time).
    Is there any way of achieving this?
    Appreciate any help!
    Thanks
    aks

    Try looking at this: http://rakeshjsr.blogspot.com/2010/10/oracle-apex-interactive-report-based-on.html
    Thank you,
    Tony Miller
    Dallas, TX

  • Dynamic query table for report based on LOV selected

    Hi,
    Need some suggestion and guidance how to dynamically query table via lov for report .
    Scenario:
    Table, TABLE_LIST, has tablename (table in DB) and filter (for where clause) column. The TABLENAME_LOVE is derived from table TABLE_LIST.
    SELECT TABLENAME D, TABLENAME R FROM TABLE_LIST
    In Page 2,a page select list item,P2_TABLENAME to use TABLENAME_LOV
    All data in tables in the table_list have identical structure (columns, triggers, primary key, and so on).
    I want to have the report region query from the table based on selected LOV.
    Example,
    Tablename Filter
    TB1
    CD2 ACTIVE='Y'
    When select TB1, the report regin will query based on TB1.
    When select CD2, the report regin will query based on CD2 WHERE ACTIVE='Y'
    Question:
    How can I query based on &P2_TABLENAME. WHERE &P2_FILTER.
    Like
    select col1, col2 from &P2_TABLENAME WHERE &P2FILTER
    Greatly appreciate any suggestion and some guidance.
    Tigerwapa

    Hi,
    You should always post your Apex version, DB version and other information as suggested in the FAQ.
    And the moment you talk report you should state whether it is IR or Classic.
    As for your query, have you explored the Report type "SQL Query (PL/SQL function body returning SQL query)" ?
    That might be a good fit for what you are trying to achieve.
    Regards,

  • Parameter in form for dynamic query in report

    Hello,
    I want to send parameters to report for replacing a dynamic query. I don't know how to make it...
    1.I want my select statement like
    select * from emp
    &p_where_clause
    2.I want to transfer parameters to report to replace the &p_where_clause.
    3.I know I should create a parameter list first, and then use add_parameter built-in to add the parameter, but what I don't know is the correct format of the add_parameter statement.
    4.I know the common format is add_parameter(paramlist,'TEXT_PARAMETER',value) , is it the same format if I want to transfer a select statement to report such as "where deptno in ('25','28','30')" for replacing &p_where_clause in report?
    Thanks in advance
    Joseph

    I appreciate your reply, but I am still a little confused...
    Actually, I want to pass the where clause to report by different condition. Such as when the user choose the deptment 1, then I can transfer the "where dept_no = '1' and empno > 500", or user choose the deptment 2, I can transfer "where dept_no = '2' and company = '0001'". What I want is to pass different where clause to report according to different condition.
    So is it right the statement should be like
    DECLARE
    vWhere1 varchar2 := 'where dept_no = "1" and empno > 500';
    vWhere2 varchar2 := 'where dept_no = "2" and company = "0001"';
    BEGIN
    IF choose = 1 THEN
    ADD_PARAMETER(&P_WHERE_CLAUSE, TEXT_PARAMETER, vWhere1);
    ELSIF choose = 2 THEN
    ADD_PARAMETER(&P_WHERE_CLAUSE, TEXT_PARAMETER, vWhere2);
    END IF;
    END;
    THANKS AGAIN!!
    Joseph

  • Dynamic query in updatable report

    I have generated a updatable report with the folowing select:
    select
    "INSTALLATIEID",
    "INSTALLATIEID" INSTALLATIEID_DISPLAY,
    "CO_DRUK" druk,
    "CO_H2O" h2o,
    "CO_O2" o2,
    "CO_O2_11" o2_11,
    "CO_TEMP" temp
    from "#OWNER#"."CORRECTIE"
    The table correctie has above the 50 columns (the same columns for different components) so I want to change the query in:
    select
    "INSTALLATIEID",
    "INSTALLATIEID" INSTALLATIEID_DISPLAY,
    "&P50_COMP._DRUK" druk,
    "&P50_COMP._H2O" h2o,
    "&P50_COMP._O2" o2,
    "&P50_COMP._O2_11" o2_11,
    "&P50_COMP._TEMP" temp
    from "#OWNER#"."CORRECTIE"
    The item P50_COMP will be filled with a default value and is a select list with submit.
    The problem is when I change the query in the above way, the query cannot be parsed and I cannot applay the changes without parsing the query.
    Also not when I use Generic Column Names (parse query at runtime only)
    Can somebody help me with this problem.

    Fred,
    You should switch to a PL/SQL Function Body Returning SQL Statement (Dynamic Query) in order to achieve this. Your Function would look like this:
    declare
      l_sql varchar2(32767);
    begin
      l_sql := 'select
    "INSTALLATIEID",
    "INSTALLATIEID" INSTALLATIEID_DISPLAY,
    "' || :P50_COMP || '._DRUK" druk,
    "' || :P50_COMP || '._H2O" h2o,
    "' || :P50_COMP || '._O2" o2,
    "' || :P50_COMP || '._O2_11" o2_11,
    "' || :P50_COMP || '._TEMP" temp
    from "#OWNER#"."CORRECTIE"';
    return l_sql;
    end;Thanks,
    - Scott -

Maybe you are looking for

  • Email and safari disappeared

    February 11, 2014  - Email and Safari have disappeared from my IPod Touch.  By this I mean the icons are still there, but it opens only to a white screen.  Everything was working this morning and then a couple of hours later they were gone.  What is

  • How to turn OFF Smart Address feature in Mail in iOS?

    How to turn OFF Smart Address feature in Mail in iOS?

  • Adding existent (not custom!) fields to shipping adress in shopping cart

    Hey community, we want to show some more shipping adress fields in the shopping cart (SRM 7.13). Quite simple, we thought... only the existent fields "NAME_3" and "NAME_4" should be displayed. But we were not able to do that. We tried the following s

  • How to move music from one video to another.

    I have two videos.  I want to take the sound off of a video, and delete only the video part.  Then,  put the soundtrack onto another video clip.   I can detach the sound from the video, but if i delete the video, the sound track goes with it.  I can

  • AEX network card compatible?

    Could anyone please confirm that my AEX network card Firmware v 405.1 (3.90.34.0) is compatable with Belkin45g (802.11g) ADSL modem with wireless G router? As have been wired with Cable Ethernet (NTL/Virgin) for last 12 months and am now switching ba