Submitting form via button click

Hi, i have a following code and it doesnt work and i dont know why
<jsp:useBean id="pageinfo" class="zrna.PageInfo" scope="session"/>
<jsp:setProperty name="pageinfo" property="*"/>
<html>
<head>
<script type="text/javascript">
     function clickEvent(form,md,wrkOn)
          form.mode.value = md;
          form.workingOn.value = wrkOn;
          form.submit();
     function m(form){return true;}
</script>     
</head>
<form action="index.jsp" method=get >
     <input type="hidden" name="mode" value="">
     <input type="hidden" name="workingOn" value="">
     <input type="submit" value="Add" onclick="clickEvent(this.form,'add','Student')">
     <input type="submit" value="Alter" onclick="clickEvent(this.form,'alter','Student')">
     <input type="submit" value="Done" onclick="clickEvent(this.form,'general','')">
</form>          
So im trying to change jsp bean properties of pageinfo thru submiting form and it doesnt work. when button is clicked the page goes blank. What am i missing?

is this page you posted "index.jsp"?
Not sure offhand, but could the form submit before onclick fires? If so, change them to button types, not submit types.
The bean has those named fields? Public get/set methods?
Does useBean have to be this?
<jsp:useBean id="pageinfo" class="zrna.PageInfo" scope="session">
<jsp:setProperty name="pageinfo" property="*"/>
</jsp:useBean>

Similar Messages

  • Hide/show a form upon button click

    Hi
    I want to show/hide different form upon button clicks. Also I want to clear the data from a form upon button clicks. How can I achecive this? Thanks in advance.

    Hi,
    Create one boolean variable in your datastore. Click of the button should set the value to false and you can bind the same variable to the visibility property so that you can hide and display accordingly. For making the values blank, you can put condition on the detault value formula IF(!<your datastore variable>,"",<value needed>)
    Regards,
    Murtuza

  • Open system form on button click

    Hello Expert,
    How to open system form(invetery transfer from) on button click
    Regards,
    Abhinav Lalpurwala

    Hi Abhinav
    Try This.....
    'In Button pressed event
       sbo_application.ActivateMenuItem("3080") 'For Inventory Transfer form
    Thanks
    Shafi

  • Opening system form on button click

    I have a user button on Sales Opportunity form.
    On click of button, I want to open the respective Sales Quotation form.
    The sales quotation for the corresponding docnum should be opened. DocNum is defined at the Stages tab on Sales Opportunity form.
    Please provide the solution ASAP.

    Hi,
    I think your discussion should be posted at SDK forum. Please repost in,
    SAP Business One SDK
    Thanks & Regards,
    Nagarajan

  • Addeventlistener via button click ?

    Hello, is it possible to add an eventlistener via a button click ?
    eg.
    <mx:Button  click="myObejct.addEventListener(MouseEvent.CLICK, myFunction(event))"/>
    This does not work for me, but I think it should be possible with a bit of fine-tuning ?
    thanks for any help.

    Yes you can
    <mx:Button  click="myObejct.addEventListener(MouseEvent.CLICK, myFunction)"

  • Submitting Forms via Email

    I have created an order form in LiveCycle that i wish to post on my website. I want my customers to be able to open the form directly from the site, fill it in, click submit, and for their form to be emailed directly back to me. I have tried a couple of different forms, however, when the customers click the submit button, nothing is ever sent, it will only ever try to save the document elsewhere, and this is not practical for my customers. I am convinced that i have set the form up correctly, and distributed it correctly in Adobe Acrobat, but it still does not work.
    Any help would be highly appreciated!!
    CraigM

    Unfortunately, I think that the only data structure you can get with Designer is XML. If you recast the form in Acrobat (form tools are under the TOOLS menu, not the FORMS menu (this one takes you to Designer), you should be able to select HTML as an output data format. The only reason that would be important is if you collected the data in cgimail or formmail. An example of HTML for a web form is given at "http://www.computing.vt.edu/internet_and_web/web_publishing/webmasters_toolkit/web_form_ma iler/quickstart.html". Yes, this is HTML, but you can do the same thing by including the hidden fields in a PDF form and submitting to the formmail server. You can not use this one as it only works for folks at VT, but it provides an example. You can check with your ISP provider to see if there is such a form service available to you.
    As sample form return from a HTML submit is as follows (from a different server than the VT.EDU one above):
    =======================================================
    Below is the result of your feedback form.  It was submitted by
    ([email protected]) on Thursday, July 29, 2004 at 21:31:37
    http://www.server???.net/ordsubmit.html
    Order:
    Name:    Home C. Name
    Address:    555 5th St
    City:    Anywhere, State  99999
    Phone:    (xxx) yyy-yyyy
    E-Mail:    [email protected]
    Subject:    Order Request
    Payment:    Credit
    Comment:
    Order Items:
    #    Code    Color    Size    Quantity    Cost    Item
    0    1311    white    king    5    35.00    Big_Foot_athletic_socks
    1    401    white    6X    3    42.00    Players_two-pack_briefs
    SubTotal:        77.00
    Tax:        3.47
    Shipping:        8.00
    Total:        88.47
    =======================================================
    If this suffices, then submitting your form as HTML data with the hidden fields will do the job.
    If that is not adequate, then at least just submit the data to you by e-mail (that will do for 80-90% of the time) while you work out how to submit to a web server. The XML or FDF files can be imported to the form file, giving you the same result as if the full form had been sent (and no extended rights are needed). With a little programming skill, or with the form, you can insert the data from the form to a database file (sorry, I have not done it, just know you can).
    I suggest you try to work things out in steps until you reach the final solution needed. Bill

  • Error message received submitting form via email - "Acrobat cannot connect to the server"

    Some of my users are unable to submit form data.  The forms are set up to be submitted via email and only a few of the users are effected.  They have installed the latest versions of both Acrobat and Adobe Reader.
    "Acrobat cannot connect to the server, but will automatically submit your form once the server is online.  You can check tracker for the status of this submission."
    "You have already submitted the data on this form and it is waiting to be sent.  Further changes are not allowed until the prior data is sent."
    I know that this question has been asked before, but there has not been a response.  This is very frustrating.
    Thanks for any help or sugesstions.

    I have this exact same error, but also have not yet found a workaround.
    Only sporatic users get the error, and I've been unable to duplicate it from my machine.  I am on Adobe Reader v 10.1.2.
    Actually I can get around the error if I were to downgrade to Adobe v9, but that is a bandaid fix - not really a secure answer.

  • Submit PDF via Button Click into Email

    event.target.submitForm({cURL:"mailto:[email protected]" + "?subject=" + subjectext + "&body=" + bodytext + "&cc=" + ccemail address ,cSubmitAs:"PDF",cCharset:"utf-8"});
    cURL:"mailto:"
    can also write cURL:"mailto:" + variable   (i.e.= field containing email address)
    "?subject" = not sure what this means. Seems to be some sort of signal the subject is coming next
    subjectext = variable containing text you want for the subject of the email
    "&body" = not sure what this means. Seems to be some sort of signal the body text is coming next.
    subjectext = variable containing text you want for the body of the email i.e. var bodytext = "\n" + "\n" + "Thank you for........"
    "&cc=" not sure what this means. Seems to be some sort of signal the carbon copy email address is coming next.
    ccemail address = variable containing email address you want to send the email to as a cc
    cSubmitAs:"PDF" = option to send as differing formats
    cCharset:"utf-8" = unsure
    From the Book:
    Creating Dynamic Forms with Adobe® LiveCycle® Designer
    For this to work, one of the following must be true:
    Your form fillers must have Acrobat.
    Your form must be Reader extended.
    // put the code in the click event of a regular button var mail; var address = email.rawValue; //email is a text field var sub = subject.rawValue;  mail = "mailto: " + address + "?subject=" + sub; event.target.submitForm({ cURL: mail, bEmpty: true, cSubmitAs: "PDF", cCharset: "utf-8" });
    The submitForm function takes the following four parameters.
    The email address and subject
    A Boolean true to imply that all fields are posted
    The attachment file format (XML, XDP, or PDF)
    The character encoding
    Hope this helps the next person searching for this info.

    Thank you.  I finally got it to work!
    Sarah T. Love
    Grants & Contracts Director
    California Pacific Medical Center Research Institute
    475 Brannan Street, Suite 220
    San Francisco, CA   94107
    415-601-2555 cell phone
    415-600-1702 phone
    415-600-1681 fax
    Website:  http://www.cpmc.org/professionals/research/grants/index.html

  • Show form on button click

    Hello, I am using JDeveloper 11.1.2.3.0
    I have one button and one form on my jsf page. I want the form to be rendered when I click the button (to be visible). How can this be done in ADF?
    Thank you

    No offence, but have you read the post? I shows exactly your use case. OK, the title and the content is more about creating page variables. If you store the flag to hide/show the panel at a different place this is OK, still the actions you need to do are the same.
    Timo

  • How to Dispose/Remove/Clear/Delete Rectangleshape created on Form by button click

    Hi Guys,
    I have a windows form where there are few textboxses and buttons.
    One of the button when clicked creates few rectangles to depict sort of design(its working)
    Now my problem is that I want to clear the form for the user to enter again.
    I am able to clear textbox but I am not able to remove the rectangles made.
    Could anyone suggest how to do it?
    I have tried searching for the example but could not find any.
    I have not used paint to draw my drawing so any graphic related answer wont work it seems.
    I found this but it is giving error :Unable to cast object of type 'System.Windows.Forms.Button' to type 'Microsoft.VisualBasic.PowerPacks.RectangleShape'"
    CType(sender, PowerPacks.RectangleShape).Dispose()
    what should I do?
    Thanks in Advance!
    Mak

    Hi Guys,
    I was able to find out how to remove the all the rectangles which I created
    If we just use this
    Invalidate()
    It will clear the entire surface of the control.
    But......
    The problem is how to remove specific Rectangles!
    Still looking for answers!!, all ideas welcome!
    Cheers
    Mak
    Hello,
    You could define that control variable outside that method, and hide them by setting its parent to nothing.
    Here is a simple sample.
    Imports Microsoft.VisualBasic.PowerPacks
    Public Class Form1
    Dim canvas As New ShapeContainer
    Dim Rect1 As New RectangleShape
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    canvas.Parent = Me
    Rect1.Parent = canvas
    Rect1.Size = New System.Drawing.Size(140, 140)
    Rect1.Location = New System.Drawing.Point(2, 2)
    Rect1.BackStyle = BackStyle.Opaque
    Rect1.BackColor = Color.White
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    canvas.Parent = Nothing
    End Sub
    End Class
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to set a column value in a tabular form via button

    Hi All,
    I am using Apex 3.0.1. And to create the form I am using the APEX interface tool
    I have tabular updateable report. In the same page I have a LOV field where I can choose some possible results.
    I want to have a button so I can select a value in the LOV, take this value and populate the column value to the LOV value for all rows in the tabular form.
    The LOV and the buttons are done.. to update the column I tried creating a pl/sql that is executed when the button is pressed and has the following update in a loop for each element:
    begin
    for i in 1..APEX_APPLICATION.g_f01.count loop
    APEX_APPLICATION.G_F02(i) := :P1_MY_LOV_VALUE;
    end loop;
    commit;
    end;
    When I press the button, the page refreshes but nothing happens. I don't see any changes in the Values for the column I am trying to update
    Thanks

    Hi user477501,
    If you are doing this after a SUBMIT, then try updating your data table instead of the g_f02 array. When you page is re-rendered, it should re-query your data table.
    If you do not want to submit the page, then try your hand at JavaScript.
    A good reference for this is Mike Hichwa's article at:
    http://www.oracle.com/technology/oramag/oracle/06-nov/o66browser.html
    Be sure to download the example application, it is very helpful.
    I hope this helps.
    Patrick

  • Call smart form on button click

    Hi Experts,
    I have a screen. In screen a button is available. I need when i clicked on button my smartform should be open. Plz provide me ur appreciated solution.
    Regards,
    Swapniks

    Hi Swapnika,
    You forgot a small code in between.
    data: v_formname type tdsfname value 'zmem',
    v_fmname type rs381_fname
    Case sy-ucomm.
    when 'okbut'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    FORMNAME = v_formname
    IMPORTING
    FM_NAME = v_fname
    call function v_fname.
    exporting
    pernr = itab-pernr.
    tables
    itab = itab.
    Regards,
    Prakash Pandey

  • I have a series of forms which I access from one master form via buttons

    The question is I want my master form to stay live when I open a form from the pressed button At the moment the main form closes when the next form is called, how can I open the called form in a new window?

    Thanks  for the reply  not what I really want
    I have seen a popup box which gives me a choice to set a value of
    open in current window
    open in new window
    open in user defined window
    but I don't seem to be able to find how to recreate it

  • Naming of PDF when submitting form via email...

    Is there a way to name the pdf that gets attached to the email when using the submit by email button? currently it seems to assign a random selection of characters as the name of the pdf.

    Please see following thread:
    http://forums.adobe.com/message/4450906

  • Open Dialog box on button click using Visual Webpart

    Hi,
    I am trying to create New Item,Edit Item & Delete Item button in Visual web part.On clicking on the button it should open the corresponding custom form on dialogue box.I don't want to create any button in the ribbon.I just want to create UI page for
    all buttons and also corresponding input forms on button click in Visual web part.
    Is it possible through visual web part?
    I will be needing your initial guidance to achieve this.
    Please help.
    Thank you.

    Hi,
    According to your post, my understanding is that you want to open modal dialog in a visual web part.
    To open a modal dialog, there are multiple ways, such as using JavaScript.
    However, for your scenario, you should register the script from the C# code, there are some articles for this topic, you can refer to them.
    http://www.ashokraja.me/articles/How-to-Programmatically-Show-or-Hide-a-Modal-Popup-Dialog-with-Server-Side-Code-in-Share-Point-2013
    http://blogs.perficient.com/microsoft/2012/01/sharepoint-2010-closing-a-modaldialog-manually-from-code-c-and-javascript/
    More reference:
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • Financial Statement Version output in ECC 6.0

    Hello to all, I have two systems. ECC 5.0 and ECC 6.0. When i run and output the FSV in ECC 5.0, i get the following output, FSV Item      Text for B/S P&L Item            Total of reporting period 00001          XXX071 FIXED ASSETS-OLD          1124

  • How to trigger payment in advance

    Hello SAP Gurus, We have a number of large real estate rental contracts that we pay every month, and the process calls for us to make physical payments(physical check)by the 1st of every month. That means the check need to be in the property owners h

  • Can any one tell me what is JSF and where  why is it used

    hi can any one give me a brief introduction on JSF and where and why is it used.. if there is any good tutorial/documentation pls give me the links sanjay

  • Walkman app sign in loop

    My walkman app is working fine but when a track is playing I see the message, Signing in - Please Wait. It shows then goes off, then appears and off again. Has a continuous loop and only way to stop it is to press the HOME button.

  • I can't activate iMessage on my iPod, because of "Network problems" but my internet is working perfectly.

    I can't activate iMessage on my iPod [5], it keeps popping:"Could not sign in. Please check your network connection and try again." But my WiFi is working perfecty, I used Safari, Twitter, Facebook and other Apps that need internet in my iPod and the