Passing values to another field in APEX form

Hi,
How do I pass a value in 1 field to another field in APEX form ?
I have a hidden field and I need to populate this field by another field.
thanks

I found the solution to my problem.
[1] Create a "After Submit" under Computations.
[2] Select 'Item Value' under Type in Item Name
[3] Select "After Submit" under Computation Point
[3] Enterer Item Name, which value needs to be passed in 'Source'
thanks

Similar Messages

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • How to use FMS on OPCH field to query value on a field in PHC1 form?

    Hi All,
    I have a problem. I created a user defined field in the AP Invoice form (parent form-OPCH). Now I would like to use the formatted search to add a query to that field that will select a value from another field also on the same form but at the row level (child form-PCH1). It seems that this is not possible. Any suggestions?
    A general question for this: is their any way that I could use the formatted search to query value on an opening form that is inactive?
    Thanks
    Duc

    Hi Sampath Kumar devunuri,
    Thanks for your reply. It does not work. I have tried to searched through the forum about this topic and it seems that FMS will not work at row level. Not sure if there is any solution to overcome this.
    My query is for example: I want my UDF on OPCH form to capture the description of the first row in PCH1:
    Select $[$39.1.1]
    If I assign it to a UDF at row level it works perfectly.
    If I assign it to the Remark field on OPCH it still works.
    But if I assign it to a UDF at title level it does not (this is what I need)
    This may be because at title level the form name is OPCH which is different with the form name at row level: PCH1
    I cannot think if there is any way that I could set focus on PCH1 to get the value.
    Duc

  • Field with a default value from another field

    I need to populate a field as the default value from another field that the user inputs. I've tried the scripting that I found from the below Topic in the Archived Forums, but I'm not able to make it work. I've tried numerous variations and still to no avail. I tried to make the scripting work in Acrobat 6 and then decided that maybe I needed to upgrade, so I'm now trying it in Acrobat 8 with no results. Can anyone help?
    Topic
    Acrobat 5 - field with default value of another field
    Ben PF - 03:31am Mar 23, 2007 Pacific
    How can I have a field date2 which has the default value of field date1, but which can be edited by the user if necessary without changing the value of date1.
    I've tried, but I just can't figure it out!
    Any help much appreciated.
    Ben
    | Back to Topic List | Bookmark | Subscribe
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages
    2 messages. Displaying 1 through 2.
    First Previous Next Last Show All Messages
    Gene Dianoski - 5:22am Mar 23, 07 PST (#1 of 2)
    This, or some variation of this, should work:
    if(this.getField("date2").value == ""{
    this.getField("date2").value = this.getField("date1).value;
    | Bookmark back to top
    Ben PF - 6:49am Mar 23, 07 PST (#2 of 2)
    Thanks very much.
    I put it in at document level to start, but it didn't run the script automatically when date1 was first filled in, so I have put it in as a mouse exit action in date1 and it works a treat.
    Thanks for your help.
    Ben

    Okay forget what I posted above and lets start over. Go to your first field and under Properties -> Actions Tab -> Select Trigger -> On Blur Run A JavaScript.
    Put this:
    this.getField("myField2").value = event.target.value;
    Make sure that you replace ("myField2") with the actual name of your second field. I just tested this and it works for Acrobat version 6.
    I haven't been doing as much javascripting as I used to, so sometimes I too make some basic mistakes.

  • Pass value to a field dynamically..

    Hi Experts,
    Can any one solve this issue?.
    I want to pass value to different fields dynamically..
    Egu2026
    I have work are having fields
    lwa_table-var1,
    lwa_table-var2,
    lwa_table-var3,
    lwa_table-var4,
    u2026.. up to lwa_table-var100.
    My logic is I have to pass l_tot value .. based on the last letter like below.
    if l_tot value is 1 we have pass to lwa_table-var1
    if l_tot value is 2 we have pass to lwa_table-var2
    if l_tot value is 3 we have pass to lwa_table-var3
    if l_tot value is 100 we have pass to lwa_table-var100.
    <removed_by_moderator>
    Thanks in advance.
    Regards,
    Kumar.
    Edited by: Julius Bussche on Aug 12, 2009 8:41 AM

    Hi Friend,
    U can do Following.....
    data:  text(12) type c.
    data : num type n.
    data: int type i.
    data: begin of wa_test,
          var1,
          var2,
          var3,
          var4,
          end of wa_test.
    FIELD-SYMBOLS <fs_wa> TYPE ANY.
    do 4 times.
      int = int + 1.
      num = int.
      CONCATENATE 'wa_test-' 'var' num into text.
      ASSIGN (text) to <fs_wa>.
    <fs_wa> = num.
      UNASSIGN <fs_wa>.
    enddo.
      write : wa_test-var1 , wa_test-var2 , wa_test-var3 ,wa_test-var4 .
    ouput will be :     1 2 3 4.
    Lets take Your Scenario----
    >>>>>>>>>>>>>>>>>
    Data: begin of lwa_table,
    Var1,
    Var2,
    Var3,
    u2026..
    u2026u2026
    Var100,
    End of lwa_table.
    Data: l_tot type i.
    u2022     For example l_tot = 36.
    u2022     Then u want to pass the same to lwa_table36.
    For this do followingu2026..
    Now Define-->>>
    data: text(13) type c.
    data : num type n.
    FIELD-SYMBOLS <fs_wa> TYPE ANY.
    *Now till now we done all the data definitions now u have to do following to pass it dynamically,
    l_tot = 36.
    Num  =  l_tot.
    CONCATENATE lwa_table-' 'var' num into text.
    ASSIGN (text) to <fs_wa>.
    <fs_wa> = num.
    UNASSIGN <fs_wa>.
    Write : lwa_table-var36.
    Output will be 36.
    Hope this resolves ur issue,
    Regards,
    Akash Rana
    Edited by: AKASH RANA on Aug 12, 2009 8:53 AM

  • Fields required based on a value in another field

    Hi,
    I am looking to have fields required (Annual Revenues and # of Employees) based on the value of another field (Ownership). Basically, if the value is Public the user is required to enter the Annual Revenue and Employees fields. I thought about using dynamic layouts but the only key field for Accounts is Account Type.
    Thanks,
    Caryn

    Hi Caryn!
    I think it is not possible for making #Employees and Revenues required depending on Ownership(as it is a look up field).. it should be possible if you want to do it on any other criteria other than ownership by just renaming the Account Type, Disable all the values of Account Tyope add new values to Pick List and make it driving picklist upon your requirements..
    If you require Account Type, create a custom picklist "Account-Type" and add the values.

  • Passing value to a field of SAP Program which do not have "Parameter ID"

    Dear Experts,
    My requirement is that i need to pass a value from my dialog program to a field of SAP Program which do not have "Parameter ID" attached to it.
    For example: If you run SAP Transaction CS14, it has two sections viz., Primary BOM and Secondary BOM. I need to copy and create own screen using Dialog program. The screen appears in custom screen would be similar to that of the SAP Transaction CS14. If you check the fields, all the fields have "Parameter ID" attached to it, except for the following fields which do not have Parameter IDs are "Alternative", "Valid From" and "Required Qty".
    Hence how do i pass value to those fields? Kindly help me
    To those fields where "Parameter IDs" are attached, i can use below two statements:
    Set parameter id <par> field <field>.
    call transaction 'CS14' and skip first screen.
    Regards,
    Ramesh Manoharan

    Hi Harald Boeing,
    Thanks you very much. My problem is solved.
    Rewarded Points.
    Regards,
    Ramesh Manoharan

  • How to pass values in dynamic fields in LX03

    HI ,
    i  want to pass values for dyanmic fields in lx03 program by calling this in my own program through  call transction or submit report .

    LX03 is the report program so you have to use Submit report.
    See the simple example :
    REPORT ZTEST_98 .
    DATA: t_param LIKE rsparams OCCURS 10 WITH HEADER LINE.
    parameters p_LGNUM like lagp-lgnum obligatory.
    start-of-selection.
          t_param-selname = 'S1_LGNUM'.
          t_param-kind = 'P'.
          t_param-low  = p_lgnum.
          APPEND t_param.
    *-- Period
    SUBMIT RLS10030 VIA SELECTION-SCREEN
                              WITH SELECTION-TABLE t_param
                              AND RETURN.
    Just press F1 on submit and you get good documentation.
    Thanks
    Seshu

  • 10.1.3--Disable a field according to values of another field.

    Hi,
    I am trying to set a filed on the JSP to be disalbed according to values of another field.
    eg. When the value in "ID" field is NOT 10 or 20, the "Bill" field should be disabled.
    I have tried using only one condition which is when "ID" != 10 or "ID" != 20. They work fine. But when I try to combine two conditions together using "&&" sign, I got a syntax error. The JSP does not display at all. I asked an expert about it, the answer is:
    #{(bindings.Deptno.inputValue.value !=10) &&(bindings.Comm.inputValue.value > 1000)}. I tried this on my application and got the same syntax error.
    Has anybody had a similar situation? Any idea what could be wrong? Thanks in advance.
    Annie

    Hi bsalvador,
    I've had a simular situation once where I needed to make items disabled or required depending on a workflow step and on depending on other page items. Basically the disabling of items is done by javscript, keep in mind that readonly is not the same as disabled. When you use readonly, the item can still be manipulated with javascript. When you disable an item, the item is not even submitted to the database, so you have to make sure that your submit process can hadle that.
    There are two different situations:
    First you have the page load / page submit, there you can use PL/SQL to check which items should be submitted, hand them a javascript class or make them readonly/disabled straight away.
    Second you have a situation where you want to disable certain items depending on the value of other items. This is done 'on the fly' and should be handled with a javascript function.
    Keep in mind however that javascript runs client side and isn't a secure way to handle data integrity, so you would need a database process to validate which items need to be submitted as well.
    Regards,
    Vincent Deelen

  • Passing value to another form with on demand process

    Hi,
    This is my first post and I am an absolute beginner to apex (using 4.1)
    I would like to pass a value to another form, but to no avail.
    I have an on demand process that is being called when a button is clicked (ISSUE)
    This process is being called from P33 and I need the value to go to P33_ST_NUMBER_HOLD
    DECLARE
      v_rownum NUMBER;
    BEGIN
      for i in 1..apex_application.g_f01.count
      loop
        v_rownum := apex_application.g_f01(i);
        apex_debug_message.log_message('row selected: '||v_rownum);
        apex_debug_message.log_message('value: '||apex_application.g_f03(v_rownum));
        htp.p('$x_Value("P17_ST_NUMBER_HOLD",apex_application.g_f03(v_rownum));');
    end loop;
    END;What am I doing wrong?
    Edited by: Hansen_____ on 2012/06/15 1:15 AM

    Hansen_____ wrote:
    htp.p('$x_Value("P17_ST_NUMBER_HOLD",apex_application.g_f03(v_rownum));');This is PL/SQL and you have to use one of these methods to set the item value, But you are using javascript API's in PL/SQL.
    FYI - javascript is a client/browser side and it got nothing to do with PL/SQL
    :P17_ST_NUMBER_HOLD := apex_application.g_f03(v_rownum);
    //OR
    APEX_UTIL.SET_SESSION_STATE('P17_ST_NUMBER_HOLD',apex_application.g_f03(v_rownum));http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#AEAPI181

  • Please help!!! How to pass values to another form

    Hi. I have a form that has several database values and a checkbox item, is_selected, as a non-database item. I want to be able to save the values/records that are checked and be able to pass them to a new form. I know that I'll probably have more than 20 records that consists of many fields. Thanks in advance and I greatly appreciate any advice or suggestions.
    Thanks,
    Kristine

    Look into the Forms help, chapter "Creating and Passing Parameter Lists".
    You have to create a record group, fill the records with your data and pass the record group to the called form.
    Another method would be a database package containing a "global" pl/sql table.

  • PO Form with Terms & Conditions that Change Depending on a Value in Another Field

    Hi - I have read through the relevant topics in this forum and have attempted several of them without luck. I am currently working on a form in which there is an empty JFMain (I do not want to populate fields on this page since I don't want things in this page my "static" header - logos, title, etc. since the Terms and Conditions pages should not show any of this.) On my page 2, I have subforms for all my fields except my Terms and Conditions. (These fields are controlled by a data file.) On my remaining pages I have 3 sets of Terms and Conditions - all about a page long - hard-coded as text and placed in subforms with a dummy field off page to ensure they print. What I want to do is print the subforms from page 2 and then the applicable terms from page 3, 4, or 5 depending on the value in a field located in one of the subforms on page 2. What I currently get is my subforms and then ALL my terms printing. Any thoughts?
    My preamble overrides look like this:
    ^define group:D_HEADER \field$POSITION\reserve".11",in\subformHEADER.
    ^define group:G_HEADER @group:D_HEADER.
    ^define group:dummy!FldNotAvail \groupG_Terms_Private_Commodity
    ^define group:dummy2!FldNotAvail \groupG_Terms_Private_Services
    ^define group:dummy3!FldNotAvail \groupG_Terms_Public
    ^define group:JfEndData!EndData @group:D_end.
    I had to place the JFEndData! statement into the Preamble since the last subform with fields called before the Terms subforms has a global field from another subform above it. For whatever reason, it was duplicating this subform after printing the Terms and Conditions.
    I tried adding a nested if statement into field that will control when I want each subform to print but it was ignored. I also tried hardcoding a group call into the preamble with the logic as well with no results. If someone has example code they can share, this would be great.

    I receive Adobe help forum posts via email and I've been saving a few for the pointers they contain. I have some saved that might help you out a bit...
    A reply to the "Please can some one help me out......." post by Mr BoJangles on 10/29/2007 gives some information about forcing a subfield to be displayed.
    A reply to the "Conditional logic" post by Marco Degl'Innocenti on 8/2/2006 gives information on initiating a subform based on the value of a field in the data stream.
    A reply to the logic post by Marco DeglInnocenti on 2/22/07 also gives information on initiating a subform based on the value of a field.
    I hope these can be of help. If you can't access them on the forum I can repost them.

  • Passing values to another page with %

    I have a button that redirects to another page in my application. I am passing the value of one my fields to the target page via <Set These Items> and <With These Values>. The source field has a % at the end of it. When the value gets passed to the target, the % is not passed. Is there a problem passing values with % in them?
    Here is the passing parameter list:
    Set These Items: P22_DB_NAME
    With These values: &P2_DB_NAME.
    The value of P2_DB_NAME is "ESB%". When it gets to the target page it is "ESB".

    Brian,
    you will need to encode the percent sign and use
    %25
    instead of
    Make your button an url and use this link. It will replace the percentage with the encoded value and pass the value to the specified item.
    redirect('f?p=&APP_ID:22:&SESSION.::::P22_DB_NAME:'+$x('P2_DB_NAME').value.replace(/%/, '%25'));
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Automatic population of search help value to another field in module pool

    Hello there,
    I am developing a module pool screen, in which i have a table control field with fields PERNR and ARBPL along with other fields.
    I have to give a search help for Pernr first field for which i have given a search help with the use of PM02 search help, given in the screen field level, in the same search help there is another field ARBPL, when the pernr is selected i have to get the corresponding Arbpl field value in the search help hit list and pass it to my field arbpl in my table control.
    I tried with POV event as well with FM f4if_field_value_request but the return structure always filling one value only PERNR.
    Is there any chance to get the both field values from the search help.
    Thank you in advance.
    Regards,
    Kumar.

    Try the following logic in your table control, in table control you have get the selected index using function DYNP_GET_STEPL.
    TYPE-POOLS: shlp.
    PARAMETERS:p_matnr TYPE marc-matnr,
               p_werks TYPE marc-werks,
               p_ekgrp type marc-ekgrp.
    TYPES:BEGIN OF ty_marc,
          matnr TYPE marc-matnr,
          werks TYPE marc-werks,
          ekgrp TYPE marc-ekgrp,
          END OF ty_marc.
    DATA:i_marc TYPE TABLE OF ty_marc,
         i_val TYPE TABLE OF ddshretval,
         wa_val TYPE ddshretval.
    DATA:wa_dynpfields TYPE dynpread,
        i_dynpfields LIKE STANDARD TABLE OF dynpread.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
      SELECT matnr werks ekgrp FROM marc INTO TABLE i_marc UP TO 100 ROWS.
      CHECK i_marc[] IS NOT INITIAL.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield         = 'MATNR'
          value_org        = 'S'
          callback_program = sy-repid
          callback_form    = 'CALLBACK_ROUTINE'
          dynpnr           = sy-dynnr
        TABLES
          value_tab        = i_marc
          return_tab       = i_val
        EXCEPTIONS
          parameter_error  = 1
          no_values_found  = 2
          OTHERS           = 3.
      IF sy-subrc  <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT i_val INTO wa_val.
        IF sy-tabix = 1.
          wa_dynpfields-fieldname    = 'P_MATNR'.
          wa_dynpfields-fieldvalue   = wa_val-fieldval.
        ELSEIF sy-tabix = 2.
          wa_dynpfields-fieldname    = 'P_WERKS'.
          wa_dynpfields-fieldvalue   = wa_val-fieldval.
        ELSEIF sy-tabix = 3.
          wa_dynpfields-fieldname    = 'P_EKGRP'.
          wa_dynpfields-fieldvalue   = wa_val-fieldval.
        ENDIF.
        APPEND wa_dynpfields TO i_dynpfields.
      ENDLOOP.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = sy-repid
          dynumb     = sy-dynnr
        TABLES
          dynpfields = i_dynpfields.
    FORM callback_routine TABLES i_val TYPE ddshreslts
                CHANGING wa_shlp TYPE shlp_descr
                         wa_callcontrol LIKE ddshf4ctrl.
      DATA:
        wa_intf     LIKE LINE OF wa_shlp-interface.
      wa_intf-shlpfield = 'F0002'.
      wa_intf-valfield  = 'X'.
      wa_intf-f4field = 'X'.
      wa_intf-value = '~'.
      APPEND wa_intf TO wa_shlp-interface.
      wa_intf-shlpfield = 'F0003'.
      wa_intf-valfield  = 'X'.
      wa_intf-f4field = 'X'.
      wa_intf-value = '~'.
      APPEND wa_intf TO wa_shlp-interface.
    ENDFORM.                    " CALLBACK_F4

  • Passing value from Webdynpro ABAP to Adobe form..

    Hi experts,
            In first view of web dynpro, im getting employee id as input and after clicking the create new button, an adobe form is called
    to create the employee details ( in form i used the submit button and i stored the details ). so, in tat form i used the employee id as read only mode and it has to display the value which i given as input. But in tat form im not getting the value from web dynpro..
    can anyone plz help me out for this..
    Thanks in advance..

    Hi,
    Try to set your values in Method->"wddomodify" of the View in which Adobe Form is present. If you want to pass values from one view to another then check this link [Passing Local Parameters between views in an ABAP Web Dynpro Application|http://wiki.sdn.sap.com/wiki/display/stage/PassingLocalParametersbetweenviewsinanABAPWebDynproApplication] or use Context declared in Component Controller.
    Regards
    Pradeep Goli

Maybe you are looking for