Change the value of a field in a form when the form is displayed

Hello
I have a report which has a link to a form for updating the records. I have used a link to the form from report which displays the the record to be updated i.e it gets default values from the report. I need to change one of these values at the time of displaying the form. The set_value in the 'before displaying the page' section doesn't change the vaue displayed in the form. I tried in other 'Advanced pl/sql' sections provided but didn't succeed.
Thank you
Jayasree

hi,
let's call the new value u want to set "NewValue"
insert this code in the before displayin' the page
htp.p('<script language="Javascript1.1">
function defaultValue(fieldname)
var thefield;
for( var v=0; v < document.forms[0].elements.length; v++)
// get the right field
if (document.forms[0].elements[v].name.indexOf(fieldname) >= 0 )
thefield = document.forms[0].elements[v];
                    thefield.value='''||NewValue||''';
break;
</script>');
in the after displaying the page section call the function above with the appropriate field:
htp.p('<script language=javascript1.1>
defaultValue(''Field_Name'');
</script>');
where Field_name is the name of the field u want to change the value!
Mohamed

Similar Messages

  • Setting the value of a field based on a dropdown list

    I am using the latest production release of JHeadstart 10.1.3.0.91. I am trying to set the value of a field based on selecting the value of another field (drop down list). The drop down list field has the following attributes set autoSubmit="true" immediate="true" valueChangeListener="#{jhsPageLifecycle.updateModelValue}".
    The other field has the partialtrigger set to the first field. ie "depends on" selection from JHeadStart file. The value of the second field is set in the setter of the VO RowImpl java file.
    The value of that field is only populated on the screen if it is set to disabled="true". This seems a bit bizzare behaviour. Can you explain why it cannot set the value of the field when it is not disabled.

    Worked out that if i set the "Clear/Refresh value" attribute on the field that i want updated then it will work ok
    Alan

  • Change a value of a field in the work flow notification

    Hi All,
    I have a requirement,where in i need to change a value of a field in the work flow notification that i receive.
    is it posiible
    if so please provide some inputs.Thanks

    Hi;
    Please check below which could be helpful for your issue:
    http://docs.oracle.com/cd/B14117_01/workflow.101/b10283/instal10.htm
    http://docs.oracle.com/cd/B19306_01/workflow.102/b15853/T361836T361983.htm
    http://docs.oracle.com/cd/E14571_01/integration.1111/e10226/hwf_config.htm#BHCJDGFJ
    Regard
    Helios

  • How do I get the value of a field object programatically after loading a report

    I'm using CR 11.5 and VS2005 in a console application, there is no GUI. I have a report with a page header that has 3 field objects. These field objects, their values change for every record and I want to be able to capture the value of these field objects in code for further processing outside of CR. Is this possible?
    Thanks in advance!
    I should explain a little more, the information I'm trying to obtain is in the Page Header section of the main report. There are subreports. Basically what I'm trying to put together is a list of how many pages are part of each record, the number of pages fluctuates per records so I need to be able to cycle through. Any other suggestions?

    When accessing the fields on the report through the SDK you will only get what database field they are using for data.  The internal data collection that is used by the report can be gathered using the rowsetcontroller from the ReportClientDocument.

  • I am trying to pass the value of a field from the seeded page /oracle/apps/

    I am trying to pass the value of a field from the seeded page /oracle/apps/asn/opportunity/webui/OpptyDetPG. The value I want is in the VO oracle.apps.asn.opportunity.server.OpportunityDetailsVO and the field PartyName.
    I have created a button on the page whose destination URL is
    OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName={#PartyName}
    It opens the correct page, but in the URL it shows this
    http://aa.com:8005/OA_HTML/OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName=&_ti=1897289736&oapc=177&oas=x5E2TIfP1Y0FykBt1ek4ug..
    You can see that &CustName is not getting the proper value. Do I need to do something different?

    You cannot call the form with OA.jsp . This is applicable only for OAF based pages registered as a function.
    For calling a Form, use the below example:
    You have to change the application responsibility key and form function name .
    "form:PN:PN:STANDARD:XXPNTLEASE:QUERY_LEASE_ID={@QueryLeaseNumber}"
    Regards,
    Sudhakar Mani
    http://www.oraclearea51.com

  • How do i get the value  of that field

    in JSP i have a field like below..
    <input type="hidden" id="grpId<%=Index%>" value="<bean:write name='GrpList' property='groupId'/>"/>
    In Action class , how do i get the value of that field (i.e id) ?
    String value =reques.getparameter (//what ??);

    i dont want to change the jsp.
    concern is , as the name of the id is dynamic .....so can i get the value in the Action class ?
    is there any trick exists ?
    I will try not to change any jsp code but will do changes in Action class
    Message was edited by:
    Unknown_Citizen

  • How to hide a field based on the value of a field in a different subform - null check doesn't work!

    I'm using Javascript to set the actions. I need to hide a text field if the value of a field in another sub-form is null.
    - tried checking the value of the other field for null - doesn't work
    - tried setting a variable str2 where I know the value of the other field is available then checking that variable when I initialize the text field - doesn't work
    What am I missing?

    Hi.
    Try this in the originating sub form referring to the text field (X). 
    if (this.rawValue = 1)
              X.presence = "visible";
    else if (this.rawValue = null)
              X.presence = "hidden";

  • Need to get the values from "Signed" field from PDF form.

    Hi,
    This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
    Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
    Thanks & Regards
    Dinesh

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • How to read the value of a field belonging to a different context node in GET_I method during runtime

    I want the read the value of a field,'LCSTATUS' belonging to context node 'BTADMINH' in the GET_I method of the field, 'ZZFLD000008' belonging to context node,'ZBTACTIVITYH'.
    In the context node class of context node 'ZBTACTIVITYH',I have created an instance attribute,GR_OWNER type ref to context class.
    I get the following error in the line - lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ).
    'An exception (CX_CRM_CIC_PARAMETER_ERROR) occurred Message no. TPDA430'
    I have used the below code.
    method GET_I_ZZFLD000008.
         DATA: current TYPE REF TO if_bol_bo_property_access,
               lv_act_status TYPE string.
         DATA:lr_entity TYPE REF TO cl_crm_bol_entity,
               lr_current TYPE REF TO if_bol_bo_property_access,
              lr_parent TYPE REF TO cl_crm_bol_entity.
         rv_disabled = 'TRUE'.
         if iterator is bound.
           current = iterator->get_current( ).
         else.
           current = collection_wrapper->get_current( ).
         endif.
    CHECK gr_owner IS BOUND.
    lr_entity ?= gr_owner->btadminh->collection_wrapper->get_current( ).
    CHECK  lr_entity  IS BOUND.
    lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ). "error states that lcstatus can't be used here.
       TRY.
             IF current->is_property_readonly(
                           'ZZFLD000008' ) = abap_false. "#EC NOTEXT
               rv_disabled = 'FALSE'.
             ENDIF.
         CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
               cx_crm_genil_model_error.
           RETURN.
       ENDTRY.
    endmethod.

    Hi,
    LCSTATUS is not an attribute of the BTADMINH structure. It is read using the relation to the status object
    BTADMINH-> BTHeaderStatusSet-> BTStatusHCurrent-> ACT_STATUS.
    Try reading the ACT_STATUS of object BTStatus as given below.
            data: coll   type ref to if_bol_entity_col.
           data: entity type ref to cl_crm_bol_entity,
                         lv_act_status TYPE string.
           entity ?= current.                                                               "BTADMINH entity.
           coll = entity->get_related_entities(
                    iv_relation_name = 'BTHeaderStatusSet' ).    "#EC NOTEXT
           current = coll->get_current( ).
            entity ?= current.
           coll = entity->get_related_entities(
                    iv_relation_name = 'BTStatusHCurrent' ).     "#EC NOTEXT
           current = coll->get_current( ).
            try.
           lv_act_status = current->if_bol_bo_property_access~GET_PROPERTY_AS_STRING(  'ACT_STATUS' ).
             catch cx_crm_cic_parameter_error.
           endtry.
    Regards JP

  • How to print the value of a field of  type FLTP

    hi experts,
    pls tell me how to print the value of a field of  type FLTP. i.e in decimal format not in exponential format.
    thankyou.
    krishna

    Hi ,
    I dont think in Floating point u can able to go for the decimal point display as it is for the minimum precission display..
    Define the variable as the 'packed' type and then u can able to define the decimal point...
    Cheers,
    SImha.

  • The value 4010 39 99 is not allowed for the field MARC-STEUC/BAPI_MARC-CTR

    Hi all,
    BAPI' BAPI_MATERIAL_SAVEDATA' throws error the below error while creating material.
    'The value 4010 39 99 is not allowed for the field MARC-STEUC/BAPI_MARC-CTRL_CODE'
    Any idea abt this error.
    Regards,
    Thiyagu

    Hi,
    As this BAPI is triggered from external sytem that by client in production environment , I would not be able to dig it further.
    Thats why I asked if anybody confronted the same error previously.
    Thanks for suggestion.

  • Holding the value in screen-field

    Dear All,
    I m facing the problem ,while i m putting the value in screen-field and then pressing enter,
    value in that screen-field is becoming null automatically.
    wht shld i do for holding the value even after PAI.
    Thanks in advance.

    Hi,
    You should define a corresponding variable for that screen field in your program.
    data: my_input_field type ... "same name and type as the one used in screen for field
    so when you enter data to that field and press ENTER, the data will be transported to that variable and in PAI you have its value there.
    Regards
    Marcin

  • How to know where the value of a field in an IDoc is saved?

    Hello SAPients!
    I'm working in ECC 6.0. I have an Inbound Idoc of type WPUBON01. In the segment E1WPB01it has a field named BONNUMMER. My question is: How can I know what TABLE-FIELD is being populated with the value of that field? I mean, is there a way to know the mapping of the fields of an IDoc?
    Thank you in advance for your kind help.

    Hi,
    The table name is WPLST
    I did the following..
    Go to the segement structure in SE12..
    Double click on the data element for that corresponding field..
    Then put a where used-list for that data element...To search in tables..
    I got the table WPLST.
    Thanks,
    Naren

  • How to populate the value of 1 field in subtabs.

    Guys,
    Need your help.
    In one of the standard page there are multiple subtabs. So, I have requirement if users enter a value for a field in 1st subtab then the same value should automatically get populated to the second subtab field .
    Please help me in this.
    Is it possible through personalization or we need to extend the CO.
    Standard Page :- /oracle/apps/ap/payments/psr/webui/PsrPG
    This is a form in 11i but in R12 it is OAF page.

    Hi,
    As per my understanding, you have to extend your controller class:
    1) Set PPR event on tab/field
    2) Catch the PPR event in PFR method.
    3) Get handle to AM and then VO and set attributes of the VO of 2nd tab.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to access the value of a field of a field symbol.

    Hello All,
    i need to access the value of a field in a field symbol. But when i am trying to get the value like <FS>-POSNR, it's showing that that the <FS> has no structure.
    In my program, the field itself that i need to check should be dynamic. ie i'll get the field in a variable and i need to find the value of that field.
    Am pasting my code below, please tell me what needs to be done.
    here in my sample code i am moving the entry of the <FS> into a work area structure. But in my actual program, i gets the structure as a parameter. So is there any way i can declare a work area dynamically...
    FUNCTION z_39181_dyn_fs_60758.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(PARAMETER) TYPE  VBELN
    *"  TABLES
    *"      DATA_TAB
      BREAK-POINT.
      FIELD-SYMBOLS <fs> TYPE ANY.
      FIELD-SYMBOLS <fs1> TYPE ANY.
      FIELD-SYMBOLS <fstab> TYPE ANY TABLE.
      DATA name(5) VALUE 'POSNR'.
      FIELD-SYMBOLS <f> TYPE ANY.
      DATA: dref TYPE REF TO data,
            dref1 TYPE REF TO data,
            dref2 TYPE REF TO data.
      DATA: lv_lips TYPE string.
      DATA: lv_lipsfld TYPE string,
                lv_fld TYPE string,
                lw_lips TYPE lips.
                lv_lips = 'LIPS'.
                lv_fld = 'LW_lips-POSNR'.
      CREATE DATA dref1 TYPE (lv_lips).
      CREATE DATA dref TYPE STANDARD TABLE OF (lv_lips).
      CREATE DATA dref2 LIKE LINE OF data_tab.
      ASSIGN dref->* TO <fstab>.
      ASSIGN dref1->* TO <fs>.
    assign dref2->* to <fs
      <fstab> = data_tab[].
      LOOP AT <fstab> INTO <fs>.
        lw_lips = <fs>.
        WRITE lw_lips-vbeln.
        ASSIGN (lv_fld) TO <fs1>.
       write <fs>
      ENDLOOP.
    Helpful answers will be rewarded...

    Use syntax
    ASSIGN COMPONENT name OF STRUCTURE struc TO <fs>.

  • Pass the value for dictionary field that doen't have parameter ID

    Respected Members,
    I have a requirement that i have to call the tcode Va11(inquiry creation) from my program and pass the values for the customer po number and customer po date available in the inquiry creation screen.
    Since whatever require for the first screen of VA11 i can pass the values with using SET parameter ID becoz all the things have the parameter ID .
    Document type ,sales org, dist channel and division are having the parameters ID.
    Now exactly where to put the values for the next screen in the field customer po number and customer po date doesn't have the parameter ID.
    Fields are BSTKD and BSTDK .
    Now  how to pass the values from my module pool program.
    Please give me some solution.
    Suppose i m creating a parameter ID from the program then also it won't get attach to this fields.
    Please give me yours solution as soon as possible.
    Thanks

    hi Manish..
    It the Fields are not assigned with PARAMETER ID then We cannot pass the data using SAP Memory (Set Parameter ID).
    So the Only way u can pass the Data is using
    Enhancements (if they are provided)
    or
    BDC technique.
    Reward if Helpful.

Maybe you are looking for

  • How to get second session in second browser

    I have got an B2B application that has 3 types of users - [System]Admin , Vendor & Clients. In one of the use cases an 'Admin' user can launch a new window [browser] on behalf of client or a vendor and do whatever he wants . All the while, his ie. ad

  • On value request in select-options in a repot URGENT

    Hi all,    my requirement is to provide on value request in select-options in selection screen Gsdpr user one select-option is there For GSDPR User field, provide F4 help. Users list can be selected from ZWF_UPI table where WF_UPI_TYPE is ‘HR’. From

  • Using an WD Component twice within the same Component

    Hi all, our company has made a WD Component for editing business partners. My job is to build a WD Component where two business partners (different roles) are edited within the same window. My idea was to make 2 separate component usages of the Busin

  • 64 MB VRAM?

    I'm confused about something. The MacBook used integrated graphics with 64 MB of SHARED video memory, correct? But when I read the footnote, it says that a MINIMUM of 80 MB of system memory is allocuted. So, does that mean that the chipset has 64 MB

  • How to stop Aperture starting up each time I connect iPod Touch?

    For the life of me I can not find the option to change this setting... and I am sure I have seen it plenty of times when I didn't need it. Can anyone help. Thanks!