Enum drop down select event

I would like an event to be fired each time the user selects a selection from the drop down list of an enum. I know I can use the Value Change event, but I want the event to fire also when the user selects the same selection as the last time (which Value Change event does not fire on). I've tried the Mouse Up event but it seems to not fire when the Mouse Up is on the drop down list. Any ideas?
Michael

This may not be exactly what you had in mind but it does work ok, for a workaround.  I basically reset the value of the enum after the selection.  I added a status indicator to display the last action taken.  I hope this helps.
LV 8.0 through 2013, Win 7
CLA
Attachments:
EnumAction.vi ‏15 KB

Similar Messages

  • Drop down selection menu stopped working on Firefox 16

    Hi there,
    I have a drop down selection menu (<select></select>) on my website that triggers an ajax function to display a specific table using jquery's datatable. Prior to firefox 16, the selection menu worked fine. I clicked on the menu, and the options showed up. However, ever since I upgraded to firefox16, the selection menu doesn't work as expected anymore :S
    Here's the thing, first time I clicked on an option, selection menu expanded, and I can click on any option to trigger the table change function. Everything is working fine till that point.
    It's when I clicked on the selection menu the second time, the selection menu stopped working. It didn't even expand and show any options. I checked with firebug (No js error). I tried safemode/hardware acceleration option I read from another thread, it doesn't work either.
    I checked with the firebug console log and I noticed the click event was being triggered whenever I clicked on it, but my selection menu somehow just won't expand (The options are in the html). I checked with all the other browsers as well, and everything seems to be fine (Even the previous version of FF).
    Strangely enough, when I click on any other elements on the website and then go back to clicking that selection menu, the selection menu seems to have reset to my 1st step's state. (It stopped expanding as soon as I chose an option though and I will have to click on another element again.)
    Chuck

    See also [[/questions/935870]]

  • How do i populate one field based upon a drop down select from another field?

    Here is what I am trying to do:
    Field 1 is a drop down selection list that requires a user to make a mandatory selection which in this case is a list of apartment complexes. What I am trying to accomplish is once that user makes a selection from the drop down list (Field1) that it will populate Field 2 (standard txt) with the corresponding apartment complexes address.
    So I pick Talan Apartments from field 1, it would populate field 2 with Talan Apartments address. I tried messing around with calculation scripts but I'm fighting a loosing battle here. Some help would be greatly appreciated!

    Hi,
    Here is a sample: https://acrobat.com/#d=Hi0ZwVgVB1PWbxc6OJ0z4A where the script in the exit event of the dropdown sets the value of the address object.
    Good luck,
    Niall

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

  • Performing Calculation based on drop down selection

    I need help with simple calculation. Im building an estimate form, and have the fields:
    "Total"  (manually entered total amount)
    "GrandTotal" (automatically calculates Total*1.07 to add 7% NJ sales tax)
    Next I have 3 drop down boxes with payment options, and then text fields to receive $$ amounts based on drop-down selection:
    "1st Payment Option" (options: 50% down, 100% paid in full, custom entry)
    "2nd Payment Option" (options: 50% at completion, 25% in 14 days, custom entry)
    "3rd payment Option" (options: 25% completion, custom entry)
    For whichever options are selected in the drop-downs, i'd like the text fields to auto-fill.
    (Text fields are titled "1st Payment", "2nd Payment", "Final Payment".
    So how do I take the value from "GrandTotal" and get it to automatically be calculated by 50%, 25% or whatever and be filled into separate text fields?

    It can be done with proper form design. You can use the any of the 3 calculation options but some may require some extra form fields and you can specify a numeric value to a drop down option that is different from the displayed text.

  • Select customer name from a drop down Select List or be able to type it in

    Hi,
    Is there a way to allow my users to have an option to either select a customer name from a drop down Select List or be able to type it in...
    Thanks in advance

    This is an excellent option for another application but in this one I would prefer a drop down list to allow my users to see all the orders (to pick from the list) or type it in if they can't find it in the list...
    I know how to create a drop down select list but not sure what to do to allow users to be able to manually type in as well...
    Thanks

  • In Ver 4.0, what happened to the drop down selections for previous windows for the current tab?

    In the previous versions of Firefox, in any open tab that had multiple windows open, i. e. from a search where you would go to many different windows, there was a drop down selection to the right of the "back/forward" button that would let you select prior windows ... and always the first one. That is no longer there. It was extremely helpful and I used frequently. Can you add it?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • Different actions based on different drop down selection

    Hi,
    I am new to WebDynpro so still getting to used to the differences with what I am used to. My question is this:
    Is it possible to create a drop down list (by key) in a top view that allows the user to display one of three views in the bottom view? I know it is possible if I add a button, but I want it to look like one form so that the user is unaware of the difference. The "logical" way to me would be to have an action created for each option in the drop down list, but this does not seem possible. Any suggestions on how I could do this?
    Thanks,
    Helen

    As already explained by other posters, this is possible:
    Define an action with a parameter "selectedKey" of type string.
    Bind the DropDownByKey.onSelect event to this action.
    Map the event parameter "key" to the action parameter "selectedKey" by writing this line of code inside method wdDoModifyView():
    if (firstTime)
      IWDDropDownByKey dd = (IWDDropDownByKey) view.getElement("<ID of your drop-down>");
      dd.mappingOfOnSelect().addSourceMapping
        "key", /* event parameter name, see JavaDoc */
        "selectedKey" /* action parameter name */
    The effect of this mapping is that at runtime, the action handler parameter "selectedKey" contains the key that has been selected from the drop-down list.
    In the action handler, you can navigate to the view that corresponds to the selected key by calling the outbound-plug to this view. These firePlug* methods will be generated by the framework, if you have defined the corresponding navigation links in the view modeller.
    But: I would not use at all a drop-down list to switch views because this will not match most user's expectation. Links are more appropriate to indicate navigation to other views.
    Armin

  • Change location of drop-down selected text display

    When I use a drop-down list, the selected text displays to the left of the drop-down arrow. Is there some way that I can customize the drop-down so that when I make a selection, the selected text displays below the drop-down arrow and not to the left?

    But this way it will display in both places, bcz dropdown list we cannot change.
    Place one text field where you want to show that and assign the dropdown value to new text field on lay out ready event.
    find the attached modified pdf. (check the java script on TextField1::ready:layout event)
    Hope this will help.
    RAGHU.

  • Can I populate an email address by a drop-down selection?

    Hi,
    I have created a form that should be submitted by email to one of five people. The recipient is dependent on the type of request being generated.
    So... can I have my Email Submit Button populate with the appropriate email address based on the selection of the type of request? Example: Type of request selected from drop-down is "new contract" therefore email address populates with [email protected]
    I am a newbie, but can generally muddle through modifications if given the script. Thanks!

    Hi,
    Here is a sample that works for Acrobat v9 and below (well to V7 or v8 anyway). https://acrobat.com/#d=M3oe*KTVPuco6zeZoMg6Vg
    This example works for Acrobat/Reader v9.1 as it uses the new validationState (validation error handling): https://acrobat.com/#d=W72hKORXoOt0CAeKEJUuqQ
    Both are set out the same way. There are three options from the standard email submit to a regular button with a custom script. If you have a look at the third option and the script in the click event of the email button, you will see that it takes the rawValue of the 'email address' textfield and uses this in building a custom email script.
    Hope that helps,
    Niall

  • Drop Down Selected value

    Hi All,
       I have requirement where i need to populate a drop down in webui 6.0. I could populate the values using the V getter and P getter for setting the event and property as drop down.
    following is the code that i have added in the P getter and V getter methods:
    P GETTER:
      CASE iv_property.
         WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
         WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'ProcessType'.
      ENDCASE.
    V GETTER:
    TYPES: BEGIN OF ty_namval,
               domvalue_l   TYPE  char3,
               ddtext TYPE  ddtext,
              END OF ty_namval.
      DATA:lt_ddlb TYPE bsp_wd_dropdown_table,
           ls_ddlb TYPE bsp_wd_dropdown_line.
      DATA: lit_tab TYPE TABLE OF dd07v,
            ls_tab TYPE dd07v.
      DATA: lt_tab1 TYPE TABLE OF ty_namval,
            ls_tab1 TYPE ty_namval.
      IF gr_ddlb_name IS NOT BOUND.
        CREATE OBJECT gr_ddlb_name
          EXPORTING
            iv_source_type = 'T'.
        ls_ddlb-key = 'Mer'.
        ls_ddlb-value = 'Mergers'.
        APPEND ls_ddlb TO lt_ddlb.
        CLEAR ls_ddlb.
        ls_ddlb-key = 'Acq'.
        ls_ddlb-value = 'Acquisitions'.
        APPEND ls_ddlb TO lt_ddlb.
        CLEAR ls_ddlb.
        ls_ddlb-key = 'Div'.
        ls_ddlb-value = 'Divestitures'.
        APPEND ls_ddlb TO lt_ddlb.
        CLEAR ls_ddlb.
        ls_ddlb-key = 'Clo'.
        ls_ddlb-value = 'Closures'.
        APPEND ls_ddlb TO lt_ddlb.
        CLEAR ls_ddlb.
        " sort based on value
        SORT lt_ddlb BY  value.
        IF sy-subrc = 0.
          gr_ddlb_name->set_selection_table( it_selection_table =
    lt_ddlb ).
        ENDIF.
      ENDIF.
      rv_valuehelp_descriptor = gr_ddlb_name.
    Problem is : When ever i select a value from the drop down it always shows the first record in the drop down.
    Please help me in solving this problem. I am not sure where i made the mistake.
    Thanks in advance!
    Regards.
    Warun

    Hi There,
    The problem doen not seem to be with GET V and GET P, rather it seems to be with GET and SET.
    Also, you have defined a server event, this causes server round trip. Are you using the server event "Process Type" by defining an Event Handler EH_ONPROCESSTYPE etc ? if you are ot implementing the server event handling, then remove the Server event setting from GET P. If you are using the server event handling then let us know so that the problem can be diagnosed in a proper way.
    I feel that you put a break point in SET method and one in GET method.
    When user selects the value in dropdown, system call the SET method and value is SET, now a view refresh happens  and GET method is called when the view is getting loaded.
    So you can check what value is getting set in SET method and what is happening in GET method.
    I am sure that some code in GET method may be the culprit or event handler coding bug if you are handling server event.
    Regards,
    Suchita

  • Drop down selection is not refreshing the page data correctly

    I have a drop down menu for a CREATE DATE. The record is based on a Identification ID. This identification ID can be in our system for multiple CREATE DATES. The CREATE DATE drop down is populated by checking how many different CREATE DATES there are for a particular identification ID.
    The last identification ID looks great. It populates all the fields. However if you select an older CREATE DATE, the page does not get populated with that CREATE DATES data. The whole page even looks different. It looks like an older version of the page before I added all the new fields.
    What is causing the older CREATE DATES not to look like the current create date.
    Please let me know if you need any additional information. Thank you!!
    Pattibz

    Thank you for your reply. Here are some details. Please let me know if I am not giving the information you need.
    One page item called CREATE_DATE displayed as a Select LIST with submit. The source type is a database column called ID_IDENT. The ID_IDENT is just a
    The List of Values is: Named LOV is the Select Named LOV. The list of values definition is a query against a table in our database:
    select CRE_DT, ID_IDENT from IDENT_TABLE where UNIQ_ID = :P3_UNIQ_ID
    ORDER BY CRE_DT DESC
    This is the date on which the ID_IDENT data was created. The date is displayed in a pull down menu, which allows you to select from a list of available "as of" dates when viewing the data. Only data on the most recent ID_IDENT record may be manually altered.
    I have a UNIQ_ID = '34587443'. It acutally has records in the database with that UNIQ_ID. The only difference is the create date. On record of 345778 was done on 10/1/2008 and the current date 10/13/2008.
    I see these two dates in the CREATE_DATE pull down menu. This is fine. The drop down orders the dates by DESC so I have the lastest date on top fo the pull down.
    If I want to pick the date of 10/1/2008, I need go into the web page, open the Create Date pull down and select the older date.
    When I pick the older date 10/1/2008, the page does not look the same as the defaul tor oldest time date and numbers.
    The page is different and most of the data on the webpage is there.
    What should have happened is that I choice the newer date from the drop down, the page refreshes with the data from 10/1/2008
    and all the parameters are displayed from the date of 10/1/2008. It isn't only part of the fields are being populated and the page itself doesn't refresh to the look of the original page. Thank you.
    Edited by: pattibz on Sep 12, 2008 11:15 AM

  • How do I configure a dynamic table with Data-Drop Down selections to store separate values?

    I am attempting to use LiveCycle to create an Order Form that uses an ODBC to a SQL database. When a user makes a selection, a separate column in the table references the "Item #" associated in the SQL table, and generates a corresponding barcode.
    My problem is that when I select an Item from the drop down list, all the items in the table change. What am I missing here to separate the rows as different line items? I tried adding a [*] to the end of the connection string, and that allows me to select different options but does not generate the "Item #" or "Barcode" field.
    The screenshot below shows the basic form. When I select any of the data drop downs, all of the Items change.
    I used the auto generated script for the "Add Row +" button shown below. Is this my issue? Or do I need to alter the way I'm setting up the Data Binding in for my Data Drop Down?
    this.resolveNode('Table1._Row1').addInstance(1);
    if (xfa.host.version <8) {
      xfa.form.recalculate(1); }

    package pruebadedates;
    import java.sql.*;
    * @author J?s?
    public class ClaseDeDates {
        /** Creates a new instance of ClaseDeDates */
         * @param args the command line arguments
        public static void main(String[] args) {
            java.sql.Date aDate[] = null;       
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con = DriverManager.getConnection("jdbc:mysql://localhost/pruebafechas", "root", "picardias");
                    if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT dates FROM datestable");
                    rs = stmt.getResultSet();
                        while (rs.next())
                        aDate[] = rs.getDate("dates");
            catch(Exception e)
               System.out.println(e);
            //System.out.println(aDate);     
    }Hi, There is my code and the errors that I get are:
    found : java.sql.Date
    required: java.sql.Date[]
    aDate = rs.getDate("dates");
    Actually I have No idea as How to get a Result set into an ArrayList or Collection. Please tell me how to do this Dynamically. I have like 25 records in that Database table, but they will grow, so I would really appreciate to know the code to do this. I suspect my problem is in the bolded part of my code.
    Thank you very much Sir.

  • Generic service issue-need to text value on drop down selection

    Hello,
    Below given is the problem scenario.
    I have a dropdown box, on the selection of which values should be filled to the next drop down box.
    It is working perfectly using generic service. When the second drop down box is selected, certain
    values should be shown on the screen. But the values are not appearing on the display texts.
    Let me know the possible causes.
    Thanks,
    Aravind

    solved

  • Drop down selection for a column in Table Control

    Hello,
    I have a table control where data is displayed. The user can fill data in one of the column and save. We want to have a drop down in that column where user can select a value. This column is a qunatity field.
    Please guide how it can be done.
    RR

    In SE51 screen editor, double-click on the editable field and set the dropdown listbox at listbox. As I don't think that you have domain value or table value for this field, set the field value list to "A" from program.
    Then in the PBO use the FM VRM_SET_VALUES to fill the list of allowed values. do this in a module called in the LOOP AT WITH CONTROL which fills the table control from the program data. (use a name like TC_XXXX_CHANGE_FIELD_ATTR)
    I'm not sure SE51 will allow you to use a quantity field in a listbox, so use a character field (check also right justified box on dynpro field attrinutes window), in VRM_SET_VALIUES parameters and in initial filling of the screen field use a WRITE xx UNIT yy to fill the screen field. Then a MOVE should perfect correctly when filling actual database/abap field by a move statement.
    Regards,
    Raymond

Maybe you are looking for

  • Home Wireless Network (Netgear)

    I just came home and a member of my family had hooked up a Netgear wireless router (that is supposed to be ok with mac os) to my cable modem and my old mac (os 10.2) is hardlined through ethernet into the new router. I have a new macbook pro and when

  • Accessing RMI Application through an Applet hosted on Apache web server

    Hi All, Just to let you know, I'm a complete novice at RMI. Ok, heres the story...I have an applet which is deployed on Apache Webserver (localhost), with the neccessary files needed for the RMI app in the same directory - htdocs(i.e. Applet class, R

  • Possible Bug in Skype Kindle Fire HD

    After a recent upgrade to Skype, it has stopped detecting the # key press while in call mode. In some IVR numbers I have to press the # key to make my choices during the call. I have checked the same with the Skype app on my other Android phones, it

  • Proper way to connect external monitors to macbook pro?

    I recently had to have the logic board in my mbp replaced and was wondering if disconnecting an external monitor while computer is on would cause the problem. Should monitors be connected/disconnected with computer powered down?

  • Save text and read text

    Hi all. i have a requirement to copy shipment instructions text from delivery to shipment in struction text in shipment when a delivery is added to a shipment. i can read the shipment text corresponding to the delivery using the fm read_text but when