Add a form element

Hi everybody
I want to create some text box on my form dependent on selected option from my combobox . what should i do ?

                           //code for populating the array with  the textbox value you want to display
     <script type="text/javascript">
     var desc = new Array(); //this is the array i was talking about
     var index = 1;
          <%
               for(int i = 0; i < moduleDesc.size(); i++){
                    %>
                         desc[index] = '<%= somevalue%>' ;
                         index++;
                    <%                                                  
          %>
     </script>
     //the combobox that call the javascript function showDisplay()
<html:select property="systemModule" styleClass="list_box_common" style="width:180" onchange="showDisplay();"> //this the method called when a value in the combobox is selected
     <html:option value="0">[SELECT]</html:option>
     <html:options collection="<%=somecollection class%>" property="value" labelProperty="label"/>
</html:select></td>
// showDisplay() javascript function
<script>
     function showDisplay(){
               var content = desc[document.forms[0].systemModule.value]; //retrieve the combobox value
          document.forms[0].sysModuleDesc.value = content; // set the text box value
</script>hope u got it
Jubs

Similar Messages

  • How to add a new Element to the Context

    Hello all.
    I created in the wdInit()
    ArrayList datas = new ArrayList();
         for (int i = 0; i < 25; i++) {
              MyData data = new MyData();
              data.setMethods();
              datas.add(data);
         wdContext.nodeMyData().bind(datas);
    Now, I want by clicking on the Button "Create new Element", forward user to the other View, which elements are connected with the same model -> context, the new element should be added to context, the user should fill the form and click Save-Button.
    How can I add a new Element to the Collection I created and choose it as a current element?
    If I do: wdContext.nodeMyData().bind(new MyData()) all information will be lost. And I will have only one field.
    If I do it like this:
    IWDNodeElement dynTabElem=(IWDNodeElement)wdContext.nodeMyData().createElement();
    wdContext.nodeMyData().addElement(dynTabElem);
    I get an error: com.sap.tc.webdynpro.progmodel.context.ContextException: NodeInfo(DataComp.MyData): value node is created without a reference
    Well I can pass to my new View a Collection as a parameter and then
    Collection.add(new MyData()) and then bind it. But I find this solution not good.
    Is there any possibility to get the existing Collection from the Context without passing it to the view?
    Can I just add a new element to the existing collection?
    Thanks in advance.

    Hallo Monalisa,
    I did as you said. But I can't add something to my model class, because it is not collection.
                            MyData data = wdContext.currentBelegElement().modelObject();
                   data.add() ???? - don't work
                   wdContext.nodeMyData().invalidate();

  • Create form elements directly in InDesign and publish them directly to PDF forms.

    It would be great to add form elements directly in InDesign (e.g. on a specific layer) and when publishing the document to PDF automatically exporting them.
    Now the work flow for adding one new field in am existing PDF form is quite complicated:
    Edit the InDesign document (layout and text) in InDesing -> publish the PDF out of InDesign -> add the existing form fields (copy from existing form into new) -> move the fields to the right place (acrobat does not support paste in place!) -> add the new field (name it, place it, etc.) -> save the PDF.
    For our company handling many different forms, with a lot of changes, this process is very error-prone.
    Enabling this process in one application would help a lot. We are currently using CS3. The feature overview of CS4 does not seem to implement this.
    Anyone else suffering here?
    Best regards,
    Michael

    Just incase you don't Adobe make a Windows only app Lifecycle which is a full blown form design app. Real layout tools, real calculation tools, vastly better than Acrobat which is too tedious for forms. If you company does lots of forms I'ld give it a look.
    They have no intention to bring to Mac I gather, as Mac is a designers only domain according to one Adobe Evangelist I spoke to.

  • Very urgent: How to append the form elements to the Querytext

    Hi All,
    Could anyone please guide me thru of how we can pass the Querytext in the serach results page in content server 10gR3. As far as I knew we
    pass thru in submitfrm() function in the resource include query_submit_form_function.
    Am actually trying to customize the search page and search results page and we have several onclick events in the search page.
    When we click on the radio button or checkbox. we were able to see the metadata fields in the dropdownlist and I will select the field name
    matches some value....How we can append the selected values to the QueryText. How can the Querytext build based on the selection of form
    elements.
    Please give me some idea...your help is very much appreciated. Let me know if you have any questions....
    Thanks,
    isha.

    Hey,
    Thanks for the response. I also got the same thought after going through in depth of Search related resource includes...
    I'm not sure of how to do this. Which includes I need to modify. And where exactly I have to write this Onclick event. And where exactly I have to pass this hidden parameters...I knew that we do have to add in Searchform form. However do we need to add the hidden parameters to the standard resource include.
    As far as I knew, submitfrm() is the function which holds of Searchform values and also query_form_init script.
    Could you please guide me through the steps. Which resource incliudes I have to modify/override..
    Thanks a lot for your help.

  • Validating date form element

    Operating system and version: Win 2000
    Macromedia product and version: DW8
    Browser and version: IE7
    Steps to reproduce:
    1) Add a form
    2) Name a text form element named: <%= (iCount &
    ".Qty") %>
    3) Add a button
    4) Add a date validation, or better said .. try to.
    The form element is not listed in the form, form elements
    NEEDS to be named
    as above (<%= (iCount & ".Qty") %>)
    I even tried renaming the element to say 'date', it worked, I
    apply the
    validation and then on the code replace 'date' for '<%=
    (iCount & ".Qty")
    %>', but it doesnt work.
    I am using ASP/VB with MS SQL 2000
    How should I solve this ? I cannot change the name of the
    element and need
    to validate that the element is a date (mm/dd/yyyy).
    Bottom line: While the element is named <%= (iCount &
    ".Qty") %> I
    cannot apply a validation to it, tried several extensions,
    none work.
    Please advice,
    Alejandro

    I want to have control over certain 'dimension type of' columns in the classic report / tabular form with APEX_ITEM.* in the sql for the report while some of the columns are from Collection with their collection column names. C001, C002 etc..
    ...clips
    SELECT
    APEX_ITEM.SELECT_LIST_FROM_LOV(35
    ,C035,'LOV_ANIMALS'
    ,'style="width:50px"','YES',NULL,NULL
    ,'f35_' || LPAD (seq_id, 4, '0'),NULL) animals
    ,to_number(c001) c001
    ,to_number(c002) c002
    FROM apex_collections WHERE collection_name = 'SLEEPY_ANIMAL'
    ...clips
    When there are several columns in the report, it is easier to maintain C001...columns appearance in the Report Attributes-->Column Attributes.
    Oh yes, I have adapted Denes dynamic cascading lov for tabular forms which is the reason for having the "APEX_ITEM..." in the query and from some blog I read that it is very good to toss those 'dimension' type of columns to high-end numbers in the collection, so there will be space for the entry columns.
    E.g. firstrow in the tabular form
    c035 -- animals --> f35 --> f35_0001 (select list with lov LOV_ANIMALS)
    c001 -- "what ever I have said in Column attributes"--> f01 --> f01_0001 (text area, editable column)
    c002 -- "what ever I have said in Column attributes"--> f02 --> f02_0001 (text area, editable column)
    So the numbering is the same for the www-form and collection columns.
    Everything is ok if the columns c001 and c002 are editable e.g. 'text area' type, but if I change c001 to 'Display..' type then the order for item_id's change.
    c035 -- animals --> f35 --> f35_0001
    c001 -- "what ever I have said in Column attributes" (display as text (escape special chars...))
    c002 -- "what ever I have said in Column attributes"--> f01 --> f01_0001
    So now the collection column c002 accidentally is mapped to forms f01-column while I might assume it is f02.
    rgrds Paavo

  • Directing workflow transition based on form element value

    Question 1
    =======
    How can workflow change values in a form element?
    Example: We have an expense aproval form.
    If the form transits from state ManagerA to state Reject, I want the form element Rejected by: to be automaticaly set to value ManageA.
    How ho achieve this?
    Question 2:
    ========
    How can a workflow read a form element and based on the element value automatically transit to other state?
    Example: An expense aproval form is in state ManagerA.
    If a user set the form element Rejected by manually to the value ManagerA, I want the form to be automatically transited from state ManagerA to state Rejected.
    How ho achieve this?

    Originally Posted by dangross
    Answer to question 2 is: Add a transition of type "Transition on Entry Data Value" and configure it accordingly.
    Dangross, thanks for the reply. Yeah, that Transition on Entry Data Value will do the job.

  • Fetching timestamp to datepicker form element

    With the page creation wizard i create a "Form on a Table" or "Form on a Table with Report" and i have problems with timestamp columns of the table: no form element gets created for them. I add manually a Date Picker element, and it works fine for writing on DB (both editing a row or creating a new one); but it doesn't work for fetching, the Date Picker is initially blank when i edit an existing row.
    The Source of the element is defined as:
    Source Used = Always
    Source Type = DB column
    Maintain session state = per session
    Source value or expression = (name of column)
    Post Calculation Computation = blank
    Format Mask = same as Date Picker, also tried blank
    Thanks for any help

    Hello,
    >> The Automatic DML process doesn't work anyway for reading timestamps, so it's not a problem.
    Let’s use the proper terms, so we will not get confused. Automatic Row Processing or Automatic DML refers to after submit processes, while Automated Row Fetch (ARF) refers to the pre-rendering phase. As far as I understand, your problem is with the ARF process, which can’t fetch timestamp. From your first post it seems that the Automatic DML process do write your timestamp into the database table. However, this will only work for items with source type of “Database column”.
    >> I already tried Post Calculation Computation too, but even if the computation generates no error, the element is not changed.
    Did you change the “Source Used” of the item to “Only …”
    >> I think it is always overridden by NLS_DATE_FORMAT, i haven't tried changing it cause i don't have an admin password right now.
    At least for the later versions this is not true. The “Post Calculation Computation” has the final saying about the content (and format) of the field, provided that the “Source Used” of the item is set to “Only …” .
    >> Are you sure Automatic DML process is fully supported for timestamps?
    Yes, I’m pretty sure. As I said, timestamp support was introduced in version 2.2, so it’s not surprising that it’s not being mentioned in the what’s new of version 3.1. Anyway, don’t take my word for it. You can test it yourself on apex.oracle.com (which runs 3.1.2).
    Regards,
    Arie.

  • PDF of InDesign doc displays form elements list when opened

    Saw a thread on this with no answers in the Windows InDesign. I have a file with interactive elements (navigation buttons). When some people open the file in a web browser the top of the page displays a warning message that there are form elements in the document. Is there an easy way to turn these warnings off? I didn't add any form items. Just made some graphics have button actions.

    Saw a thread on this with no answers in the Windows InDesign. I have a file with interactive elements (navigation buttons). When some people open the file in a web browser the top of the page displays a warning message that there are form elements in the document. Is there an easy way to turn these warnings off? I didn't add any form items. Just made some graphics have button actions.

  • Submit event in Interactive Form element

    I have WDA with Interactive Form element.
    I put a code onSubmit event of InteractiveForm element.
    I tried several Submit buttons in Live Cycle Designer:
    type Button with Submit option from Standard library and  type Submit to SAP from Native library.
    None of them generates Submit event
    Ehat kind of special "special Adobe Web Dynpro submit button" the Help is talking about?
    Here is an excerpt from WDA help:
    onSubmit
    Describes the action to be executed when the user selects the Submit pushbutton.
    Note that the submit event is only evaluated when there a submit button is selected
    within the form. "Within" means that the special Adobe Web Dynpro submit button has
    been included in the Adobe Designer.
    Thanks,
    Tatyana

    Hello Siva,
    In Interactive Form ,you can place as much submit buttons as you want.
    You are creating a simple calculator in adobe...Right..?
    For this purpose ,
    1. In Adobe Interactive Form, Go to WebDynproActiveX  field and from this ,select 4 submit buttons in sequence
    2.In Caption property label them as Add, Sub, Mul & Div respectively.
    Reply if these steps work for you.
    Best Regards,
    Shital.

  • Simple calculator in html5 using web form elements

    Hello
    I would like to make an educational miniwebsite with my son who is getting interested in internet programming.
    I was wondering if html5 could be used to do simple math in html5 using the input of web form elements, such as radio button (for the choice of math operation: add/sub/mult/div) and two numbers in input fields.
    Then a submit equivalent would generate the output result, preferrably in a field still on the same page (without going to another page, as it is the case with submit).

    I think that you might be looking for something like this:
    http://www.developerdrive.com/2012/06/creating-a-web-page-calculator-using-the-html5-outpu t-element/

  • How to set a value of a hidden form element

    I want to add a hidden element to form and set the value
    from javascript before calling submit().
    My javascript function
    function getBdSubmit()
    alert('getBdSubmit function called');
    document.forms.DataForm.event.value="getBd";
    document.forms.DataForm.submit();
    The Javascript is called from onChange of a poplist as
    DataForm:getBdSubmit();
    I am getting alert message, but an error in next line as object document.forms.DataForm.event.value is null or note a object.
    How can access the hidden element in form?

    I got a work around. I gave a name to the form in the datapage and set the type to the type specified in the struts-conf.xml file. Then i was able to access the hidden field "event" from the javascript as
    document.forms.DataForm.event.value to set different event names
    Joshy

  • How can I add an HTML Element to a RowSetBrowser

    Hello,
    I am looking for any help on adding a HTML element such as a checkbox to every row that is returned to the RowSetBrowser. I am wanting to have the value on the checkbox be the primary key such as a logid, so that I can have a user select multiple rows, and then create a combined log that will be stored in the database as one record.
    Could anyone please let me know if you can add an HTML element to the RowSetBrowser.
    An answer would be greatly appreciated ASAP. If this cannot be done, I would like to go about it another way.
    Thank You,
    Jason

    The idea is the following:
    First you create a new attribute in the ViewObject, with the following information:
    In the definition of the new attribute, there are three things to consider:
    In the information "Attribute":
    - Name: RowChecked
    - Type: String
    - Selected in Query: Yes
    In the information "Updateable":
    - Updateable: Never
    In the information "Query Column":
    - Alias: RowChecked
    - Expression: '<input type="radio" name="recomendado" value="'||TableName.ColumName||'">Text to show'
    - Queriable: Yes
    Then in the jsp page you use the setDisplayAttributes method where you include the attributes to render, to show this attribute you have created. And if you need pass this information to another page, include a a HTML Form before the RowSetBrowser, and after the bean a button to submit the information and finally close the HTML Form.
    I hope this information can help you.

  • Two HTML in one HTML Form Element Attributes........

    In my HTML Form Element Attributes i already have one *<INPUT readonly name="Customer Code"/>*, then i tried to add another HTML onmouseover="toolTip_enable(event,this,'Customer Code')" , i.e, like this both HTML in one Element Attributes +<INPUT readonly name="Customer Code"/>+ onmouseover="toolTip_enable(event,this,'Customer Code')" but its not working .
    how do i put both HTML in one HTML Form Element Attributes?
    Skud :(

    Hi,
    I think this is duplicate post
    Delete the symbol........
    What you try archive. Form element attributes is not place where you enter HTML. You enter only attributes there like
    onmouseover="toolTip_enable(event,this,'Customer Code')"PS: when posting code wrap it to {noformat}{noformat} tags
    Regards,
    Jari

  • 'Replace pages' not modifying form element positions - is there another way?

    PDF form design in InDesign, bring pdf into Acrobat to add field validation JS. All good.
    Modify form in InDesign, 'Replace pages' in Acrobat to get new design changes in without losing JS. 
    Good, except Acrobat won't bring across any altered positions of form elements, only non-form elements like text and images.
    Adding the JS to the PDF created by InDesign each time the form changes is time consuming.  Tried adding the JS in one go via "Edit All JavaScripts" but Acrobat won't retain. It seems to want each form field's JS added to it individually.
    Is there another way? Thanks.

    Gilad D (try67) wrote:
    That is exactly the point of the Replace Pages command. It replaces the underlying page while maintaining the objects on top of it in their place.
    If you want to insert a page with all of its objects in tact then you should delete the old page and then use the Insert From File command (under Tools - Pages) to add the new pages. I believe that will do what you're looking for.
    The 'Insert From File' I expected would lose any script I've applied to an element previously on the page, which would be totally understandable. I guess the form elements are in a tricky position, being both an intrinsic part of the design (InDesign) and Interactivity (Acrobat).

  • Formatting form elements

    I am working in DW CS3.
    I want to format my form elements - so have added this to my
    page:
    <style type="text/css">
    <!--
    INPUT, TEXTAREA, SELECT, OPTION {
    font-family: Georgia, "MS Serif", "New York", serif;
    padding: 2px;
    color: #000080;
    background-color: #E0FFFF;
    border: inset 1px #708090;
    </style>
    It works fine. But then I add a layer (in design view) - and
    it stops working.
    Can anyone figure out what's going on?
    Thanks,
    - Greg

    Nope. Adding a layer would not be expected to have any effect
    on this.
    By the way -
    http://www.456bereastreet.com/archive/200701/styling_form_controls_with_css_revisited/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "GregInFrance" <[email protected]> wrote in
    message
    news:fb6gal$qsu$[email protected]..
    >I am working in DW CS3.
    >
    > I want to format my form elements - so have added this
    to my page:
    >
    > <style type="text/css">
    > <!--
    > INPUT, TEXTAREA, SELECT, OPTION {
    > font-family: Georgia, "MS Serif", "New York", serif;
    > padding: 2px;
    >
    > color: #000080;
    > background-color: #E0FFFF;
    > border: inset 1px #708090;
    > }
    > </style>
    >
    > It works fine. But then I add a layer (in design view) -
    and it stops
    > working.
    >
    > Can anyone figure out what's going on?
    >
    > Thanks,
    >
    > - Greg
    >

Maybe you are looking for