Selection of records based on time

Hello

I ask an oracle EBS table that has information about the concurrent requests.

I need to be able to extract a list of jobs that have been run on the system where a time given for example 16:24:05 ' between the ACTUAL_START_DATE and the ACTUAL_COMPLETION_DATE.

I tried this:

AND TO_CHAR('16:24:05', 'HH24:MI:SS') BETWEEN fcr.actual_start_date AND fcr.actual_completion_date




But get an error:

ORA-01722: invalid number

I tried with the sample data:

WITH tbl_data AS
    (SELECT 'job1' job_name, '16:04:05' start_time, '17:34:04' end_time FROM DUAL UNION ALL
     SELECT 'job2', '18:04:56', '19:34:52' FROM DUAL UNION ALL
     SELECT 'job3', '21:04:08', '21:34:22' FROM DUAL UNION ALL
     SELECT 'job4', '22:04:19', '23:34:38' FROM DUAL UNION ALL
     SELECT 'job5', '23:18:43', '17:34:16' FROM DUAL)
select * from tbl_data
 WHERE TO_CHAR('16:24:05', 'HH24:MI:SS') BETWEEN start_time AND end_time;




And get the same error.

I also tried to use the TO_DATE:

WITH tbl_data AS
    (SELECT 'job1' job_name, '16:04:05' start_time, '17:34:04' end_time FROM DUAL UNION ALL
     SELECT 'job2', '18:04:56', '19:34:52' FROM DUAL UNION ALL
     SELECT 'job3', '21:04:08', '21:34:22' FROM DUAL UNION ALL
     SELECT 'job4', '22:04:19', '23:34:38' FROM DUAL UNION ALL
     SELECT 'job5', '23:18:43', '17:34:16' FROM DUAL)
select * from tbl_data
 WHERE TO_DATE('16:24:05', 'HH24:MI:SS') BETWEEN start_time AND end_time;




But received the error:

ORA-01843: not one month valid

With the '17' selected numbers in the SQL (I use TOAD).

If someone could give advice where I'm wrong please, it would be much appreciated.

Thank you

Post edited by: silly remedied 16:04:05 to 16:24:05

It is unclear why you want to know if there comes a time between two dates. You need see if a DateTime is between two dates.

In addition, you are confused in your conversion functions. 16:45:00 "is already a tank - why to_char it?"

I think you want

where to_date (March 26, 2015 16:45 ',' dd-mon-yyyy hh24:mi:ss') between actual_start_date and actual_completion_date

for example.

Tags: Database

Similar Questions

  • Selection of records based on the flag

    Hi all

    I have records as follows:

    Program name Effective_Date Valid_Flag
    N 10/02/2012 ABCD
    N 14/02/2012 ABCD
    ABCD 20/02/2012 Y
    N 01/03/2012 ABCD
    N 10/03/2012 ABCD
    ABCD 14/03/2012 Y
    N 25/03/2012 ABCD
    N 26/03/2012 ABCD
    N 27/03/2012 ABCD
    N 28/03/2012 ABCD
    N 29/03/2012 ABCD
    ABCD 25/04/2012 Y



    I have to write a select statement to keep the first record and then only pull records when the Valid_Flag has changed. The result set should be as below.

    Program name Effective_Date Valid_Flag
    ABCD 10/02/2012 N - I kept the first record
    20/02/2012 ABCD is - Valid_Flag chages to a Y for the first time and so on.
    N 01/03/2012 ABCD
    ABCD 14/03/2012 Y
    N 25/03/2012 ABCD
    ABCD 25/04/2012 Y

    If there is no change in the flag, I don't have to draw from this record. Please help with suggestions of SQL. Thanks for your time and your help.

    ssk1974 wrote:
    Hi all

    I have records as follows:

    Program name Effective_Date Valid_Flag
    N 10/02/2012 ABCD
    N 14/02/2012 ABCD
    ABCD 20/02/2012 Y
    N 01/03/2012 ABCD
    N 10/03/2012 ABCD
    ABCD 14/03/2012 Y
    N 25/03/2012 ABCD
    N 26/03/2012 ABCD
    N 27/03/2012 ABCD
    N 28/03/2012 ABCD
    N 29/03/2012 ABCD
    ABCD 25/04/2012 Y

    I have to write a select statement to keep the first record and then only pull records when the Valid_Flag has changed. The result set should be as below.

    Program name Effective_Date Valid_Flag
    ABCD 10/02/2012 N - I kept the first record
    20/02/2012 ABCD is - Valid_Flag chages to a Y for the first time and so on.
    N 01/03/2012 ABCD
    ABCD 14/03/2012 Y
    N 25/03/2012 ABCD
    ABCD 25/04/2012 Y

    If there is no change in the flag, I don't have to draw from this record. Please help with suggestions of SQL. Thanks for your time and your help.

    In the future, it would be nice if you could provide the sample data as below, I created.

    ME_XE?with data as
      2  (
      3     select 'ABCD' as col1, to_date('2/10/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
      4     select 'ABCD' as col1, to_date('2/14/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
      5     select 'ABCD' as col1, to_date('2/20/2012', 'mm/dd/yyyy')       as col2, 'Y' as col3    from dual union all
      6     select 'ABCD' as col1, to_date('3/01/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
      7     select 'ABCD' as col1, to_date('3/10/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
      8     select 'ABCD' as col1, to_date('3/14/2012', 'mm/dd/yyyy')       as col2, 'Y' as col3    from dual union all
      9     select 'ABCD' as col1, to_date('3/25/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     10     select 'ABCD' as col1, to_date('3/26/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     11     select 'ABCD' as col1, to_date('3/27/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     12     select 'ABCD' as col1, to_date('3/28/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     13     select 'ABCD' as col1, to_date('3/29/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     14     select 'ABCD' as col1, to_date('4/25/2012', 'mm/dd/yyyy')       as col2, 'Y' as col3    from dual
     15  )
     16  select *
     17  from
     18  (
     19     select
     20             col1, col2, col3,
     21             lag(col3) over (partition by col1 order by col2 asc) as last_flag
     22     from data
     23  )
     24  where last_flag    != col3
     25  or    last_flag    is null;
    
    COL1         COL2                       COL LAS
    ------------ -------------------------- --- ---
    ABCD         10-FEB-2012 12 00:00       N
    ABCD         20-FEB-2012 12 00:00       Y   N
    ABCD         01-MAR-2012 12 00:00       N   Y
    ABCD         14-MAR-2012 12 00:00       Y   N
    ABCD         25-MAR-2012 12 00:00       N   Y
    ABCD         25-APR-2012 12 00:00       Y   N
    
    6 rows selected.
    
    Elapsed: 00:00:00.08
    ME_XE?
    

    See you soon,.

  • Select a record based on the date field MAX

    I have the following query that works, but does include all the necessary columns.  I need to JOIN the run_events table, which is a child of the runroute table, such that I choose not only the run_code and max event_timestamp, but also the LATITUDE, LONGITUDE columns.  Each run_code has many events associated with it.

    Any help or pointers would be appreciated!

    Thank you

    I've included descriptions of output and query table

    WITH

    ETV as (select run_code

    -, LATITUDE, LONGITUDE

    max (event_timestamp) TS

    of run_events

    Run_code group

    )

    SELECT all THE RR.run_code,

    substr(PODDept.POD_NAME,1,10) DEPT,

    To_char (ETD ' HH: mi: SS AM') r_ETD,.

    To_char (ATD, ' HH: mi: SS AM') r_ATD,.

    substr (PODDest.POD_NAME, 1, 10) Dest,

    To_char (ETA, "HH: mi: SS AM'") r_ETA,.

    To_char (ATA, ' HH: mi: SS AM') r_ATA

    --        ,  VTE. LATITUDE, ETV. LONGITUDE

    to_char (VTE. TS, ' dd-mm-yyyy hh: mi: SS AM') TS

    OF routerun RR

    PADE LEFT JOIN PODDest ON RR. PODEST_CODE = PODDest.POD_ID

    LEFT JOIN PADE PODDept ON RR. PODEPT_CODE = PODDept.pod_id

    ETV LEFT JOIN ON RR.run_code = VTE.run_code

    WHERE ATA IS NULL

    ORDER BY RR. ETA, RR. RUN_CODE

    /

    SQL > @rpt_runroute.sql

    RUN_CODE DEPT R_ETD DEST R_ETA R_ATA TS R_ATD

    ---------------  ----------            ---------------  ---------------  ------------------ ---------------  ---------------  ----------------------

    2013432247 NORFOLK 23:39:59 CHERRY PT 02:00 07/10/2013 01:00:15

    NEW YORK 20:45:03 2013432224 CRESCENT B 06:00 10/07/2013 12:52:28 AM

    2013432242 BALTIMORE 22:33:23 SALISBURY 10/07/2013 12:39:28 AM

    Descriptions of table

    PADE

    Name Null?    Type

    ---------------------- -------- --------------------------------------------------

    POD_ID NOT NULL NUMBER (10)

    POD_LONGITUDE NUMBER (10.6)

    POD_LATITUDE NUMBER (10.6)

    POD_NAME VARCHAR2 (64)

    ROUTERUN

    Name Null?    Type

    ---------------------- -------- --------------------------------------------------

    RUN_CODE NOT NULL VARCHAR2 (15)

    REMARKS VARCHAR2 (1024)

    PODEST_CODE NUMBER (10)

    PODEPT_CODE NUMBER (10)

    ETD                             DATE

    ATD                             DATE

    ETA                             DATE

    ATA                             DATE

    RUN_EVENTS

    Name Null?    Type

    ---------------------- -------- --------------------------------------------------

    RUN_CODE NOT NULL VARCHAR2 (15)

    EVENT_TIMESTAMP NOT NULL DATE

    EVENT_CODE NOT NULL VARCHAR2 (6)

    LONGITUDE NUMBER (10.6)

    LATITUDE NUMBER (10.6)

    Hello

    One way is to use the MAX function analytical rather than the MAX aggregate, like this:

    WITH

    ETV as (select run_code

    LATITUDE, LONGITUDE

    , event_timestamp-* ADDED *.

    , max (event_timestamp) OVER (PARTITION BY run_code)-* CHANGED *.

    as TS

    of run_events

    -Group by run_code-* REMOVED *.

    )

    SELECT all THE RR.run_code,

    substr(PODDept.POD_NAME,1,10) DEPT,

    To_char (ETD ' HH: mi: SS AM') r_ETD,.

    To_char (ATD, ' HH: mi: SS AM') r_ATD,.

    substr (PODDest.POD_NAME, 1, 10) Dest,

    To_char (ETA, "HH: mi: SS AM'") r_ETA,.

    To_char (ATA, ' HH: mi: SS AM') r_ATA - if ATA is NULL, what's the point?

    ETV. LATITUDE, ETV. LONGITUDE

    to_char (VTE. TS, ' dd-mm-yyyy hh: mi: SS AM') TS

    OF routerun RR

    PADE LEFT JOIN PODDest ON RR. PODEST_CODE = PODDest.POD_ID

    LEFT JOIN PADE PODDept ON RR. PODEPT_CODE = PODDept.pod_id

    ETV LEFT JOIN ON RR.run_code = VTE.run_code

    AND VTE.event_timestamp = VTE.ts-* ADDED *.

    WHERE ATA IS NULL

    ORDER BY RR. ETA, RR. RUN_CODE

    /

    If you would care to post, CREATE TABLE and INSERT statements for some sample data and the results you want from this data, then I could test it.

    What happens if there is a tie for the final event_timestamp (i.e. 2 or more lines with the same exct run_code and event_timestamp)?  You can use the analytic ROW_NUMBER function instead of MAX.

  • Count of records based on time

    Hello

    It comes to my folders

    Date rolls
    9 October 12 08:00 10
    9 October 12 08:00:50 20
    10 October 12 07:00 5
    10 October 12 10:00 10

    Morning 8-the next morning 8 o'lcock considered one day.

    Output:

    9 October 12 35 (10 + 20 + 5)
    October 10, 12 10

    PL help how to achieve this.

    Thank you
    Kavi

    When you want a definition of "asymmetric shift" a day, you can subtract the required number of hours then trunc to whole days.
    Like this:

    SQL> with data as (
      2     select to_date('09-10-2012 08:00:00','DD-MM-YYYY HH24:MI:SS') thedate, 10 rolls from dual union all
      3     select to_date('09-10-2012 08:00:50','DD-MM-YYYY HH24:MI:SS') thedate, 20 rolls from dual union all
      4     select to_date('10-10-2012 07:00:00','DD-MM-YYYY HH24:MI:SS') thedate,  5 rolls from dual union all
      5     select to_date('10-10-2012 10:00:00','DD-MM-YYYY HH24:MI:SS') thedate, 10 rolls from dual
      6  )
      7  select to_char( trunc(data.thedate - interval '8' hour)
      8                , 'DD-MM-YYYY HH24:MI:SS' ) theday
      9       , sum(rolls) rolls
     10    from data
     11   group by trunc(data.thedate - interval '8' hour)
     12   order by theday
     13  /
    
    THEDAY                   ROLLS
    ------------------- ----------
    09-10-2012 00:00:00         35
    10-10-2012 00:00:00         10
    
  • How to select a record in one table to manipulate data in a database?

    Hello community,

    Using 32-bit Labview 2015.

    I created a user interface that runs a query and retrieves my table from a sql database.

    I want to be able to manage only one record at a time by selecting the record in my table and then manipulate the data according to the needs.

    Whenever the user runs a query, I want as the first record in the table to be selected / highlighted.

    I want an indicator that is currently active.

    Then a click of a button, to be able to scroll the actively selected record.

    Once I have the selected record, I want a way to write a query to edit or delete the record.

    Is attached a photo of my query to select all of my table and connect data in my table (results).

    Attached a photo of my painting showing the timeline of my sql database.

    What is the best way to go on a record selection in a table and the modification of data with a query?

    Any help would be greatly appreciated.

    Thank you

    I guess that's not a table, but multi-column listbox.

    Right click, select--> highlight whole line selection Mode

    The value of the multicolumn listbox is the row index - you can write a local variable to highlight the line, the event structure to handle the user clicking on, etc.

    If you enable the property editable ListBox cells, you can allow users to edit the items of the listbox.

    If you want to get the data in row, you hint REF table and work with the array of strings in row - convert it to cluster, etc..

    I don't know, what type of data, it is, how you structure the database looks like, I don't even know if you use the wrapper to work with the database, I can't write queries for you.

    Something like Update Tablica Set Serial = '5' where ID = '22';

  • How to record clips of time's favorite videos so I can combine them later into a new video.

    How to record clips of time's favorite videos so I can combine them later into a new video. ?

    genem

    What version of Premiere Elements, what operating system?

    With regard to your use Favorite Moments stripes from one project... in other words, in different project files.

    If you set the workspace of favorite Moments pads to go to the timeline as separate pads, you can selectively export each plate to a file saved on the hard drive of the computer. To do this selective export there are two conditions

    a. place the grey tabs of the work area bar to span just trim to export

    and

    b. in the field of export, have a check mark next to the share of work area Bar only.

    If you set to combine more than one compensator in the workspace of favorite Moments, you pass the composite in the timeline and export in the same way with the technique of selective export. Alternatively, if there is nothing else on the Timeline, simply export it to file.

    If please consider and let us know if you need additional information on this project. Questions or need any clarification on the above, do not hesitate to ask.

    Thank you.

    RTA

    Add on... Reference Adobe Premiere Elements help. Mark and retrieve favorite moments

  • To summarize two records based on Max Date

    Hello

    I have the following data:

    Account number Date of invoice Invoice Amt Real AMT Companies code
    1001110/11/2013100.0293.030112
    1001110/02/201493.0487.760232

    I need to sum up above two records based on max (Invoice Date) and and I need to display company code corresponding to the date of billing max

    Expected result:

    Account number Date of invoice Invoice Amt Real AMT Companies code
    1001110/02/2014193.06180.790232

    Thank you

    Kiran

    Hello

    Try this:

    with in_data as
    (
    Select '10011' account_number, dates "2013-11-10' invoice_date, invoice_amt 100.02, 93,03 actual_amt '0112' company_code of all the double union"
    Select '10011,' date '' 2014-02-10, 93.04, 87.76, '0232' from dual
    )

    Select
    Account_Number
    max (invoice_date) i_date
    sum (invoice_amt) i_amt
    sum (actual_amt) a_amt
    , max (company_code) Dungeon c_code (last dense_rank command by invoice_date)
    Of
    in_data

    Group
    Account_Number
    ;

    ACCOUNT_NUMBER I_DATE I_AMT A_AMT C_CODE


    -------------- --------- ------ ------ ------
    10011 10 FEBRUARY 14 193.06 180,79 0232

    Kind regards

    Peter

  • create dynamically a group of record based on previously entered record Grou

    Forms [32 bit] Version 10.1.2.3.0 (Production)

    Hello
    I know how to create dynamically record based on a query and put the code in when a new instance of the form.
    My request is. I have a form that includes several groups of Record and the user wants to dynamically create the following groups based on the previous groups.

    For example
    I have a record group with choosing a location.
    When the user selects the location from a list of values
    the 2nd record group called "Cost Centres" will have to filter only those whose locations selected above.

    How can I fill the 2nd record running when I don't know what site the user will choose?
    If I just simply fill in when new instance of form as the location and just select the entire document, populates the list of values.

    CC field is a LIST ELEMENT and the style of list is a LIST of POP, is not necessary.

    I put the code in the location of the trigger when-list-changed field.
    I get this error:
    FRM-41337: cannot complete the record group list

    Here is the code:

    DECLARE
    
    v_recsql Varchar2(1000); -- The SQL for creating the Record Group.
    v_recgrp RecordGroup; -- Record Group
    v_status Number; -- Return Value of Populate_Group function.
    c_where VARCHAR2(1000);
    
    BEGIN
         IF :location = '1' THEN
              c_where := ' substr(cost_centre,1,2) in (''01'',''02'')';
              
         ELSIF :location  = '2' THEN
              c_where := ' substr(cost_centre,1,2) in (''02'',''03'')';
              
         ELSIF :location   = '3' THEN
              c_where := ' substr(cost_centre,1,2) in (''01'',''11'',''07'')';
                   ELSE
              c_where :=  ' 1=1'; --EVERYTHING
    
         END IF;
    
    v_recsql := 'SELECT cost_centre, description  FROM   cost_centres  where '||c_where;
    
    
    -- Create the Record Group
    v_recgrp := CREATE_GROUP_FROM_QUERY('v_recgrp', v_recsql);
    
    
    IF NOT ID_NULL(v_recgrp)
    THEN -- No Error, record group has been successfully created.
    
    
    -- Populate Record Group
    v_status := POPULATE_GROUP('v_recgrp');
    
    
    IF v_status = 0 
    THEN -- No Error. Record Group has been Populated. 
    POPULATE_LIST('block.CC', 'v_recgrp');
    END IF; -- IF v_status = 0 
    
    -- Delete the Record Group as it is no longer needed.
    DELETE_GROUP('v_recgrp'); 
    
    
    END IF; -- IF NOT ID_NULL(v_recgrp)
    
    END;
    Thanks for your help.

    Hello
    Once registration State Gets the change to block you cannot fill/repopulate the list item. Keep these list items as element non-base of data with different names and create different items such as database Moose points. That assign values in triggering WHEN-LIST-CHANGE for real database items.

    -Clément

  • How to give users the ability to select the rate based on HSP_Begin, HSP_Average or HSP_ending

    Hello

    We wanted to give users the ability to select the rate based on HSP_Begin, HSP_Average or HSP_ending.  How you would achieve this?

    I have some ideas:

    (1) a less optimal solution is to create a user variable called FX_Beg_Ave_End, and then run a HBR script to perform the conversion of FX before completing the form.  The HBR will prompt the user to enter "HSP_Begin, HSP_Average or HSP_ending.  He's going to calc and display the converted data in the form based on the user input.  It's embarrassing because users must type in 'HSP_Begin, HSP_Average or HSP_ending' to all forms.  It is also better to pull data directly from one of the members: 'HSP_Begin, HSP_Average or HSP_ending'.

    (2) a better alternative is to put the POV of the form points to the variable user FX_Beg_Ave_End.  When the form appears, it will draw the name of the FX_Beg_Ave_End member variable and display the data of the Member (for example 'HSP_Begin, HSP_Average or HSP_ending') stored in FX_Beg_Ave_End.

    Thanks for your ideas.

    Hello

    In fact for your option, so you could make a selection of members would not have users typing the name.

  • Bridge continues to change the selection of the sort each time that I reopen it the Bridge window... WHY?

    Bridge continues to change the selection of the sort each time that I reopen it the Bridge window... WHY?

    I continue to get "sort by modified date" but each whenever I open it a window that it is for manual selection.

    I searched the preferences but impossible to find something to help.  It didn't used to do this...

    John

    Well, I solved the puzzle myself.

    I noticed that somehow a stray .psd file was stuck in my side bar of the Mac Finder.  Don't ask me how it got there.

    At the beginning I couldn't delete it – until I tried a Mac forum and they suggested I hold down the command key and drag it off... to poof!

    It worked.

    And when I went back to bridge - now the bad behavior disappeared!  And when I close the window Bridge and reopen - the choice to "classify" same home!

    Yay... it's a small step for me, and one small step for computerkind.

  • record selector don't work for the specific selection of records

    Hello

    I have a problem with the record selector in the spotlight.

    I want to select specific record, but when I select the control in the record are not in the selected record tab!

    the dataservice.json and endecaBrowserService.json files are correctly set up I think. I compare it with the app to Discover, but I do not want would be the question! not that the dynamic selection of records are working properly

    endecaBrowserService.json

    {

    "host': 'W177."

    "port": "15101."

    "recSpecProp": "Product_SKU",

    "recAggregationKey": "Endeca_Rollup_Id",

    "recFilter",:

    "recImgUrlProp": "URL_Thumbnail1",

    'recDisplayProps': ['brand', 'Category_EN', 'Product_SKU'],

    "textSearchKey": "interface_EN",

    'textSearchMatchMode': 'ALLPARTIAL '.

    }

    DataService. JSON

    {

    "jcr:primaryType': ' short: unstructured."

    "host': 'W177."

    "port": "15101."

    "recordSpecName": "Product_SKU",

    "aggregationKey": "Endeca_Rollup_Id",

    «recordFilter ": «,»

    'wildcardSearchEnabled': false,

    "recordNameField": "product_name_en",

    "fields": {"Brand": "', 'Category_EN': '',' Product_SKU'": ""}

    }

    any idea

    Thank you

    What is the record specification for records that fail?  For example, I found that the editor will fail if the record ID have spaces. That is to say 'Id1 Id2'.  Our resolution after conferring with support is to add an underscore 'Id1_Id2 '.

  • Select type without to_char date time

    I have the table T (myDate date, + about 15 columns). When I insert values in there, I also inserts a date time.

    If I want to see all of the data in the table, I have to call to_char on column myDate. If you need to write all 15 column names in the select.

    I would simply write a select * from T, but see time for myDate as well. Is this possible?

    Thank you

    You can use alter session in a session of SQLPlus

    See this example:

    SQL>
    SQL> select * from emp
      2  where rownum <=2;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
    
    SQL>
    SQL> alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';
    
    Session altered.
    
    SQL>
    SQL> select * from emp
      2  where rownum <=2;
    
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- -------------------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
    

    Kind regards.
    Al

  • Multiple selection of records in table advanced to update in the Search Page.

    Hi all

    I write the code below, to select multiple records in table advanced for the update after clicking on the button update in the Search Page.
    I write this code in Processform request, but I got the exception when I run the code below.


    If (PageContext.GetParameter ("UpdateOnSeaBtn")! = null)
    {
    Am = (XxSupppacklistAMImpl) pageContext.getApplicationModule (webBean) XxSupppacklistAMImpl;
    am.saveRollback ();
    OAViewObjectImpl upDtVO = (OAViewObjectImpl) am.findViewObject ("PackingListSeaVO");
    PackingListSeaVORowImpl line;

    HashMap vParm = new HashMap();

    Row [] rows = upDtVO.getFilteredRows ("SingleSelection", "Y");
    int fetCount = upDtVO.getRowCount ();
    System.out.println ("Teh recovered rowcount is:," + fetCount);

    RowSetIterator multiIter;
    multiIter = upDtVO.createRowSetIterator ("multiIter");
    multiIter.setRangeStart (0);
    multiIter.setRangeSize (fetCount);


    for (int i = 0; i < fetCount; i ++)
    {
    Row = (PackingListSeaVORowImpl) multiIter.getRowAtRangeIndex (i);
    If (Row.GetAttribute ("SingleSelection")! = null)
    {
    If (Row.GetAttribute ("ItemNumber")! = null)
    {
    Object vitemNum = row.getAttribute ("ItemNumber");
    System.out.println ("The selected element Num is:," + vitemNum);
    vParm.put ("ItemNumber", vitemNum);

    pageContext.setForwardURL ("OA.jsp?page=/xxfls/oracle/apps/po/packlist/webui/XxSuppalistcrealistPG", / / here, I got the exception below)
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    vParm,
    false, / / RetainAM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    }
    }
    }

    multiIter.closeRowSetIterator ();

    }
    }
    }

    could you, please, can someone help on this.


    I got below exception to the side server when it is run the code above.
    Error (125,48): method setForwardURL (java.lang.String, null, null, byte, java.util.HashMap, boolean, java.lang.String, byte) is not not in the interface oracle.apps.fnd.framework.webui.OAPageContext

    Kind regards

    Hello

    832859 wrote:

    for (int i = 0; i)<>
    {
    Row = (PackingListSeaVORowImpl) multiIter.getRowAtRangeIndex (i);
    If (Row.GetAttribute ("SingleSelection")! = null)
    {
    If (Row.GetAttribute ("ItemNumber")! = null)
    {
    Object vitemNum = row.getAttribute ("ItemNumber");
    System.out.println ("The selected element Num is:," + vitemNum);
    vParm.put ("ItemNumber", vitemNum);

    > pageContext.setForwardURL"OA.jsp.page=/xxfls/oracle/apps/po/packlist/webui/XxSuppalistcrealistPG",//here I got below exception

    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    vParm,
    false, / / RetainAM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    }
    }
    }

    -Here is you call pageContext.setForwardURL loop.
    >

    I got below exception to the side server when it is run the code above.
    Error (125,48): method setForwardURL (java.lang.String, null, null, byte, java.util.HashMap, boolean, java.lang.String, byte) is not not in the interface oracle.apps.fnd.framework.webui.OAPageContext

    -check 5th param should nt be vParm if it is null

    Finally... After the for loop ends call... y bcz assume this page grouped 10 rows can he navigate both on the next page...:

    pageContext.setForwardURL ("OA.jsp?page=/xxfls/oracle/apps/po/packlist/webui/XxSuppalistcrealistPG",
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    NULL,
    false, / / RetainAM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    }

    Concerning
    Meher Irk

    Published by: Meher Irk on March 31, 2011 19:54

  • How to call a form with splashing around by clicking on a record with a time where

    Hi all

    How to call a form with splashing around by clicking on a record with a time where clause. I mean when I dip, click current record I want to call another form with the details of the
    record with onetime where clause. Can someone help me in this regard.

    Now, I'll call you a form with parameter with where Jadi but this should be avoided.


    Thanks in advance

    Arif

    Maybe this helps http://andreas.weiden.orcl.over-blog.de/article-28180655.html

  • Select multiple records in a single pass

    Hello

    I will select the row data for all items corresponding to a list of IDs.

    For example:

    TableA

    ID; Name; (Color); Date; Time


    I want to retrieve information for all the columns whose ID matches one of the following:
    ID: 1,5,10

    Thus,.

    SELECT the color, name, Date, time of TableA
    WHERE ID = '1'

    but is there a way to get into the full list of IDS so that all the results are returned in a single keystroke?

    Sorry for the simple question.

    Published by: 803242 on November 19, 2010 07:02

    where id (1, 5, 10)

Maybe you are looking for