How to change values in the form?

Hi guys,
I am working on a small JSP project. I have a form in a page. It has several textboxes getting inputs from the user. In the JSP code, I want to change the value of the textbox based on the some condition in the JSP code:
<form ... action="the same page">
<input type="text name="theTextBox" value="" ...>
<%
if (javaObject.changeTextMethod() == true)
//I want to change the value of the textbox to something else here, I can't say theTextBox.value="whatever"
%>
If I create a form again, I have to write the same code many times. Is there anyway that I can reuse the form code and just change the values of the textbox?
Thanks in advance!
~Ji

Hi,
Thanks!
But when I try javascript. It seems in JSP code, the javacript function cannot be seen.
<SCRIPT language=javascript>
function change()
     tBoxName.value="newValue";
</SCRIPT>
<%
if (condtion == true)
change(); // The error is: change() is not defined.
%>
Also, if the textbox is insice <form> </form>, in javascript function, the textbox cannot be seen either. Would you please tell me how exactly to use javascript in this situation? Thanks a lot!
~Ji

Similar Messages

  • How To dynamically change values in custom form

    Hi,
    Requirement is to change values in custom form dynamically that are passed by Global variables through standard form .
    I have used forms personalization to call custom form and passing some parameters to custom form using global variables.
    Now i have to change values displayed in custom form(already opened) when user moves from one record to another record.
    I cannot change the standard form.Only i have write logic in custom form that dynamically changes values as user moves from one record to another in standard form.
    Global variables values will be different for each record.
    Pls let me know how i can achieve this.
    Regards
    Udit

    Udit,
    Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
    Craig...

  • How to hide save changes alert window when no changes made to the form

    hi,
    in my form when i close the form without making any changes it displays do you want to save the changes alert.how to hide this alert when no changes are made to the form window.
    regards
    Yesukannan

    Be advised that this solution will also exit the form without saving the changes and asking anything if the user did make changes.
    You're probably changing some field from a PL/SQL trigger (hint: post-query or when-new-record-instance are likely). If you set the value of a field from a trigger or program unit that also marks the record as changed for Forms. Forms will then ask to save the changes when exiting the form.
    If you want to prevent this, reset the record status after you change the field in the PL/SQL code.

  • How to catch an event when the user change values in the project information dialog

    hi,
    i would like to know how to catch an event in my C# code when the user change values in the project information dialog?
    taskChange doesn't catch these changes.
    thanks.
    Thanks, Sharon.

    You need to write save button event handler for project information dialog. Link is having same functionality described. 
    http://blogs.msdn.com/b/husainzgh/archive/2011/08/01/hooking-into-the-project-detail-page-ribbon-save-button-without-overriding-out-of-box-functionality-in-project-web-access-for-project-server-2010.aspx
    http://www.projectserver2010blog.com/2010/01/sharepoint-2010-webpart-client-server.html
    kirtesh

  • HT1438 dont i have to submit a slip before giving back in my ipod for fixing? what do i do? how do i fill in the form?

    how do i fill in the form to give back my ipod and get a new one? whats the website i go to and what do i type in? can i change the color of my ipod from black to white?

    Follow the instructions here:
    Apple - Support - iPod - Service FAQ
    I do not think you can change the color but you can ask.

  • How to enter values in the fields of standard SAP Infotype e.g. IT0024

    Hi,
    How to enter values in the fields of standard SAP Infotype?
    e.g. I want to enter values in infotype IT0024(Qualifications) in the field AUSPR(Profincy):-
    1-Level 1
    2-Level 2
    3-Level 3
    4-Level 4
    5-Level 5
    Thanks,
    Ameet

    Hi Divya,
    I checked with the screen and report which is mentioned by you. But I want to modify/make changes that should appear in the screen when you view details for a particualar employee in Qualifications(IT0024).
    Please refer the screen 2000 of module pool MP002400 in SE80. In that screen I want to make change as listbox with key.
    Can it be achieved in the same way as mentioned by you before by making standard SAP report as Z and then modify using layout editor?
    Please help me out. I think I am almost there.
    Thanks,
    Ameet

  • How to set values to the structure containing a node with cardinality 0..n

    Hello.
    I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
    <xsd:complexType name="Field">
       <xsd:sequence>
          <xsd:element name="fieldCode" type="xsd:string"></xsd:element>
          <xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
       </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Fields">
       <xsd:sequence>
          <xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
       </xsd:sequence>
    </xsd:complexType>
    I  need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
    Best regards,
    Timur Semenchuk

    Hi Marcus,
    If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
    Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
    IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
    wdContext.nodeYourNode().addElement(yourNodeElem);
    Hope this explains a bit!
    Best,
    Robin van het Hof

  • Reflecting changes after closing the form..

    Hi all
    I have a procedure
    in that procedure i have used go_block
    i want to call the procedure when the user is exiting
    let me give u a senario
    scene 1)
    the user is inserting a record after the insertion that procedure is to be called to adjust the values on the form.
    after the user enters the values for the new record and clicks save button it works fine
    i have called the procedure in key-commit
    scene 2)
    the user enters a new record and instead of clicking save closes the form
    oracle asks if the user wants to save the changes
    the user clicks yes
    the record is saved
    but the procedure does not fire as the code is written in key comit
    and hence when the user opens the form the next time the changes are not reflected.
    to overcome this i have tried writing the procedure in pre-commit,post_form_commit but it seems that because there is go_block in the procedure it says illegal rescricted procedure go_block in the triger.
    i also tried using the times
    but the timer wont fire as i am closing the form..
    please can any one help me in this situation ..
    thanks
    mandar

    Hello,
    Write your code in a stored unit, then call it from the KEY-COMMIT and KEY-EXIT trigger.
    Francois

  • How to change value of ${eol} from \n to \r\n, writing by File Adapter

    Hi All,
    How to change value of ${eol} from \n to \r\n, while writing file through File Adapter.
    As my file is being created in Linux environment, so for new line separater, \n is used. I mounted this file directory to windows System.
    As Windows requires \r\n for new line seperator. So I need to change value of ${eol} in the Schema created for file writing.
    Can any one provide help regarding this.
    Thanks in advance

    Hi,
    When an XML payload is written to a file \n would be used as the default line separator regardless of if its windows or linux, as per the XML specification http://www.w3.org/TR/REC-xml/#sec-line-ends.
    As such, one need not worry about the line separators because, the XML file would eventually be processed by a parser which usually would be able to understand both line endings (as they are whitespace characters as far as the parser is concerned).
    If you want to convert the line terminators (for readability etc), 10.1.3.4 has a new feature - in the XML schema definition for the file adapter payload, add these two top level directives to the schema element:
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:normalizeLineTerminators="false"
    Regards,
    Shanmu.

  • Get the timestamp value in the form of array of 8 bytes, whileretrieving da

    3) How we can get the timestamp value in the form of array of 8 bytes, while retrieving the data?
    4.) How we can pass the 8 byte array to stored procedure? What will the data type of the parameter?

    duplicate post:
    timestamp value in the form of array of 8 bytes

  • Timestamp value in the form of array of 8 bytes

    1) How we can get the timestamp value in the form of array of 8 bytes, while retrieving the data?
    2) How we can pass the 8 byte array to stored procedure? What will the data type of the parameter?

    1). using to_char
    SQL> select to_char(systimestamp, 'ddmmyyyy') from dual ;
    TO_CHAR(
    10052006
    SQL>2). as varchar2, and use to_timestamp to convert to timestamp:
    SQL> select to_timestamp('10052006', 'ddmmyyyy') from dual ;
    TO_TIMESTAMP('10052006','DDMMYYYY')
    10-MAY-06 12.00.00.000000000 AM
    SQL>

  • Entering values in the form

    Hi All,
    I am entering some values in the form.
    Is this possible to track that i am entering some values in the form.
    How can i identify that?
    Any other built-ins are there to identify that i am keying in some values in my form.
    I cant use Form_status,Block_status and Record Status.
    All of the items are Control Item.
    Can you pls guide me in this.

    create a when-validate-item trigger on form level like this
    begin
    if
      name_in ( :system.trigger_item ) is not null
    then
      :global.data_entered := 'Y';
    end if;
    end;to check, if data has been entered write a trigger:
    begin
    default_value ( 'N', 'global.data_entered' );
    if
      :global.data_entered = 'Y'
    then
      the_things_you_want_to_do...;
    end if;
    end;

  • How to pass value between two forms.

    Hi all,
    how to pass value between two forms(using :parameter),...
    Thanks
    Rajesh

    To use parameters, create a parameterlist with the named parameters
    DECLARE
      pl_id PARAMLIST;
      pl_name VARCHAR2(10) := 'tempdata';
    BEGIN
      pl_id := Get_Parameter_List(pl_name);
      IF not Id_Null(pl_id) THEN
        DESTROY_PARAMETER_LIST(pl_id);
      END IF;
      pl_id := Create_Parameter_List(pl_name);
      ADD_PARAMETER (pl_id,'MYPARAMETER',TEXT_PARAMETER,:BLOCK.VALUE);      
      CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE, NO_QUERY_ONLY, pl_id);
    END;In the new form you can then just access the parameters via :PARAMETER.MYPARAMETER;
    An alternative is the usage of globals:
    :GLOBAL.MYPARAM:=:BLOCK.VALUE;
    -- call the emp-form
    CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE);and in the new form use:
    DEFAULT_VALUE(NULL, 'GLOBAL.MYPARAM');
    IF :GLOBAL.MYPARAM IS NOT NULL THEN
    ...The advantage of gloabls is that they can also return values back to the calling form, which is not possible using parameters

  • How to prepopulate value in process form

    Hi,
    I want to pre populate values in forms while updating the data.Test case provided below.
    1. create a user with five roles(all are lookup values) .
    2.While updting I want to see existing lookup values in process form.
    3.I can update it and save it.

    My requiremrnt is after creating user I have few field selected. While user is requesing for midifying resource , user want to see the selected values on the form.For the same I may need to customize existing jsp's.I want to know what is the process for achieving the same.

  • How to change password in the default realm programtically?

    Hello,
    Does any one have experience in how to change password in the default realm programtically in WebLogic 8.1?
    Thanks.
    Bimal Patel

    Hi again;
    Please also check previous thread about same question:
    Forum Password
    Change password on forum
    How to change the password of the site/forum ?
    Re: change password for this forum
    I belive you can find answer in those thread more easly ;)
    Regard
    Helios

Maybe you are looking for

  • Exception not caught in BPM

    Hi all, I am doing a scenario using BPM.In which I called SAP and several webservices synchronously.I also define Fault messages in the abstract synchronous message inetrface and used those message interface  to send message synchronously to SAP and

  • Line Up Clips for a Multi-clip Edit

    Hi I am editing a dance video, when it was recorded at the event a few of the camera people decided to pause after every song - this has made it a hassle to edit. I am trying to line up the clips to get them all in sync for a multi-clip. The only way

  • I HAVE PURCHASED DDL PACK BUT CANNOT DOWLOAD IT???? URGENT AND VERY AN

    Are you guys trying to cheat my money? I have painstakingly decided to?Purchase YOUR Dolby Digital Li've pack for my X-Fi card. After making a COMPLETE Transatction and receiving the activation key, I click download but NO I END UP WITH A DEAD LINK.

  • Dataguard problem

    I have a dataguard installation with one physical standby database on 10g rel 2. While testing switchover with some scripts something went wrong and the standby database is reporting beeing in SWITCHOVER LATENTstate. Anyone know how to make this a pr

  • Emailing numbers files from safari browser

    When sign on to my mac account from Safari, I can't attach numbers files for emailing. Do you think it is due to the extension (more than 3 characters)? Any solutions? I think I can email a numbers file using the mac mail client but I am not always a