Detect button click in a form

Hi,
I'm building a page flow which includes the following code:
<form action="timeDetailAction.do">
<netui:button type="submit" value="|<< First"/>
<netui:button type="submit" value="<< Previous"/>
<netui:button type="submit" value="Next >>"/>
<netui:button type="submit" value="Last >>|"/>
<netui:button type="submit" value="New"/>
<netui:button type="submit" value="Update"/>
<netui:button type="submit" value="Delete"/>
<netui:button type="submit" value="Cancel"/>
</form>
As I cannot add a name to the button, how in the action method can I know which button is pressed?
Thanks,

have a distinct action for each button
netui:button type="submit" action="toFirst" value="|<< First"/>

Similar Messages

  • Detecting Button Click from outside of Flash

    Hello everyone,
    I was wondering if it is possible to detect a Flash Button
    Click for outside of the Flash enviroment.
    Thank you for your help.
    Khoramdin

    Khoramdin wrote:
    > Hello everyone,
    >
    > I was wondering if it is possible to detect a Flash
    Button Click for outside of the Flash enviroment.
    >
    > Thank you for your help.
    >
    > Khoramdin
    Where would that button be ?
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How to get list information on custom ribbon button click in list forms(Editform/Dispform)?

    Hello All,
    I have custom ribbon button on editform/dispform in my list. I want to display current list name on button click of this custom ribbon button. How to achieve it??
    Thanks in advance..!!

    Hey,
    Did you ever tried this variables?
    Anyways variable _spPageContextInfo.pageListId' works for me. It will give list GUID on listforms.
    <CommandUIHandler Command="EditFormButtonCommand" CommandAction="javascript:window.open(L_Menu_BaseUrl + '/_layouts/incitemkt/downloadallattachments.aspx?ID=' + {ItemId} + '&amp;source=' + _spPageContextInfo.pageListId);" />
    Thanks.

  • On button click of Infopath forms select multi select list box values...

    Hi,
    We have multi select list box on one of the info path forms. We have placed on button on this form. If user clicks on this button we want to select some of the values in Multi select list box (check box).
    Is it possible if yes how can we achieve it?
    Thanks.
    Regards,
    Amit Chhatbar

    Hi Amit,
    From your description, you would like to check items in a multi-selection box when a button is clicked.
    I’d recommend you make use of rules in InfoPath form, i.e. when button is clicked, then set a field’s value.
    However, if you are using multi-selection box, then you could only set the value of one item at a time. If you want to select several items at once, then we could use code. For more information:
    http://www.bizsupportonline.net/blog/2009/07/understanding-multiple-selection-list-box-infopath/
    http://www.bizsupportonline.net/infopath2007/programmatically-select-all-items-multi-select-list-box.htm
    If you are using several check boxes to replace multi-selection box, then it will be more easy. The rule could be that when this button is clicked, set a field’s value (check box field) to true and repeat it.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Single form Multiple Actions based on button click

    Hi,
    I have to call two different actions based on button click from single <form > .
    How to achive this?.
    Thank you

    Hi,
    I am using struts <html:form> and my code is as follows
    <script language="javascript">
              function setAction(val){
         if(val==A){
                   window.open(document.forms[0].action="preview.do");
         }else if(val==B){
         document.forms[0].action="create.do";
              document.getElementById('fcreate').submit();
    </script>
    <html:form action="/create.do" >
    <html:text property="name">
    </html:form>
    action is mandatory for <html:form>
    Its not sending the form elements, when I click the preview button.
    Create button works fine. In struts-conig, I have taken same form name for create and preview actions
    Please give me some tips
    Thank you

  • Very Urgent! Print Report output to local printer on button click in form

    In Sales Order Form there is a print receipt button. In current situation On Clicking the 'Print Receipt Button' it submits a XML Publisher report(PDF output) to the concurrent manager. Currently to print that report i need to go view--> requests--> view output and then print. According to my new Requirement i need to print that report directly to local printer on one simple Print receipt button click in form.
    I am trying to call the printers on server using custom.pll. The report is running successfully but it is not printing output to the local printer. I need to print the report to the local printers based on responsibility. Local printers are available on apps server. Can anyone help me on this issue ASAP.
    Is it possible to print the document using custom.pll? Is there any other alternative to print the report on simple button click in form.
    Environment: Apps 11.5.10.2, Forms 6i
    Here is the code that i am using in my custom.pll.
    if (v_form_name = 'OEXOETEL' --and v_block_name = 'LINES_SUMMARY'
         and name_in('parameter.ACTIONS') = 'PAYMENT_RECEIPT' )THEN
    l_organization_id := Name_In('PARAMETER.OE_ORGANIZATION_ID');
    l_order_header_id := Name_In('ORDER.header_id');
    select to_number(oe_sys_parameters.value ('SET_OF_BOOKS_ID')) into l_sob_id from dual;
    xml_layout := FND_REQUEST.ADD_LAYOUT('XXAFP','XXAFPOEXPMTRCRTF','en','US','PDF');
    select a.profile_option_value
    into v_printer_name     
    from fnd_profile_option_values a
    , fnd_profile_options b
    , fnd_profile_options_tl c
    , fnd_user fu
    where a.profile_option_id = b.profile_option_id
    and c.profile_option_name = b.profile_option_name
    and fu.user_id (+) = a.level_value
    and c.language = 'US'
    and c.user_profile_option_name='Printer'
    and a.level_id = 10003 ;
    if (FND_SUBMIT.SET_PRINT_OPTIONS(v_printer_name, 'Portrait', 2, TRUE, 'N'))
         then
    l_new_request_id := FND_REQUEST.SUBMIT_REQUEST('XXAFP','XXAFPOEXPMTRC',
    null,null,FALSE,l_sob_id,l_organization_id,NULL,NULL,l_order_header_id,
    chr(0), '', '', '', '', '', '', '', '', '', '',
    end if;
    fnd_message.set_string('Request Submitted for Custom Payment Receipt. Request ID is '||l_new_request_id);
    fnd_message.show;
    copy('NULL','parameter.ACTIONS');
    IF (l_new_request_id = 0) THEN
    FND_MESSAGE.RETRIEVE;
    FND_MESSAGE.ERROR;
    else
    l_commit_result := APP_FORM.QuietCommit;
    END IF;
    I need to complete this requirement immediately. Can anyone suggest me better ways in doing this.
    Thanks,
    Srinivas

    I solved this problem myself using shell script through custom.pll. I wrote shellscript and called that shellscript through FND_REQUEST.SUBMIT_REQUEST.It printed 2 copies to local printer.

  • How to use the SSO functionality when a button is clicked in Adobe Form?

    I have an offline interactive form - when the user clicks on a SUBMIT to SAP button, it asks for user id and password.
    However he user does not have a password to log into SAP directly - he will be logging in via Single Sign On.
    Can you please advise on how to achive this functionality?
    1. Click on a SUBMIT to SAP button on the Adobe Form
    2. Take this info and get the Single Sign On token from SAP portal
    3. Use this ticket/token and log into SAP ECC or validate this info within SAP ( for this 3rd step - probably use function module SUSR_CHECK_LOGON_DATA?)
    Thanks

    Hi
      I think you want to know the row number, in this case , what i would suggest is , in the action ,there is a parameter WDEVENT , which gives you the complete row where you clicked.
    In WDEVENT , you have GET_CONTEXT_ELEMENT method as well as GET_DATA method to fetch the data and it doesnt require any lead selection.
    Thanks
    Anzy

  • Download the PDF Form as a attachment when button click in BSP application

    Hi All,
    I have scenario, when button click in the BSP application PDF Form want to download in the IE (like one window open with Open,Save and cancel button).
    I have written this code:
    data: pdf type fpformoutput-pdf.
    < Logic for populate value to pdf field ....
    .>
    response->set_header_field(
                         name  = 'cache-control'
                         value = 'max-age=0' ).
      response->set_header_field(
                         name  = 'content-disposition'
                         value = 'attachment; filename=webforms.pdf' ).
      response->set_data( data   = pdf ).
    Once button is clicked pop up is opened and closed automatically because of browser or adobe reader issue.
    How can I resolve this problem ?
    In the IE i need to change any settings ?
    IE version = 7.0
    Adobe reader = 9.0
    I have tried in the same code with IE = 6.0 and adobe reader 8.1.2 its getting download the pdf form working fine.
    The same think i want in IE 7.0 and adobe reader 9.0, what needs to be done ?
    Regards,
    Boopathi M

    Hello Ravi,
    Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
    Best regards,
    Thomas

  • Is it possible to create a standard form that can be emailed to anyone and once filled out by the receiver, have a button that the receiver clicks and the form is encrypted and attached an email back to the sender and a preset admin password would open it

    Is it possible to create a standard form that can be emailed to anyone and once filled out by the receiver, have a button that the receiver clicks and the form is encrypted and attached to an email back to the sender and a preset admin password would open it?

    Hello Graphicsguy123,
    You would need to first create the form ( or Widget in EchoSign) first to generate a url which you can paste it in the email being sent to customers. You would need to make sure you have a Document Cloud Enterprise Premium account in order to create a Widget. If you don't have the account, you can use the trial version to test it. Here is the link:
    Global Trial Registration | eSign services from Adobe
    -Rijul

  • On button click to fill out form on same page as report

    Hi,
    I have a report that contains a name that I want to pass in to a field in a form on a different region on the same page.
    My button located on the report is has its own column called ADD_LINK. Here is the button. <button id="apexir_btn_ADD" class="apexir-button" type="button" value="Add" onclick=""><span>Add</span></button>
    Once that button is clicked, I have the form region fade in. The region is called Add Tag to Employee, which has P4_ROWID, P4_EMPLOYEE_ID, and P4_TAG_ID.
    Once the region is displayed, I want the #NAME# to show in the P4_EMPLOYEE_ID.
    I did copy this form from another page, where I had it working before. It made more sense to move it to this page for interface purposes, so maybe that tidbit will help as well.
    If anyone has an answer to that, awesome. I am new so thanks for the help.
    Thank you.
    Jeremy

    Similar to that, except I have a button on the right-most column that I want to use. There is a button for each row, and I want that to send the name on that row into the form, so it is very similar. Also the region I am sending it to is hidden until the button is clicked, which I created a dynamic action to show it on click.
    ID Name Skills Add_Link Delete_Link
    1 Jeremy Java [Add] [Del]
    That's what 1 row of data would look like..
    So when the [Add] button is clicked the Employee_Add form should update the P4_Employee_ID with the name corresponding with the button on that row.
    Edit: It turns out that since my form item P4_Employee_ID was a popup LOV so when I changed it to a Display Only, it seems to have worked.
    Now I am just having trouble getting this form on the same page to submit the data, by clicking Create on the form. The name is showing, but then I select a Skill and then Create, and it doesn't update my table.
    It is probably because I am not getting a rowID in my form, but I am not sure.
    Thanks
    Jeremy

  • 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

  • How to run report on Button Click in Forms 9i

    Hi ,
    I want to run a report , when I press button on form
    it is RDF file . I have complied it and create a REP File .
    I has also set the report path in registry / HKEY_LOCAL_MACHINE/ SOFTWARE /ORACLE/ HOME1
    And then i has written these command line on Button click
    Declare
         pl_id           ParamList;
         al_id Alert;
         al_button     Number;
         M_RepFile     Varchar2(80);
    Begin
         pl_id := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('tmpdata');
    Run_Product(REPORTS,'sitereport', SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
    Show_Window('MAIN');
    End;
    Message('Now Closing');Message('Now Closing');
    But only message at last is showing . No report being open .

    Look at this one
    Re: Run Report10g  Through form 10g

  • Invoking another form from a button click..

    Hi,...
    I am a beginner in Java Swing Programming using the Netbeans IDE.I want to invoke a form from an existing form thru a button click; thnx...
    Code:
    1st form : NewJFrame.java
    public class NewJFrame extends javax.swing.JFrame {
    /** Creates new form NewJFrame */
    public NewJFrame() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jButton1 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jButton1.setText("jButton1");
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(151, 151, 151)
    .addComponent(jButton1)
    .addContainerGap(176, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(130, 130, 130)
    .addComponent(jButton1)
    .addContainerGap(147, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new NewJFrame().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    // End of variables declaration
    2nd Form:
    public class NewJFrame1 extends javax.swing.JFrame {
    /** Creates new form NewJFrame1 */
    public NewJFrame1() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 400, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 300, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new NewJFrame1().setVisible(true);
    }

    shelton141 wrote:
    using the Netbeans IDE.I want to invoke a form from an existing form thru a button clickNote that, instead of JFrame, we normally use JDialog (either a modal or a non modal) for secondary windows.
    We can add an actionPerformed event to the jButton1 in design mode, or manually like this:
    public NewJFrame() {
        initComponents();
        jButton1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                new NewJFrame1().setVisible(true);
    }

  • Show image on the form Java WS gets image. Call this WS on button click

    Hi,
    Is there a way to show an image on the form. On the form I have along with the data I have a button that when clicked get and show the image itself on the form. I have a Java WebService that gets the image from the remote location. How can I make the button click event to call this Web Service and show the image on the form itself. Any help is appreciated.
    Thanks

    WHiteSox, are you on client/server or web version.
    which version of forms are you using.
    something i can think of is.
    during the click to call the webservice, copy the image to the local system.
    next step is, using READ_IMAGE_FILE built in which reads the image from the local file system and displayed on the forms image item.

  • 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

Maybe you are looking for