Two Forms

Hope you all had a lovely xmas!
I have a quick question. I am using two forms;
Form A
<h:form id="formA">
     <h:outputLabel for="tel" value="Telephone">
      </h:outputLabel>
         <h:inputText id="tel" value="#{bean.tel}" required="true"  label="Telephone" size="20" maxlength="30">
</h:inputText>
Form B
<h:form id="formB">
     <h:outputLabel for="tel" value="Telephone">
      </h:outputLabel>
         <h:inputText id="tel" value="#{bean.tel}" required="true"  label="Telephone" size="20" maxlength="30">
<h:commandButton value="Submit" action="submit"/>
</h:inputText>My question is, is it possible to use the submit button on FormB to submit both forms?

That's two requests. You'll have to let the one form open in a new window. You can use the target attribute for that. Then just submit it using Javascript.
That can result in bad user experience though. Why can't you use one form for that?

Similar Messages

  • How to get HttpServletRequest parameters from two forms in a JSP

    I have this JSP with two forms calling the same servlet. Problem is, when I use a submit button in the second form, I am unable to retrieve the request parameters from the form through the servlet. I am wondering if anybody could give me some info on how to get the request parameters from the second form. I tried to see all the parameter names in the request by calling request.getParameterNames(). But the parameters in the second form are not even seen in the request although I am clicking the submit button in this form!

    First, two forms works fine in one jsp so no need to argue about that.
    Second, did you put the form actions and type ("multipart/formdata " ?) explicit in every form header ? Did you supply different form names ?
    Try to call the submit function through javascript - document.forms[0].submit() for your first, and document.forms[1].submit() for your second form...
    Did you forget to close the form tag by chance ?

  • How can I share data between two forms on different lists

    Using a custom content type, I created two lists that I want to share the same data - one is a calendar.  Our employees complete a form from the "Out of Office Request" list that has workflow functionality that sends an email to that person's
    manager.  If the manager approves the request, the item automatically populates the "Out of Office Calendar."  The problem is that the only information from the request list that populates the calendar is the Title field and date/time fields. 
    I need the manager name in order to create a view for each manager.  
    How can I connect the other information in the request list to the calendar list.  It seems to me that if the title and date fields carry over the information, there should be a way to connect the other information.  I'm using Designer.
    I've tried to connect the two lists' webparts with the wizard, but when I get to the page that maps the two lists, there are no column names and the "Next >" button is grayed out.  This seems like the logical place to connect the two lists,
    but it isn't working.

    Hi,
    According to your post, my understanding is that you wanted share data between two forms on different lists.
    To show external  information on the calendar event, there are two methods: Calculated column, workflow. You can refer to:
    A Simple Guide to Show More Information on a Calendar Event
    I recommend to use workflow to achieve what you want. But you need to create a people column to display the manager.
    You can create a workflow associated to the "Out of Office Request" list, add action to Start Approve Process. If the manager approves the request, you can create a item in the calendar, and then update the people column and the title column.
    Then the calendar will display the Title, date/time and the manager.
    To create a view for each manager, you need to modify the Filter. You can use the people column is equal to the manager name or the Title contains the manager name.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Two forms on same page..save state of one form while submitting other.

    Hi....
    I have 2 form on same page....
    first is form on table....
    nd another is tabular form.....
    now if I make an entry in both table ,,,,and after entering data in tabular form if click on submit button of tabular for the data of tabular form get submitted,,but the data I have been enter in first form get erased.....
    now my question is how can I save state of my first form even after clicking on submit button...........
    pls,help.

    Hi Shirish,
    in your scenario you can write manual process for one form in your both forms, using this way you can achieve you functionality.
    do the above and for that manual process keep the button name as your second form button means, for two forms saving with only one button.
    i am not sure in this, but you can try something.
    Thanks
    Chandran
    Edited by: Chandran on Nov 28, 2011 2:21 AM

  • How to submit two forms once  in one jsp page?

    hello all,
    My jsp page includes two forms: one form's action is a File Upload servlet, which process file uploading; another is a general servlet to collect user inputs, such as user name, age, etc.
    Because the file upload servlet is a legacy component, and it was used in many applications. we could not meger it into our business components.
    the system requires the file upload and information collection are submitted once. so we have to submit two forms in one 'Submit' action, at the same time, the information collection servlet need get the information from file upload servlet, such as the uploaded file's url.
    I have tried two methods, but all failed
    1. Upload form has no a 'Submit' button, when user click the 'submit' button of the information collection form, we use a javascript to submit upload form first, then submit information collection form. Failed at: the second submit dose wait for upload finishing, then the second submit interrupt the upload
    2. the javascript only submit upload form, and set HTML body's onUnload event to another javascript that submit information collection form. this time, the file upload sucess, and information collection form sucess at most time. But fail when user click the 'refresh' or 'back' or any navigator buttons of the browser. these action will trigger the page 'unload' event too, but the submit if invalid!
    Please tell me how to.

    chain the both requests!
    - build one mutlitpart request and send it to a servlet that can handle that multipart request (think of using oreilly MultiPartParser).
    - check the input (all requiered fields and files there)
    - if yes store the user fields and create a socket connection from your servlet to the legacy file upload servlet and post the file this way.
    - like this you have full control over the users input and can make sure the file and the fields are just save if all requiered elements are availble.

  • Trying to join two forms in application express

    i imported the timesheet package on OTN & like i understand it's a colllection so certain things won't be found in the db or in the tables because some things are in memory,
    but i need to create another form on the same page as the timesheet form but the two forms should somehow be joined so when i select the next button it should take both of the two forms info to the next page, how do i get that right?

    Apex Collection is a table like any other. It is accessed using a package since it contains session related data. To see how to work with collections, you may want to have a look at this example:
    http://apex.oracle.com/pls/otn/f?p=31517:30
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Two forms that update differrent tables on the same page?

    I tried to add two forms that update different tables on to one page.
    Problem is when I do that the forms gives me an error saying the field does not exist. It's like it is trying to update one table with the other tables fields.
    As an example Say I have one forms that is for people table and another one that is the Jobs table.
    When I go to update the people table, it sends the data for the jobs fields too I get an error like the field job description does not exist.
    I have two different forms for these and everything.
    I would hope it is possible to have two forms that update different tables on the same page.

    I was trying the exact same thing, but i managed to work round it by setting the steps to hide one region, so the user would enter the form see one region submit the region then direct back to the same page with the different region visible and the original hidden.
    I don't know if this would be acceptable for you...

  • Struts : Validating two forms in a single page , on a single submit

    In my JSP page, i have two forms, with modifiable feilds. I'm using submit button of the 2nd form to submit both forms (ie. <form action="someAction2.do" onsubmit="return firstForm.submit();"> )
    Two forms have different actions which is specified in structs-config.xml. Validation(server-side) is done using validation.xml file.On success/failure, both these actions are mapped to the same (input) JSP page.
    Problem is that, validation errors in second form only is displayed. This is because, as soon as 1st form returns validation errors, the second form gets submitted. How can i specify that 2nd form should be submitted only if the 1st form doesnot return any validation errors. I know its possible using javascript at client side, but i want this validation on server-side.
    Can any one please help me out. Thanks

    Off hand I dont know the answer to your question. But since no one answered your question, here are my 2 cents worth:
    I suggest all your JSP pages have one and only one form tag. Re write your JSP page. Make sure all your variables your submitting have unique names. (no duplicate names). As far as I know, having multiple forms on a JSP page is not normallly done and makes it difficult to alter by another programmer after you leave the company.

  • How an i compare the two forms ( script) that are in two systems ?

    Hi,
    How can I compare the two forms(sap script)  which are in different versions  or systems? One form is in D22 and other form is P22 .
    My requirement is to change the form when they are different.
    Thanks,
    Suresh.

    Hi,
    You can download the form info for each script and compare these two files.
    In the SAPscript choose Utilities -> Form info and save this as a file.  As they are structured in the same format you can then look for differences in these files rather than having to look through the form window by window.
    Regards,
    Nick

  • How to use same collection on two forms

    Hi ,
    My issue scenerio is--
    I have two forms one is calling form other is call form. User will go to calling form and press button to open call form. In call form user will select some records. That records i want to store in collection. then user will close call form , and on calling form i want to use those collection values.
    For this i did some coding like
    I created a type in database , then I created a record type in which i stored selected records information. I can see that values have been properly stored in collection till i exit call form.
    Once i am back on calling form it becomes null.
    Please help..
    Regards,
    Kuldeep

    *Before posting on this forum please read*
    >
    I can see that values have been properly stored in collection till i exit call form.
    Once i am back on calling form it becomes null.Hi,
    Do you perform commit_form or commit when/before exit call form ?
    Hope this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • Creating Two forms

    I created two forms in Screen painter and I'm stock with the code behind in VB.NET. I don't how to call the 2nd form.
    My 1st form is for my Main and in this form it has a button save. I want that when I press Save the 2nd form will show. How can I do that?
    Thank you.

    Well since you have your two SRF Files, you can try this code...
    oXmlDoc = New Xml.XmlDocument
    oXmlDoc.Load(sStartUpPath & sSRFFilename)
    Dim creationPackage As SAPbouiCOM.FormCreationParams
    creationPackage = gkSap.mwuiApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
    creationPackage.XmlData = oXmlDoc.InnerXml
    ReturnForm= gkSap.mwuiApp.Forms.AddEx(creationPackage)
    ReturnForm.Visible = True
    You basicly load the XML File to the creation package und the set it to visible. All the load functions are an
    other story. Hope this helps.
    Greetz

  • How to pass Parameters between two forms

    im trying to do this but i could not find any way for this.
    can any one help me how can i pass parameters between two forms
    in forms4.5. any help will be appreciated
    thanks.
    null

    Global variables can be used, but you can do what the online help
    says ...
    Parameters are passed to called forms by means of a parameter
    list. A parameter list is a named programmatic construct that is
    simply a list of parameter names (called keys) and their values.
    You can pass parameter values to forms invoked by the built-in
    subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
    can pass parameter values to other Oracle tools with the
    RUN_PRODUCT procedure.
    A parameter you include in a parameter list can be either a text
    parameter or a data parameter. The parameter type determines how
    its value is interpreted.
    Text Parameters The value of a text parameter being passed to a
    called product is a CHAR string that can represent the following:
    n a user-defined form parameter defined in a form invoked
    by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
    n a command line or user-defined parameter for a product
    invoked with the RUN_PRODUCT built-in subprogram
    Data Parameters The value of a data parameter being passed to a
    called product is always the name of a record group defined in
    the current form. (A record group is a data structure that
    stores records derived from a query or through programmatic
    assignment.) Data parameters are used to pass data to products
    invoked with the RUN_PRODUCT built-in subprogram. You cannot
    pass data parameters to forms.
    The following table shows the structure of a parameter list that
    contains four parameters:
    Key Paramtype Value
    CITY Text_Parameter 'BOGOTA'
    CATEGORY Text_Parameter 'EXPORTS'
    MULTIPLIER Text_Parameter '.0275'
    NEW_DATA Data_Parameter 'RECORD_GROUP8'
    arun reddy (guest) wrote:
    : im trying to do this but i could not find any way for this.
    : can any one help me how can i pass parameters between two forms
    : in forms4.5. any help will be appreciated
    : thanks.
    null

  • Two form actions

    hello again. i did a search and found a thread where someone
    else asked if it was possible to have two form actions, but the
    person who responded didn't say it was impossible, just that they
    didn't need to.
    i think i need to have two actions, unless someone can tell
    me how to tell my formmail to also send the results to an ASP form
    processor on a different website.
    basically, my company started using a web-based lead
    management program, and they want the results to go there as well
    as the emails we get now. the website uses ASP to process the form,
    and they provide the url you need to post to, plus hidden fields
    you have to put in the form that tell it which account to post to.
    it seems like the easiest solution would be to have two
    actions on the form, but so far that doesn't appear to be possible,
    and i'm just wondering if anyone has done it before and can tell me
    how it's done.
    thanks!

    Would it be out of consideration to hire someone to do this
    for you?
    If not, then you would have to modify the formmail script to
    POST the form's
    data, including the additional values required, to the data
    processing
    script. On reflection, I'm not quite sure what would be the
    best way to do
    that - perhaps use the incoming POSTed data to populate form
    fields and then
    submit the populated form onload.
    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
    ==================
    "n h c" <[email protected]> wrote in message
    news:f4kc9k$dpv$[email protected]..
    > i'm sorry, i should have elaborated a little more.
    >
    > we currently use a formmail.php (the one from
    www.boaddrink.com), and i
    > can
    > definitely edit that (except i don't know enough php to
    figure this out on
    > my
    > own, obviously). but we recently started using a
    web-based lead management
    > program called Top Producer, and that's where the asp
    comes in. we want to
    > keep
    > receiving the email results as we do now, but we also
    want the results to
    > go to
    > Top Producer. so yes, the ideal solution would be to
    tell the formmail.php
    > to
    > also send the results to the Top Producer form
    processor.
    >
    > the url they give for the action is:
    > https://www.topproduceronline.com/LeadToolkit.asp, and
    we also have to add
    > some
    > hidden fields to the form that tell the asp which
    account to post the
    > results
    > to.
    >
    > i hope that helps you understand what i'm trying to do.
    if i need to post
    > anymore info, just let me know. i really appreciate the
    help!
    >

  • Problem with editing two forms

    Hello!
    I have two reports and two forms on these reports. The reports actually contain the columns of one table separated in two groups(Report1=group1(column 1-5 for example) and Report2=group2(column 6-10 for example)). So when i select Edit on a row of Report1 i go to Form1 and see the data to be edited of Form1 of row1 for example. I would like to go to Form2(i have a tab for this) and see the same row(row1) to be edited with the columns of Report2.I hope that i am clear enough.
    Thanx in advance for any answers.

    If you're using the Automatic Row Processing (DML) process, there is a box named "Return Key Into Item" which can return the current key (ID) to a designated (hidden) item. You can then this item's value passing to the next page.
    Ittichai

  • Open two Forms  Connecting Two different Data bases simultaneously.

    i am facing a problem for opening two forms in two different SAPB1 applications where it is connecting into two different databases.please send me a solution for this problem.

    Hi Hareen,
    What is your goal to design a form for connecting 2 databases in the same time?
    Thanks,
    Gordon

  • Open two Forms  Connecting Two different Data bases

    In The Same Company Two Different Places Open Same SAPB1 Application Connecting with Two different DataBases,Open both two forms same time.

    Hi Mai,
    you can always open multiple forms in a company.so if you want to open one form from Database 1 and Database 2 , then its okay. If  I did not answer your question correctly, then kindly explain your question in a more detailed way.
    Regards,
    Darius Gragasin

Maybe you are looking for

  • Remote desktop connection caused host to lose a monitor and other settings

    Hello After a successful remote desktop login, on the host I can now no longer detect the 2nd monitor. Screen resolution on remaining monitor is off, it's gone over to use Microsoft Basic Display Adapter even though it was using the correct adapter p

  • Saveing ABAP Program taking too long time

    Hi All, I am facing an issue related to saving, activating and deleting any ABAP program, dictionary, screen etc.. When I am creating, saving, activating and deleting any Z dictionary object, any program,  system goes in infinite action and program i

  • Install Errors

    All, I am performing a silent install of Oracle 10g r2 and noticed in my install log file two errors. Error: Cannot add user to application access ACL No mapping between account names & security IDs was done. (534) Error: Cannot add user to applicati

  • RFC Error: Unable to create Metadata connection for Dictionary Provider

    I configured two RFC ('WD_XXX__MODELDATA_DEST and WD_XXX_RFC_METADATA_DEST). I tested it and it shown green light. When I run my application that coonnect to CRM using RFC, I got the following errors: <i>com.sap.tc.webdynpro.services.exceptions.TypeN

  • CRM webUI not login intp EPR system

    Dear expert when use WebUI and through this try to login in ECC system I can not login into ecc server ,after searching documents found that  required SSO ( single Sing On ) between both server, How can I create SSO please guide also note that our bo