Button catches the Event only on the second click

Hi Experts,
I am new to adobe forms and facing a very strange problem. I have 2 buttons on my interactive form "SUBMIT" & "APPROVE" , now the problem is whenever i load my application(Webdynpro ABAP) for the first time and click any of the 2 buttons the event
ONSUBMIT of the ui element Interactive form is not caught(control doesnt reach the event) , but when i click any of these buttons from  the second time the control reaches the breakpoint successfully.
I donot understand where i am going wrong , is there some java script that needs to be written in the initialise event of the buttons to make them trigger the event from the first click itself.
Thanks In Advance,
Chaitanya.

Hi Chintan,
Thanks for your replies, there wasnt any specific reason for using check field buttons was just experimenting with the component.
Script in the Click event for button 1:
// DO NOT MODIFY THE CODE BEYOND THIS POINT - 802.20071213024549.437972.422152 - SubmitToSAP.xfo
                      ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                      // END OF DO NOT MODIFY
Script in the Click event for button 2:(i am setting a flag when it is clicked)
                    var ref3 = xfa.resolveNode("xfa.record.APPROVE");
                    var ref2 = xfa.resolveNode("xfa.record.APPROVE").value;
                       ref3.value = "X";
                      // DO NOT MODIFY THE CODE BEYOND THIS POINT - 802.20071213024549.437972.422152 - CheckFields.xfo
                      ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                      // END OF DO NOT MODIFY
Version of ALD : 8.1
Adobe Reader :  8.
Should there be some code written in the initialize event of the button ?
Thank you for your help so far,
Chaitanya.

Similar Messages

  • I was making a movie on iMovie, and was trying to use the green screen to make a split screen. I pressed on the green screen button, but the second clip didn't play next to the first, and only the audio played.

    I was making a movie on iMovie, and was trying to use the green screen to make a split screen. I pressed on the green screen button, but the second clip didn't play next to the first, and only the audio played. I tried again with some different clips and some worked and some didn't. This hasn't happened before. What should I do? (I am using iMovie '09)

    No guarantess but try smc and pram resets,

  • Button action only from the second click on

    Hello, everybody!
    I´m facing a weird problem on my application. I have a button that
    takes action only from the second click on. My vi has several buttons,
    all of them have the same type, and all of them work properly(since the
    first click) except one.
    I gave up a few minutes ago...any ideas?
    Thank you,
    Luanna

    Hi
    Well this sounds quite strange. The best way to help you is to comment your vi. I think a picture is not enough, as we have to see the behaviour.
    So - is it possible for you to post the vi here?
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Is it possible to add a button to the right-click context menu for a user in Outlook 2010 using VBA?

    I've tried many things and read up quite a bit but I cannot figure this out.
    I cannot create an add-in so I have to use VBA.
    I want to add a a button to the right-click context menu when I right-click on a user. Is this possible?

    Hello,
    Yes, it is possible to customize the context menu in Outlook. See
    Customizing Context Menus in Office 2010 for more information.
    But VBA doesn't allow to customize the Fluent UI in Outlook, you need to develop an add-in instead.

  • 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

  • When I import my photos from my iPhone 4S into iPhoto the location does not appear.  I have to open the info button on the photo click "photo place" then "find on map" and then the location appears.  How to I get the location to appear automatically?

    When I import my photos from my iPhone 4S into iPhoto the location does not appear.  I have to open the info button on the photo click "photo place" then "find on map" and then the location appears. How to I get the location to appear automatically when I import my photos from my iPhone?

    in your iPhoto preferences is look up location set to "automaticaly"?
    LN

  • GridBagLayout  adding extra buttons on the second row

    Here is a classic example of GridBagLayout taken from javadoc. I wonder is there a way I can have "Button6b", "Button6c" and "Button7" added to the same row as "Button6" and "Button6a"?
    import java.awt.Button;
    import java.awt.Font;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.WindowConstants;
    public class ButtonsExample extends JPanel {
        protected void makebutton(String name, GridBagLayout gridbag, GridBagConstraints c) {
            Button button = new Button(name);
            gridbag.setConstraints(button, c);
            add(button);
        public void init() {
            GridBagLayout gridbag = new GridBagLayout();
            GridBagConstraints c = new GridBagConstraints();
            setFont(new Font("SansSerif", Font.PLAIN, 14));
            setLayout(gridbag);
            c.fill = GridBagConstraints.BOTH;
            c.weightx = 1.0;
            makebutton("Button1", gridbag, c);
            makebutton("Button2", gridbag, c);
            makebutton("Button3", gridbag, c);
            c.gridwidth = GridBagConstraints.REMAINDER; // end row
            makebutton("Button4", gridbag, c);
            c.weightx = 1.0;
            c.gridwidth = GridBagConstraints.RELATIVE; // next-to-last in row
            makebutton("Button6", gridbag, c);
            makebutton("Button6a", gridbag, c);
            makebutton("Button6b", gridbag, c); // I'd like this
            makebutton("Button6c", gridbag, c); // and this
            c.gridwidth = GridBagConstraints.REMAINDER; // end row
            makebutton("Button7", gridbag, c); // and this button to appear on one row
        public static void main(String args[]) {
            JFrame f = new JFrame("GridBag Layout Example");
            f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
            ButtonsExample ex1 = new ButtonsExample();
            ex1.init();
            f.add("Center", ex1);
            f.pack();
            f.setSize(f.getPreferredSize());
            f.setVisible(true);
    }

    Welcome to our community, Kristi
    As for why we aren't able to add buttons to Question Slides,
    only the Captivate developers know the answer. Perhaps there is a
    technical issue involved.
    About the only thing I can think of would be to insert an
    image of the buttons in a disabled state. At least that may provide
    some consistency for you.
    Cheers... Rick

  • Is there any way of removing the browser buttons from the right click menu?

    Recently when I right-click on a web page, there are browser buttons (forward, backward, refresh, bookmarks) on the right-click menu for some inexplicable reason. I mean, its kind of absurd that anyone would put browser buttons there, considering the real browser buttons literally right there at the top of the window, and I guess that kinda bugs me.
    Anyway, how did I get rid of them? There doesn't seem to be any way to do so in the customize window, and I've been looking for an add-on but don't really know what to search for. Does anyone know?
    Where did those come from anyway? They weren't there a week ago, and I'm pretty sure these things don't normally just pop up out of nowhere. If nobody knows, its really not important. The important thing is getting rid of them. Thanks!

    That was a new feature in Firefox 32, which was released back in September. Use this UserStyle to get rid of those buttons and restore the text menu items.
    https://userstyles.org/styles/104945/fx-32-context-menu-full-text
    ''You'll need the Stylish extension to be able to install UserStyles.''
    https://addons.mozilla.org/en-US/firefox/addon/stylish/

  • Add several buttons on the Right Click

    With this method adds a button to click with the right button. But I can not add more than one. How do I? Ja tenet of ways and all failed.
    SAPbouiCOM.MenuCreationParams oCreationPackage = null;
                        oCreationPackage = ((SAPbouiCOM.MenuCreationParams)(SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)));
                        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING;
                        oCreationPackage.UniqueID = "OnlyOnRC";
                        //oCreationPackage.String = "Only On Right Click";
                        oCreationPackage.String = "Adicionar";
                        oCreationPackage.Enabled = true;
                        oMenuItem = SBO_Application.Menus.Item("1280"); // Data'
                        oMenus = oMenuItem.SubMenus;
                        oMenus.AddEx(oCreationPackage);

    SAPbouiCOM.MenuCreationParams oCreationPackage = null;
    oCreationPackage = ((SAPbouiCOM.MenuCreationParams)(SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)));
    oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING;
    oCreationPackage.UniqueID = "OnlyOnRC";
    //oCreationPackage.String = "Only On Right Click";
    oCreationPackage.String = "Adicionar";
    oCreationPackage.Enabled = true;
    oMenuItem = SBO_Application.Menus.Item("1280"); // Data'
    oMenus = oMenuItem.SubMenus;
    oMenus.AddEx(oCreationPackage);
    oCreationPackage = null;
    oCreationPackage = ((SAPbouiCOM.MenuCreationParams)(SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)));
    oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING;
    oCreationPackage.UniqueID = "OnlyOnRC2";
    //oCreationPackage.String = "Only On Right Click Menu 2";
    oCreationPackage.String = "Adicionar2";
    oCreationPackage.Enabled = true;
    oMenuItem = SBO_Application.Menus.Item("1280"); // Data'
    oMenus = oMenuItem.SubMenus;
    oMenus.AddEx(oCreationPackage);

  • Xorg 1.12: middle click only works on second click

    I am having this weird issue since the Xorg upgrade. I need to click the middle mouse button twice before it will paste what's in the buffer, or before it will close any windows (I set tint2 to close a window when clicked upon with the middle-mouse button). Anyone experiencing similar behaviour?

    No such issue here on three different sets of hardware.  Sorry, not much help.
    Can you try another mouse for a different datapoint?
    Last edited by Trilby (2012-03-20 02:27:37)

  • Need to show popup when the Submit button is clicked for the second time ..

    Hi guys,
    I have a requirement where i need to show a popup or alert when the submit button is clicked twice . When it is clicked for the first time one method is been called and its process starts. When the user clicks the submit button for the second time they should be shown a popup stating "Submit button already been clicked, please clicked OK to continue".
    Can anyone help with this please , its really urgent requirement ?
    Thanks in advance

    Hi,
    I dont have any sample code to give you now. For quick reference, I can advice some psuedo steps to achieve your requirement. I dont have access to JDEV to test this. If any syntax errors then pls correct yourself.
    1. Extend Controller since it is standard page ( Refer Anil Passi site for steps to extend seeded ontroller)
    2. Write below logic in your Process Request method
    super.processRequest(oaPageContext, oaWebBean);
    pageContext.putSessionValue("status", "notInitiated");
    3. Include below logic in your PFR method
    if(pageContext.getSessionValue("status")!=null){
    if("notInitiated".equals(pageContext.getSessionValue("status")))
    super.processFormRequest(oapagecontext, oawebbean);
    pageContext.putSessionValue("status", "initiated");
    else
    String message = "Display error message as required";
    throw new OAException(message, OAException.ERROR);
    You may need to import required packages ( Related to OAException).
    Remeber, to sumbit the request, user need to refresh the page again so that "status" variable will be refreshed.
    Hope it helps.
    Thanks
    venkat

  • How to handle the 'folder button' in the path command throug Event loop ?

    Hi everybody.
    Again a stupid question but I can't find the answer.
    My VI has a dynamic event loop, to execute the right code depending on user action.
    Everything is working well but now I wish to do the following :
    I use a 'path command' with the path entry (like for text) and the folder button.
     the user click on the path entry     ->   something A happens.
     the user click on the folder button  ->   something B happens.
    As the folder button and the path entry are the same command, how to differenciate those two events in the event structure ?
    Maybe there is a value in the node, but I can't find it ...
    Thanks for helping !

    You can't do exactly what you are wanting to do. The problem is that you can't trigger an action based on clicking the browse button. To implement that you will need to hide the browse button that LV creates and put down a button of your own that you can then track and respond to independently.
    Mike...
    PS: what is it exactly that you are trying to accomplish?
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • ALV OOP- Catching the event when the user clicks a cell

    Hi Experts,
    i have 2 alvs to display using custom containers, now the problem is that i need to make some lines uneditable and some lines editable. On making this i find that ALV does not offer this functionality of selective editable rows, right? I offered a workaround by just popping an error message if a user clicks a row which suppose to be disabled/uneditable. My problem is that how can i catch the single click event in ALV using OOP?
    Thanks to replies and points will be given...

    hi,
    hope this helps.
    creating Editable Cells in ALV
    Making a column editable in ALV:
    IT_FIELDCAT is an internal table which has the structure of the data to be displayed. Each row in this internal table creates a column in ALV. The fieldcat structure has an optional field u2018EDITu2019 which is not required to be passed all the time. By default the column is non-editable. If the value of the field EDIT is u2018Xu2019, that column becomes editable in the display.
    Example:
      wa_fieldcat-fieldname = 'CHECK'.
      wa_fieldcat-edit      = 'X'.
      wa_fieldcat-coltext   = 'Delete'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
    The column DELETE in the ALV display is editable. The corresponding output internal table field name is CHECK.
    Making individual cells editable or non-editable:
    1.     Include an internal table of type lvc_t_styl in the output internal table (as a field) of the ALV. This inner table is like other output fields of the internal table.
    Example:
    TYPES: BEGIN OF tt_project,
                check TYPE c,
                status(132) TYPE c,
                it_styletab TYPE lvc_t_styl.       
    TYPES: END OF tt_project.
    2.     This inner internal table controls the style of each cell in the row of the output internal table.
    3.     Same like other fields of the output internal table, this style table (inner internal table) should be filled for each row of the table.
    4.     The structure of the output internal table.
    CHECK     STATUS     IT_STYLETAB
    X     ABC     Fieldname     Style
    CHECK     Non-editable(MC_STYLE_DISABLED)
    STATUS     editable(MC_STYLE_ENABLED)
         CDF     Fieldname     Style
         Non-editable(MC_STYLE_DISABLED)
          wa_stylerow-fieldname = u2018CHECKu2019. -
    > Optional
          wa_stylerow-style =  cl_gui_alv_grid=>mc_style_disabled. (Non-editable)
          or
          wa_stylerow-style =  cl_gui_alv_grid=>mc_style_enabled.  (Editable)
          Append wa_stylerow to wa_project-it_styletab.
         Wa_stylerow is a work area for IT_STYLETAB.
           Wa_project is work area for output internal table.
    5.     Refresh the inner internal table for each row in outer internal table.
    6.     If the fieldname is not provided for the style internal table, the entire row becomes editable or non-editable.
    7.     This provides the ability to enable input for a cell dynamically.
    8.     The layout of the ALV Grid should also be changed in order to achieve this. The layout has a parameter, u2018STYLENAMEu2019. The name of the style internal table should be given as the value for this field. The layout should be passed in SET_TABLE_FOR_FIRST_DISPLAY.
         Example:
         wa_layout-stylefname = 'IT_STYLETAB'.
    reward if useful.
    regards
    srishti

  • Adding a button to the toolbar

    I am having some trouble with a custom toolbar button. I add the button in a Reader plug-in with no problems:
    > //Create a AVIcon object
    > AVIcon myIcon = (AVCursor)LoadBitmap(gHINSTANCE, MAKEINTRESOURCE(Save_BMP));
    > //Create a new button
    > AVToolButton MyButton = AVToolButtonNew (ASAtomFromString("Test"), myIcon, FALSE, FALSE);
    AVToolButtonSetHelpText(MyButton, "Test tooltip");
    > //Retrieve the File toolbar
    > const char * toolbarName= "File";
    > AVToolBar ToolBar = AVAppGetToolBarByName(toolbarName);
    > //Attach the button
    > AVToolBarAddButton(ToolBar, MyButton, FALSE, NULL);
    However, if a user has customized the toolbar eg. with e-mail and search buttons, my custom button only shows up in the first instance of Reader. If the user opens a second PDF document, the button is not visible in the new Reader window.
    I have tried removing the button and adding it again, but this results in two buttons in the first instance and a single button in the second instance.
    Should I add the button in another way to solve this? Using a javascript file perhaps? I have experimented with a trusted function in a .js file, but I could not figure it out - nor find a fitting example.

    Hi,
    1. create GUI status with "Status" name and "Short text"
    2. Now a screen will appear with the following,
       a. Menu Bar
       b. Application tool bar
       c. Function keys
    3. Click the down arrow near the application toolbar
    4. Enter the function code like SAVE, EXIT, etc., You 
       can also give ur own meaningful naming convention .
       For example ( ZTEST)
    5. Now press enter, it will ask for "Static text" or "Dynamic Text". Choose Static text and press enter
    6. Now it will ask for function text and Icon name. Specify some function text ( what it does ) and Icon name u want to attach.
    7. Press enter. It will ask for function keys. Specify a function key and press enter.
    8. Now u can handle this function code (ZTEST) either in PBO/PAI like IF FUNCTION = ZTEST ...ENDIF
    Note:
    Don't forget to set the GUI status u have created in PBO event.
    Example code to set PF status.
    PROCESS BEFORE OUTPUT.
      MODULE liste_initialisieren.
      MODULE setstatus_0100.
       LOOP AT extract WITH CONTROL
       tctrl_ztufi_league CURSOR nextline.
        MODULE liste_show_liste.
      ENDLOOP.
    In the above MODULE setstatus_0100 do the following,
    SET PF-STATUS 'ZGUI'. ( The GUI status u have created).
    I hope this helps you.
    Regs,
    venkat

  • How do I close just the top toolbar, the one with the create button and the Quick Tools?

    Just upgraded from 9 to X.
    The manual says, "When your work does not involve using the tools in a toolbar, you can close the toolbar to tidy up the work area." But then after that it only provides instructions on how to hide all toolbars. I want to have only one row of tool visible, not two, and I can work best with the Common Tools toolbar. So how do I close the other one?

    Would you please be more explicit? I have tried dragging the "Create" and "Customize Quick Tools" buttons from the top row to the second row and they don't drag. I've tried dragging the buttons on the second row into the top row and they don't drag. I've tried dragging the rows themselves into each other and outside the window to see if I could get one to diappear, and they don't drag. So would you please state specifically what is possible in order to reduce the two rows of the toolbar to one row?
    Especially if it's documented somewhere, that would be most helpful to see. But I'm also open to learning an undocumented method, if it works.
    Thank you.

Maybe you are looking for