One field based on another by comparison of dates

I have the following fields on my form: "seq_num", "start_date", "status". I'm trying to add new fields called "previous_seq_num", "previous_start_date", and "previous_status". Basically, these will need to reflect all previous sequence numbers and corresponding start dates and status for the current record in consideration. (each record is queried by a field called "company_id"). All the data is coming from a single table called "my_companies" and all the form fields are within the same block. I'm a newbie to forms and am getting confused about how to populate the "previous" data based on the current information. What I basically need to do is pull all the records for the "company_id" whose start_date is before the start_date in the current record.
I'm creating my form in Oracle Designer. Can someone please guide me with this issue?
Any help is greatly appreciated.

Andreas,
Thank you very much for your response.
The following query will achieve the result that I want..it will generate all the rows from the table based on my requirement. The parameter "p_company_id" will be the current company under consideration and "pdate" is the start_date for the current record in focus.
Here's the query:
select am.seq_num, am.start_date, am.status_code
from
select seq_num, start_date, status_code,
last_value (start_date) over (order by start_date) as lv
from my_companies
where company_id = :p_company_id
) am
where am.lv <  to_date(:pdate,'mm/dd/yyyy')
order by am.start_date;Conceptually, this query makes sense and can get all the data I need. I'm not sure how I should implement this in my form. Can you help me with that?
Thanks, once again, for your time.

Similar Messages

  • Values in one field based on another field in the paper parameter form.....

    Hi All,
    I have two fields in the parameter form. One named 'employee number' and the other named 'document number'. Now, there are multiple document numbers for every employee. I'd like the document numbers to be displayed automatically as an LOV or would like to give the user some help when the employee number is entered manually. Please let me know if this is possible in Oracle reports. I read somewhere that I'll have to call the values from the form. if that is the case. then please let me know how to go about it....
    Regards,
    Shri

    Hi Hari,
    Considering both Market Segment and Application fields are dropdown,
    1) define an event for the first dropdown in the get_p method ie., Market Segment field
    2) In the get_v method of the second dropdown get the value of hte 1st dropdown and filter your field accordingly
    Note: The reason for defining an event in (1) is just to do a server submit.. its actually act as a dummy event if you dont want to handle your logic here
    Hope this was helpful.
    Best Regards,
    Lakshminarayana

  • Validating one field based on another

    Hi.
    I have freshly started with ABAP programming.Inside an RFC--OUTBOUND_SHIPLIST I need to validate a field called "shipment number" which is TKNUM in R/3 in side table shipment list so that only those shipment number(TKNUM) are displayed for which "material source location" is APL. I think the source location is LGORT in R/3. Please help me out how to do this validation in R/3.
    Thanks & Regards,
    Reinuka Paul.

    Hi
    i have a webusserid which has been provided DAGs * and APL for werks=0366 by the security. i need to do coding so that If one DAG has * and the other has APL, the APL value is considered instead of *.so i have done the below given coding.but its not working please suggest me where i need to make changes.i need those shipments should come automatically when i login with this webuser which has been provided DAGs =APL in R/3.
    FORM rfc_get_outbound_shiplist
      TABLES
         shipment_list STRUCTURE  yweb_shipment_list
      USING
         value(webuser) TYPE  sy-uname
         value(company_code) LIKE  t001-bukrs
         value(werks) TYPE  werks_d
         value(vdatu_from) LIKE  likp-wadat
         value(vdatu_to) LIKE  likp-wadat
         value(kunnr) LIKE  kna1-kunnr
         value(matnr) LIKE  mara-matnr
         value(vbeln_vl) LIKE  vttk-tknum
      CHANGING
         value(return_msg) LIKE  yweb_s_message.
    internal tables:
    Shipment List Table
      DATA:
            BEGIN OF i_shipment_list OCCURS 0,
    tknum_vttk    LIKE yweb_del_view-tknum_vttk, "Shipment #
    vbeln_likp    LIKE yweb_del_view-vbeln_likp, " Deliv #
      lgort         LIKE yweb_del_view-lgort,  storage location        
            END OF i_shipment_list.
      DATA : ltb_values LIKE usvalues occurs 0 with header line .
    TYPES: BEGIN OF ty_lgort,                               
                lgort TYPE t001l-lgort,
                END OF ty_lgort.
      DATA: tb_lgort TYPE STANDARD TABLE OF ty_lgort,
             wa_lgort TYPE ty_lgort.
    SELECT * FROM yweb_del_view INTO
           CORRESPONDING FIELDS OF TABLE i_shipment_list
           WHERE (i_cond_tab) .   "i_cond_tab is an internal conditional table.
    IF sy-subrc = 0.
    CALL FUNCTION 'SUSR_USER_AUTH_FOR_OBJ_GET'
          EXPORTING
          NEW_BUFFERING             = 3
          MANDANT                   = SY-MANDT
            user_name                 = webuser
            sel_object                = 'M_MSEG_LGO'
          TABLES
            values                    = ltb_values
         EXCEPTIONS
           user_name_not_exist       = 1
           not_authorized            = 2
           internal_error            = 3
           OTHERS                    = 4
        IF sy-subrc = 0.
        User has authorization in DAGs. Do the authority check.
          LOOP at  ltb_values where
                        OBJCT = 'M_MSEG_LGO' and
                        FIELD = 'WERKS'.
            AUTHORITY-CHECK OBJECT 'M_MSEG_LGO'
                            ID 'ACTVT' FIELD '03'
                            ID 'WERKS' FIELD WERKS
                            ID 'LGORT' FIELD i_shipment_list-lgort.
            IF sy-subrc <> 0.
             DELETE i_shipment_list INDEX sy-tabix.
            ENDIF.
            ENDLOOP.
          LOOP AT ltb_values WHERE
                       objct = 'M_MSEG_LGO' AND
                       field =  'LGORT'.
            IF ltb_values-von = '*'.
              CONTINUE.
            ELSE.
              wa_lgort-lgort = ltb_values-von.
              APPEND wa_lgort TO tb_lgort.
            ENDIF.
          ENDLOOP.
        ENDIF.
       TYPES: ty_delivery TYPE  yweb_shipment_list.
        TYPES: BEGIN OF ty_vbeln,
                    vbeln TYPE likp-vbeln,
                    lgort TYPE t001l-lgort,
                   tknum type vttk-tknum,
                END OF ty_vbeln.
    DATA : tb_delivery_vbeln TYPE STANDARD TABLE OF ty_delivery .
    DATA: tb_vbeln TYPE STANDARD TABLE OF ty_vbeln,
    wa_vbeln TYPE ty_vbeln.
    IF tb_delivery_vbeln[] IS NOT INITIAL.
          SELECT vbeln lgort
          FROM vepo
          INTO TABLE tb_vbeln
          FOR ALL ENTRIES IN tb_delivery_vbeln
          WHERE vbeln = tb_delivery_vbeln-vbeln_likp.
          SELECT tknum FROM vtts INTO TABLE tb_vbeln FOR ALL ENTRIES IN
       tb_delivery_vbeln WHERE tknum = tb_delivery_vbeln-tknum .
          SORT tb_vbeln BY lgort.
          DELETE ADJACENT DUPLICATES FROM tb_vbeln.
          IF tb_lgort[] IS NOT INITIAL.
            LOOP AT tb_vbeln INTO wa_vbeln where lgort = 'APL'.
              l_tabix = sy-tabix.
              READ TABLE tb_lgort INTO wa_lgort WITH KEY lgort =
               wa_vbeln-lgort.
              IF sy-subrc <> 0.
                DELETE tb_vbeln INDEX l_tabix.
              ENDIF.
            ENDLOOP.
          ENDIF.
        ENDIF.
    Thanks & Regards,
    Reinuka.
    Edited by: Reinuka Paul on Jul 7, 2008 8:03 PM

  • Sum one Field based on another's input

    I have a question. Is it possible to have a specific field populated with specific number based on the input of antother field. Example.  In Field #10  I have to input a number.  If the number is 1-365 it's an ( F) If the number is 366- 392 it's an ( D) if it's 393-460 its an (C) if it's 461-500 it's an ( B) if 501-700 it's an (A).  So In Field  #11  I want that to populate the Letter based on the input of the number input in field#10.  Is that possible in Javascript or How?
    Thank You in Advance

    Sure it's possible. The custom Calculate script for the text field could be:
    (function () {
        // Get the field value, as a number
        var val = +getField("Text10").value;
        // Set this field's value
        if (val < 366) {
            event.value = "F";
            return;
        if (val < 393) {
            event.value = "D";
            return;
        if (val < 461) {
            event.value = "C";
            return;
        if (val < 501) {
            event.value = "B";
            return;
        if (val < 701) {
            event.value = "A";
            return;
        // Default
        event.value = "";

  • Auto Populate one Field Based on Another Field

    I am trying to populate the description field after the user has entered a value in the item number field and then tabs or otherwise exits the item number field. I'm sure this is in the documentation somewhere, but I'm in a big hurry.
    By the way, this is only the second time I've looked at HTML-DB, so details would be appreciated.
    Thanks a bunch!

    Well, I've been all over all kinds of documentation, but the pieces are not coming together.
    I have onchange="doSubmit('GETDESC');" in the HTML Form Element Attributes.
    I have a couple of processes which fire, or don't, depending on the condition of Request (Request = Expression 1 vs. Request != Expression 1).
    I know when a process fires because of messages I put in the Process Success Message.
    My source is:
    SELECT ITEM_DESCRIPTION INTO :P1_ITEM_DESCRIPTION
    FROM PRT_HEADER
    WHERE ITEM_NBR = :P1_ITEM_NBR;
    When I change the value in P1_ITEM_NBR and tab out, the form comes back blank.
    Any ideas?
    Thanks,
    Gregory

  • Selection screen validation  - one field based on another field

    Hi all,
    i'm getting Month in Select option and Year in Parameter.
    When i execute the report, it should check whether one is entered without the other one. If so, it should throw error message. 
    How to do this in selection screen ?
    this is what the coding should be...
      if s_month[] is not initial and p_year is initial.
        Message 'Enter Payroll Year' type 'E'.
      endif.
      if s_month[] is initial and p_year is not initial.
        Message 'Enter Payroll month' type 'E'.
      endif.
    But under which event i should write this..
    can anyone pls help me..
    Regards,
    Shanthi

    Hi Shanti,
    Define your selection-screen elements between
    SELECTION-SCREEN BEGIN OF BLOCK <block name>
    Select-options....
    Parameters:
    SELECTION-SCREEN END OF BLOCK <block name>
    You specify ur code in AT SELECTION-SCREEN ON BLOCK <b1>.
    This would help you if either one of the entry is missing...
    And even you can mention in AT SELECTION-SCREEN event...
    But if you have any other parameters there its not necessary for the user to specify if he had entered...
    As month and year are interrelated for your program its better you go for the first procedure ie in BLOCK event.
    Hope this would help you,
    Regards
    Narin Nandivada.

  • Sql to break one field based on another column

    sample data :
    --DROP TABLE XXCNC.TEST_FREIGHT_CLASS;
    CREATE TABLE XXCNC.TEST_FREIGHT_CLASS
      ITEM_ID        NUMBER,
      UOM varchar2(3),
      FREIGHT_CLASS  VARCHAR2(250 BYTE)
    SET DEFINE OFF;
    Insert into XXCNC.TEST_FREIGHT_CLASS
       (ITEM_ID, UOM, FREIGHT_CLASS)
    Values
       (1, 'CS', '[CS|100|CREAM SUBSTITUTE O.T. MILK CREAM][EA|100|ITEMS TO BE REBOXED]');
    Insert into XXCNC.TEST_FREIGHT_CLASS
       (ITEM_ID, UOM, FREIGHT_CLASS)
    Values
       (2, 'EA', '[CS|100|SOLUBLE COFFEE|73725][EA|100|ITEMS TO BE REBOXED]');
    Insert into XXCNC.TEST_FREIGHT_CLASS
       (ITEM_ID, UOM, FREIGHT_CLASS)
    Values
       (3, 'CS', '[CS|150|LUGGAGE AND TRAVEL ACCESSORIES|187645-04][EA|100|ITEMS TO BE REBOXED]');
    Insert into XXCNC.TEST_FREIGHT_CLASS
       (ITEM_ID, UOM, FREIGHT_CLASS)
    Values
       (4, 'EA', '[EA|65|ITEMS TO BE REBOXED|NMFC#XXXXX][CS|60|FOOD ITEMS |12345  ]');
    Insert into XXCNC.TEST_FREIGHT_CLASS
       (ITEM_ID, UOM, FREIGHT_CLASS)
    Values
       (5, 'CS', '[EA|100|SHOWER CURTAINS AND ACCESSORIES][CS|60|ITEMS TO BE REBOXED]');
    COMMIT;
    desired result :
    ITEM    UOM     freight_class_code                                                             class     description                     code
    1     CS     [CS|100|CREAM SUBSTITUTE O.T. MILK CREAM][EA|100|ITEMS TO BE REBOXED]           100   CREAM SUBSTITUTE O.T. MILK CREAM   null
    2     EA     [CS|100|SOLUBLE COFFEE|73725][EA|100|ITEMS TO BE REBOXED]                       100   ITEMS TO BE REBOXED                73725
    3     CS     [CS|150|LUGGAGE AND TRAVEL ACCESSORIES|187645-04][EA|100|ITEMS TO BE REBOXED]   150   LUGGAGE AND TRAVEL ACCESSORIES     187645-04
    4     EA     [EA|65|ITEMS TO BE REBOXED|NMFC#XXXXX][CS|60|FOOD ITEMS |12345  ]               65    ITEMS TO BE REBOXED                NMFC#XXXXX
    5     CS     [EA|100|SHOWER CURTAINS AND ACCESSORIES][CS|60|ITEMS TO BE REBOXED]             60    ITEMS TO BE REBOXED                null
    using substr and instr I was able to extract data for one item_id, but since all the items have different freight_class_code, I dont know how to hit this problem.
    structure of freigh_class_code = [CS|...|.................|.....][EA|...|..................|....]
    Logic: for item=1 , if UOM = CS , get the values corresponding to CS in = [CS|100|CREAM SUBSTITUTE O.T. MILK CREAM] .
    print ... '100'  'CREAM SUB..........CREAM' and if there is no "|" after the description then print nullI would appreciate any help
    Thanks

    That's really poor design, storing multiple items in one column value like that. Any chance you can redesign the database to make it store the data properly?
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 1 as item_id, 'CS' as uom, '[CS|100|CREAM SUBSTITUTE O.T. MILK CREAM][EA|100|ITEMS TO BE REBOXED]' as freight_class from dual union all
      2             select 2, 'EA', '[CS|100|SOLUBLE COFFEE|73725][EA|100|ITEMS TO BE REBOXED]' from dual union all
      3             select 3, 'CS', '[CS|150|LUGGAGE AND TRAVEL ACCESSORIES|187645-04][EA|100|ITEMS TO BE REBOXED]' from dual union all
      4             select 4, 'EA', '[EA|65|ITEMS TO BE REBOXED|NMFC#XXXXX][CS|60|FOOD ITEMS |12345  ]' from dual union all
      5             select 5, 'CS', '[EA|100|SHOWER CURTAINS AND ACCESSORIES][CS|60|ITEMS TO BE REBOXED]' from dual)
      6  --
      7  -- end of test data
      8  --
      9  select item_id, uom, freight_class
    10        ,regexp_replace(regexp_substr(class,'[^|]+',1,2),'\]') as class
    11        ,regexp_replace(regexp_substr(class,'[^|]+',1,3),'\]') as description
    12        ,regexp_replace(regexp_substr(class,'[^|]+',1,4),'\]') as code
    13  from (
    14        select item_id
    15              ,uom
    16              ,freight_class
    17              ,case when uom = substr(regexp_substr(freight_class,'\[.*?\]',1,1),2,2) then regexp_substr(freight_class,'\[.*?\]',1,1)
    18               else regexp_substr(freight_class,'\[.*?\]',1,2)
    19               end as class
    20        from t
    21       )
    22* order by item_id
    SQL> /
       ITEM_ID UOM FREIGHT_CLASS                                                                 CLASS DESCRIPTION                              CODE
             1 CS  [CS|100|CREAM SUBSTITUTE O.T. MILK CREAM][EA|100|ITEMS TO BE REBOXED]         100   CREAM SUBSTITUTE O.T. MILK CREAM
             2 EA  [CS|100|SOLUBLE COFFEE|73725][EA|100|ITEMS TO BE REBOXED]                     100   ITEMS TO BE REBOXED
             3 CS  [CS|150|LUGGAGE AND TRAVEL ACCESSORIES|187645-04][EA|100|ITEMS TO BE REBOXED] 150   LUGGAGE AND TRAVEL ACCESSORIES           187645-04
             4 EA  [EA|65|ITEMS TO BE REBOXED|NMFC#XXXXX][CS|60|FOOD ITEMS |12345  ]             65    ITEMS TO BE REBOXED                      NMFC#XXXXX
             5 CS  [EA|100|SHOWER CURTAINS AND ACCESSORIES][CS|60|ITEMS TO BE REBOXED]           60    ITEMS TO BE REBOXED

  • Changing a field based on another field

    hi one and all
    i am looking for a way to change a field based on another field. if i have item 2 and item 8 on the page and item 8 needs to be required based on item 2 based on a requirement, how would this be done.
    ex if item 2 has a PO inputed, when it is moved off the field, item 8 should be changed from required false to required true. i have tried in both the process request and process form request with no luck
    any suggestions.
    thanks

    hello again
    after your input and after reviewing the tutorial ( which i accomplished based on data from a table but not a field ) , i did the following and have been fighting it for a day. am i doing this correctly
    on the itemid OrgRptCode1 i changed the action type to firePartialAction and the event is name o1
    then i added this code to see if the action would fire
    if (pageContext.getParameter("OrgRptCode1") !=null) // either line will be commented out
    if (pageContext.getParameter("o1") !=null) // either line will be commented out
    System.out.println("Field is not empty");
    else
    System.out.println("Field is empty");
    am i missing a step . also
    when i enter the page i get Field is empty. when i enter the field and tab off i get the error page w/ this msg
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1064)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1294)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2396)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.NullPointerException
         at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processFormRequest(manageOrgCO.java:289)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.NullPointerException
         at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processFormRequest(manageOrgCO.java:289)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

  • How to update one table based on another table ??

    Hello Friends:
    I am trying to run the following query in oracle but it won't run.
    UPDATE BOYS
    SET
    BOYS.AGE = GIRLS.AGE
    FROM GIRLS
    WHERE
    BOYS.FIRSTNAME = GIRLS.FIRSTNAME AND
    BOYS.LASTNAME = GIRLS.LASTNAME;
    This query runs fine in sql server but in oracle its saying can't find "SET". PLease tell me what is the correct syntax in oracle to update one table based on another table.
    thanks

    See if this helps.
    If you wrote an SQL statement:
    update boys set age = 10;
    Every row in the boys table will get updated with an age of 10. But if you wrote:
    update boys set age = 10
    where firstname = 'Joe';
    Then only the rows where the firstname is Joe would be updated with an age of 10.
    Now replace the 10 in the above statements with (select g.age from girls g where g.firstname = b.firstname and g.lastname = b.lastname) and replace where firstname = 'Joe' in the second statement with where exists (select null from girls g where g.firstname = b.firstname and g.lastname = b.lastname). The same concepts apply whether 10 is an actual value or a query and whether you have a where clause with the update statement to limit rows being updated.
    About the select null question regarding the outer where clause:
    Since the query is checking to see if the row in the girls table exists in the boys table what the column is in this select statement doesn't matter, this column isn't being used anywhere. In this case Todd chose to use null. He could have also used a column name from the table or a lot of times you'll see the literal value 1 used here.

  • Many to Many Subgrids - pouplate one relationship based on another entity's relationship

    Say I have 'entity1' and 'entity2' and both have many to many relationships with 'entity3.'
    Entity 1 has a many to many subgrid.  We're going to get rid of entity 1 and replace it with entity 2.
    We need entity 2 to have the same subgrid values that entity1 used to have.   Entity 2 for now is unpopulated in its many to many relationship.
    How could we achieve this other than manual data entry? 
    -If I could somehow export the data into xml format and reimport it that would work, but advanced find isn't an option.
    -I don't believe workflows are an option.
    One workaround I'm thinking of is to populate a mult-line text field using javascript.  Then I could xfer the field and run another javascript to grab the values.   Or maybe use rest services to avoid having to xfer.  But these still require
    me to open each entity and frankly the development time will be high enough that I might as well just do them by hand.

    Hello
    You could write a console application using (C#) to update/create your entity 2 objects.
    https://msdn.microsoft.com/en-us/library/gg334754.aspx
    Retrieve your entity 1 objects, create your entity 2 objects based on the entity 1 values. Associate your entity 2 with your entity 3 (N-N Relation).
    https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.messages.associaterequest.aspx
    Hope this gives you a start,
    Kind Regards

  • How to create an array in one field and have another field display certain elements from that array?

    I am making a form in Acrobat XI pro.
    In one text field, I created an array of several elements. I want other text fields to display certain elements from that array. For instance, one field should display the 3rd element, another field should display the 13th element, etc.
    The Javascript for making the array is very long, and so I don't want to have to re-calculate the array every single time (in order to reduce rendering time when I open the form on an iPad). This is why I'd like to only have to create the array once, and simply refer to it throughout the form.

    What code are you using to update the array currently? Are you completely rebuiding it when an element changes, or just changing specific elements for certain fields? I'm still not sure what exactly you are trying to do, but something like this in a document level script will create your array:
    var myArray;
    // Call 'updateArray' to initialize array
    updateArray();
    function updateArray() {
         // Code here to create/update array
         myArray = new Array();
         myArray[0] = "Value 1";
         myArray[1] = "Value 2";
         myArray[2] = "Value 3";
    Then, for each field that needs to update this array, you can add a call to 'updateArray()' in the appropriate event. This will rebuild the array completely; if you just want to update specific elements, then you can access them directly.

  • Change value of a field, based on another fiekd, before insert...

    I have this situation: I have to generate a code (this happens through a database function) on the moment a new record is saved. This code is based on another field of that record (parameter passed to the function). I (have to) use Apex 3, so I can't use functionality of Apex 4.
    So to be concrete: I have a registration program of books. Eacht book has a unique library code (this is not the PK). The labrary code is based on the year of publication (e.g. B2010-00035). So once a new book is entered, before saving, the year of publication (e.g. 2010) is checked, and throug a database function (e.g. f_get_new_library_code(2010) returns "B2010-00036") the library code has to be filled out.
    How can I do this on the best way, taking into account I can't use Dynamic Actions of Apex 4 (unfortunatly).

    Hi,
    If you had specified the type of Form the answer would have been more to the point !
    If its a single row form then you can write a OnSubmit Computation where in you call your function.
    If its a Tabular Form then you have to write a OnSubmit After Comp & Val process where you will iterate through the apex_application.g_f arrays and update the required arrays.
    Regards,

  • How to display F4 values in one field based on other field selection

    Hi All,
    How to hide a UI element (i.e Link to action) highlited for Normal User and display the same to super user.
    Component Name : /SAPSRM/WDC_DODC_SC_GAF_C
    2.Can i know how to display  the entries in supplier field based on Product category selection.
    Right now all the entries are getting displayed in the supplier field.
    I want to display only entries based on Product category.
    Search Help Name : BBP_BUPA_CLL_PARTNER
    Component Name : /SAPSRM/WDC_DODC_SC_I_LIM
    How to enhance the web dynpro component with the filtered values.
    Regards,
    Krish.

    Hi Ashvin,
                 Thanks for the document. In the search help there is a standard FM which is getting executed.
    Can i enhance that FM or should i copy and edit.
    BBP_F4IF_SHLP_EXIT_CLL_PARTNER
    If i creata a Z FM and make changes how to pass that values to my standard Component View UI Element.
    If not then suggest me some alternative.
    Regards,
    Krish

  • Conditional formating in a pivot table field based on another field

    Hello All,
    I have a pivot table with fields like Division, Day, Current DayTotal, Previous DayTotal. I have to set the background color of CurrentDayTotal field based on PreviousDayTotal. I searched all the blogs and they say Crossconditional Formatting is not possible in 10.1.3.4 pivot table.
    Conditional formatting works fine with the same field but not with a calculated field. I have tried these two options (Java Script and setting XML in Advanced tab) on a similar solution based on Grand Total.
    Conditional formtting in Grand total
    But not able to make it work for my current situation. Can you help.
    Regards,
    -Srini

    Hi,
    I've read all the tips that are offered in this forum. I tried all the solutions provided here, but I can not get the grand total formatted conditionally, what I get is the following error nell'answer:
    DXE compiler error. No table 'GTGT' found in DXE. Source name: DxeAPI. XML: None
    Error details
    Codici di errore: YV3KVTDM
    Location: saw.hypercube.dxeApi, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    I'm use the version: OBIEE 11.1.1.6.2
    Anyone have any ideas for me?!

  • Can I move Array from one Xserve RAID to another and keep the data

    I'd like to move a set of disk with an existing Array from one Xserve RAID to another. Can I simply shutdown both Xserve RAIDs and move the disk over, assuming I put the disk back in the same order?

    Yes, you should be able to do this.
    BE SURE YOU HAVE A BACKUP FIRST.

Maybe you are looking for

  • Purchase Flow to FI in SAP ECC 6.0

    Dear All, I google regarding the Purchase and Sales Flow in SAP but didnt saw any document with description. Please suggest if I am going to the right direction in Purchase and Sales Flow step as follow :- Purchase Flow: 1) Purchase requisition raise

  • Photo Stream not showing all my photos.

    I recently misplaced my iPhone 5 but because it was near the end of the contract I took another one out and bought the IPhone 6. When I got the phone I thought all my pictures if not some would be in the photo stream but they're not so every single o

  • TS1440 When booting up, grey screen with a 'folder icon' with 'question mark' flashes?

    When I boot up, a grey screen appears with a folder icon with a question mark inside it. The Mac won't respond to and commands or anything, only the On/Off Power button. Any ideas? If you read my previous question, you can see what happened before al

  • After Effects won't import any animation presets from Bridge.

    I just installed Creative Cloud.  It seems to be working fine, except that when I try to apply Animation Presets into After Effects through Bridge, it gives me an error message saying "Can't import file xxx.fxx: unsupported filtype or extension" I'm

  • Pre-configured standalone OC4J with PDK - ZIP corrupt - ??

    zip is corrupt, what can I do, who can I contact?? pre-configured standalone OC4J with PDK http://www.oracle.com/technology/products/ias/portal/files/pdk_oc4j_extended.zip found at page http://www.oracle.com/technology/products/ias/portal/pdk.html