Dynamic query in reports region(multiple condition)

Hi I have this sql query in the report region. And everytime I will run the report and choose to put a value on :P3_REQUESTID and the rest of the variables to null.It doesnt display the report.The same goes to other variables except for :P3_OOTSELECT.
If I choose to put a value on :P3_OOTSELECT and the rest to null, thats the only time that report will be displayed.
What am I missing here?
SELECT req_id,
order_no,
cust_nm,
cust_req_type,
entered_by,
alt_ref,
decode(cnt_rfs,null,null,'Yes')RFS,
rec_id
FROM oot_curr_stats
WHERE (trunc(create_dt,'MONTH') like :P3_OOTSELECT OR
trunc(create_dt) between to_date(:P3_FROMDT,'dd/mm/yyyy') AND to_date(:P3_DATETO,'dd/mm/yyyy'))
AND req_id like '%'||:P3_REQUESTID||'%'
AND sla_tag like :P3_SLATAG
Thanks,
acinorev

Veronica (?),
It doesnt display the report.
What do you mean by that? The report query doesn't execute? Or it does execute and shows "no data found" or something?
If you "choose to put a value on :P3_REQUESTID and the rest of the variables to null" then this part of the predicate won't match any rows (I'll replace the null bind variables with null):
(trunc(create_dt,'MONTH') like null OR
trunc(create_dt) between to_date(null,'dd/mm/yyyy') AND to_date(null,'dd/mm/yyyy'))
Then you AND that with other terms but by then it's too late.
Perhaps I misunderstood.
Scott

Similar Messages

  • SQL Query (updateable report) Region - Conditionally Hide and Set Values

    SQL Query (updateable report) Region - Conditionally Hide and Set Values
    Outline of requirement :-
    Master / Detail page with Detail updated on same page using SQL Query (updateable report).
    The detail region has the following source
    SELECT item_id,
           contract_id,
           CASE WHEN hardware_id IS NOT NULL THEN
                   'HA'
                WHEN backup_dev_id IS NOT NULL THEN
                   'BD'
                WHEN hardware_os_id IS NOT NULL THEN
                   'HS'
           END item_type,
           hardware_id,
           backup_dev_id,
           hardware_os_id
    FROM   "#OWNER#".support_items
    WHERE  contract_id = :P26_CONTRACT_IDThe table support_items implements arced relationships and has the following columns
    CREATE TABLE SUPPORT_ITEMS
      ITEM_ID         NUMBER                        NOT NULL,
      CONTRACT_ID     NUMBER                        NOT NULL,
      HARDWARE_ID     NUMBER,
      BACKUP_DEV_ID   NUMBER,
      HARDWARE_OS_ID  NUMBER
    )A check type constaint on support_items ensures that only one of the fk's is present.
          (    hardware_id    IS NOT NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NOT NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NOT NULL
          )    Hardware_Id is a FK to Hardware_Assets
    Backup_dev_id is a FK to Backup_Devices
    Hardware_os_id is a FK to Hardware_op_systems
    The Tabular Form Element based on item_type column of SQL query is Displayed As Select List (based on LOV) referencing a named list of values which have the following properties
    Display Value     Return Value
    Hardware Asset    HA
    Backup Device     BD
    Computer System   HSThe Tabular Form Elements for the report attributes for hardware_id, backup_dev_id and hardware_os_id are all Displayed As Select List (Based on LOV).
    What I want to do is only display the Select List for the FK depending on the value of the Select List on Item Type, e.g.
    Item_Type is 'HA' then display Select List for hardware_id, do not display and set to NULL the Select Lists for backup_dev_id and hardware_os_id.
    Item_Type is 'BB' then display Select List for backup_dev_id, do not display and set to NULL the Select Lists for hardware_id and hardware_os_id.
    Item_Type is 'HS' then display Select List for hardware_os_id, do not display and set to NULL the Select Lists backup_dev_id and hardware_id.
    There are properties on elements to conditionally display it but how do we reference the values of the SQL query Updateable region? they are not given a page item name?
    Also on the Tabular For Elements there is an Edit tick against a report item - however when you go to the Column Attributes there is not a property with which you can control the Edit setting.
    What's the best way of implementing this requirement in APEX 3.1?
    Thanks.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
    I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far...

  • Error when trying to use this query in report region

    Hi ,
    I am getting "1 error has occurred
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00933: SQL command not properly ended"
    while trying to use this query in reports region .
    Pls help.
    Thanks ,
    Madhuri
    declare
    x varchar2(32000);
    begin
    x := q'!select (first_name||' '|| last_name)a ,
    count(distinct(session_id)),manager_name
    from cappap_log,
    MIS_CDR_HR_EMPLOYEES_MV
    where DECODE(instr(upper(userid),'@ORACLE.COM',1),0,upper(userid)||'@ORACLE.COM',upper(userid)) = upper(email_address)!';
    if :P1_ALL = 'N' then
    x:= x||q'!and initcap(first_name ||' '|| last_name)=:P1_USERNAME!';
    else
    x:= x||q'!and initcap(first_name ||' '|| last_name)like '%'|| :P1_USERNAME||'%'!';
    end if;
    if :P1_APP_NAME = '%' then
    x:= x||q'! and flow_id like '%'!';
    else
    x:= x||'flow_id = :P1_APP_NAME';
    end if;
    x:= x||q'! group by first_name||' '|| last_name , manager_name!';
    return x;
    end;

    Hi, I am actually stuck here. Can you please let me know which among these is the higher version.
    1) Final Release 3.50
       Version 3500.3.016
    2) Final Release 3.50
        Version (Revision 481)
    Because it is working fine in the 1st one whereas its throwing that error pop-up in 2nd one(as soon as we select the Change query global definition option) .

  • Dynamically refresh to report regions

    I have a page with multiple regions. Two of the regions are report regions that I want to refresh dynamically. I am using 4.0. I created a dynamic action that fires based on an item's value changing. It contains two actions, a 'Refresh' action for each region. Only one region will refresh. If I put an 'Alert' action between the two 'Refresh' actions, then both regions will be refreshed. I have tried to do this multiple ways, such as using the $a_report() function from within my page level javascript. Results are the same. I can get one region to refresh, but not two. Any ideas or suggestions on why I can not refresh multiple regions?

    Thanks for your reply. I tried what you said and still no luck. I then created a new page with two simple regions, a select list, and a button to trigger the refresh. I wanted it be stripped of any other items or code and I used your javascript. It still only refreshes one region. I am requesting space on the Oracle site and will create my test there. Maybe there is a bug in the version we have installed. Our version is 4.0.0.00.46.

  • 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

  • Is there a simple way to refresh a SQL Query (Updatable report) region

    I have a page in APex 4.1 that has many regions. I would like to be able to refresh a single region.
    Currently, I have the following
    Region (sql query updateable report).
    STATIC ID = LANDINGS
    in the region footer, I have:
    <script type="text/javascript">
    $s('P110_LANDINGS_REGION_ID','#REGION_STATIC_ID#');
    </script>
    P110_LANDINGS_REGION_ID is a hidden field.
    I use javascript to refresh....but it does not seem to be working. Previously, we had hard-coded the region id ( $a_report('1363338167540162011','1','100','100');) ...but that ID was somehow corrupted, which has lead me to the 'OMG...there must be an easier way!' lament.
    the javascript is:
    $a_report('P110_LANDINGS_REGION_ID','1','100','100');
    thanks!
    Karen
    ps. could I just directly reference the static id in my javascript...
    $a_report('LANDINGS','1','100','100');

    Karen,
    First off: please post code in &#123;code&#125;...&#123;code&#125; tags!
    function AddFavoriteSpecies()
    get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=favorite_species_collection',0);
    gReturn = get.get();
    rowCount = rowCount + parseInt(gReturn);
    pHMS_add = '&G_HMS_FLAG.';
    $a_report('1363338167540162011','1','100','100');
    //$a_report($x('P110_LANDINGS_ID').value,'1','15','15');the statement:
    $a_report('1363338167540162011','1','100','100'); works, but the statement $a_report($x('P110_LANDINGS_ID').value,'1','15','15'); does not.
    Can anyone help.
    I am assigning the page field P110_LANDINGS_ID in the footer of a region with a static id = LANDINGS.
    <script type="text/javascript">
    $s('P110_LANDINGS_ID','#REGION_STATIC_ID#');
    </script>
    Well, let's start by dumping $a_report. This is undocumented code, and it has long been replaced by triggering a refresh.
    Next, don't use $x(pNode).value to retrieve a value. Rather use $v(pNode) to do this.
    function AddFavoriteSpecies()
       get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=favorite_species_collection',0);
       gReturn = get.get();
       rowCount = rowCount + parseInt(gReturn);
       pHMS_add = '&G_HMS_FLAG.';
       //get the region id from the item
       //use it in a jQuery selector to get the region
       //trigger the refresh event on this object
       $("#" + $v('P110_LANDINGS_ID')).trigger('apexrefresh');
    }Now if you want to make sure that P110_LANDINGS_ID contains a value, add an alert with its value before you use it.
    alert('P110_LANDINGS_ID value: '+$v('P110_LANDINGS_ID'))

  • 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 generated SQLfor report regions

    is it possible to do the following to generate the sql statement of a report region dynamically?
    for example i have on page 1 some checkboxes ( to show or not to show columns of the report)
    checkbox1: show col1
    checkbox2: show col2
    checkbox2: show col2
    based on the selection of these checkboxes i would like to dynamically generate the sql content of a report region on page2
    Select col1, col3,
    from my_table

    Andy, thank you very much! this looks perfect to me.
    just one more question:
    Is it ( or will it be) possible to change the sql source of a report region itself dynamically
    my "dream" would be an object related approach like :
    reportregion_name.sql_source = v_sql;
    where v_sql is generated dynamically by a procedure or process.
    i had a look at ps/sql dynamic regions, but i have the feeling that i would loose all advantages of APEX ( like page rendering,...)

  • Apex conditional field in "SQL Query (updateable report)" region

    I have a multi-row region that displays values and allows entries in a number of fields. I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done?
    I have searched Google and this forum but all the threads I have found relate to field formatting or display/non-display.
    Many thanks in advance Dave Barber
    [Apex=4.1.1.00.23; Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production]
    Edited by: user13515136 on 03-Sep-2012 00:05

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
    I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far...

  • Error In Query Level export with  multiple conditions

    When i am running the following Query for Export with i am getting the result.
    C:\Documents and Settings\ITL>exp scott/tiger@orcl tables=(emp) QUERY='"WHERE deptno > 10 and sal !=2850"' LOG=log011.log FILE=exp.dmp
    Export: Release 10.2.0.1.0 - Production on Wed Jan 30 10:01:27 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    . . exporting table EMP 10 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.
    But When I run with The following condition then it shows the following error...
    C:\Documents and Settings\ITL>exp scott/tiger@orcl tables=(emp) QUERY='"WHERE deptno > 10 and job!='CLERK' "' LOG=log011.log FILE=Exp01.dmp
    LRM-00111: no closing quote for value ' LOG=log01'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    C:\Documents and Settings\ITL>exp scott/tiger@orcl tables=(emp) QUERY="WHERE deptno > 10 and job!='CLERK'" LOG=log5.log FILE=exp01.dmp
    LRM-00112: multiple values not allowed for parameter 'query'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    Please suggest a solution for it.

    966523 wrote:
    Padma.... wrote:
    Hi,
    The single quotes used for CLERK are causing the issue most probably.
    C:\Documents and Settings\ITL>exp scott/tiger@orcl tables=(emp) QUERY='"WHERE deptno > 10 and job!='CLERK' "' LOG=log011.log FILE=Exp01.dmp
    try replacing with this
    C:\Documents and Settings\ITL>exp scott/tiger@orcl tables=(emp) QUERY='"WHERE deptno > 10 and job!=''CLERK'' "' LOG=log011.log FILE=Exp01.dmp
    Two single quotes(not double quotes) in the place of one single quote for CLERK.
    Thanks
    Padma...Thanks A Lot...if/when you place all inside control file, then you do not have to worry about such complications

  • Customer Report with multiple conditions?

    Hello <<text removed>>
    I have a project that I am curious if it is possible using BW and BEx Analyzer.
    I have a Cube that contains Customer, Brand, Revenue etc....
    Lets say i have the following values
    Customer: 1,2,3,4,5,6
    Brand:      1,2,3
    I need a report, series of reports, or a workbook that can provide the following.
    a. List and count of customers that purchased $500+ of only Brand 1
    b. LIst and count of customers that purchased $500+ of only Brand 2
    c. List and count of customers that purchased $500+ of only Brand 3
    d. List and count of customers that purchased $500+ of Brand 1 and $500+ of Brand 2
    e. List and count of customers that purchased $500+ of Brand 1 and $500+ of Brand 3
    f. List and count of customers that purchased $500+ of Brand 1, $500+ of Brand 2 and $500+ of Brand 3.
    I think you get the point
    This report should look at the previous 12 months of data.  And the Customer should not appear on the report more then once because that is how the criteria presented above should work.
    I was able to get this to work for a,b,c by restricting a query to the brand and using a condition of $500+ for revenue
    I was also able to get this to work for d and e by using the resolution for the single brand as a value set as input for the dealers in a similiar query restricted to a different brand.
    Anyway I hope i can find some ideas/approaches that would meet this requirement!
    Thank you,
    Nick
    Edited by: Matt on Jan 13, 2011 9:06 AM

    Hi Nick,
    See if this works.......
    Put customer in Rows.
    Create 3 restricted key figures for Revenue one with each brand. gets difficult if you want to do this for many brands...
    Create a calculated key fig and use the expression revenue_rkf1 > 500. this expression in the calc key fig returns 1 if revenue is > 500, othewise returns 0. Similarly create 2 more CKFs with expressions using the other RKFs for revenue.
    Now report may look like this:
    Customer      brand1         brand2          brand3
    Cust1...........            0..........                   1............                    1
    Cust2...........            1..........                   1...........                     0
    Now add logic to get customers who bought brand 1 > 500 and brand2 > 500 and other combinations. For that create different formulas like brand1brand2, brand 2brand3, brand1brand3, brand1brand2+brand3.
    Now report may look like this:
    Customer      brand1         brand2          brand3     for1        for2       for3       for4
    Cust1..........0............1..........1........1......2....1.....2
    Cust2..........1............1..........0........2......1....1.....2
    cust3..........1............1..........1........2.......2....2.....3
    Now create 4 calc key figures. In CKF1 use expression for1 > 1. This checks if value in formula1 is greater than 1, if yes puts 1 otherwise 0. Use the same expression for CKF2 and CKF3 using for2 and for3. Create CKF4 with expression for4 > 2.
    Now the report looks like this:
    Customer      brand1         brand2          brand3     for1        for2       for3       for4    CKF1      CKF2     CKF3       CKF4
    Cust1...........0...........1...........1.......1......2.....1.....2......0........1.......0........0
    Cust2...........1...........1...........0.......2......1.....1.....2......1........0.......0........0
    cust3...........1...........1...........1.......2......2.....2.....3......1.........1.......1........1
    Count of CKF1 gives the number of customers who bought brand1 for 500+ usd and brand2 for 500+ usd.
    Count of CKF4 gives the number of customers who bought all brands for more than 500 $ each.
    The repot gives the data needed but may not look good with number display against customers.
    Regards,
    Murali.
    Edited by: Murali Krishna K on Jan 7, 2011 10:52 AM
    Edited by: Murali Krishna K on Jan 7, 2011 11:10 AM

  • Conditional region - multiple conditions

    Hello,
    I need to display a region only if 1) the page is in Printer Friendly mode AND 2) the value of a page item = 1. I tried using :P100_ITEM = 1 AND :PRINTER_FRIENDLY = 'YES', but that didn't work. Any ideas how to do this? Thanks.
    Lisa

    Hi Varad,
    I'm sure your response is the correct answer, but I can't make it work. I've put an example here: [http://apex.oracle.com/pls/otn/f?p=23292:8]. I'm probably missing one little piece somewhere. I put the different things I've tried (in addition to your suggestion) in the HTML region. The HTML region should be the conditional region. I can only get #1 (no conditions) and #4 v('PRINTER_FRIENDLY') = 'YES' to work. If you have a minute, would you take a look at the page and see if you can tell me what I'm doing wrong. It seems like the value in P8_ITEM is not being recognized. I appreciate your help.
    Lisa

  • 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 create a inline message for report region...

    Hi,
    Can any one pls tell me the document link for to create a inline error message for report region?
    im trying to do a dynamic validation for report region.i've manually created a report region with apex item.
    im searching it for long time, im cant able to find any demos or example.
    Pls help.....
    Thanks in advance...

    Any help???

  • Missing number of records in report region

    I have implmented SQL query base report region and want to add that combobox with number or returned records.
    On page where this combo exist there is no such an aditional item...so my question is how to ad it separatelly?
    THX!

    Found-Pagination schemes!
    Sorry for spam!

Maybe you are looking for

  • How to run a midlet on a real device and  other questions!!VERY VERY URGENT

    PLEASE I NEED HELP FOR ALL THESE DETAILS AS SOON AS POSSIBLE hi i would like to know the following details regarding J2ME: 1. What is the size of a KVM(Kilobyte Virtual Machine)? 2. What would be approximately the memory size of a mobile phone? 3. Ho

  • How to get rid of .dtd file in XML file?

    If there is "<!DOCTYPE xxx SYSTEM "xxx.dtd">" in a XML file and there is no xxx.dtd file, there will be wrong while parsing in Java using JAXP, and the function: setValidating(false) is no use. I can't modify original XML file containing "<!DOCTYPE x

  • QM Standard Reports

    Hi all, I want to have QM standard reports both by Report Programs and T.Code(S). Pls do the needful. thanks & regards sankar. Message was edited by: Sankar         sankar babu Message was edited by:         sankar babu

  • Acroread Error Code List

    I'm working on custom PDF editing tools, compatible with older versions of acroread. In order to debug document errors, I was hoping I could find a listing of the mysterious numeric error code popups generated by acroread. My favorites are the 107 an

  • Can not perform system backup

    i got a funny problem.  when i tried to perform a system back, i got an error message about not enough free space on one of the partitions that i would like to back up. any idea about the solution for this problem? W500 T9900 8GB + TBs imageries