Want a code to trigger enter event in object container.

Hi  I am using alv container (OO) to display list.  I want Enter event to be triggered when user presses Enter on the grid.  Can any one reply.
Thanks.

hi venkata,
                sorry man we cannot trigger using enter key in container u can use double click or eny other option .
        see in the class cl_gui_alv_grid in the class builder.
but in tree control we may not use events , the field is triggered as u press enter.
thanks&regards
  magesh.

Similar Messages

  • How to trigger ENTER event in oo ALV grid

    Hi,
    Can anybody help me out in catching the ENTER event in the oo ALV Grid. My requirement is as follows,
    I have oo ALV Grid displaying hell lot of columns, in that vendor number column is an editable field so when the user enters the vendor number the immediate next cell showing the vendor name should be populated with the corresponding name as soon as he press enter button, I have search help also for vendor field.
    Please give me some sample program which i can just do the copy+paste sort of as today is the deadline for the object.
    Regards,
    Suman

    Hi,
    This example is working. Please try this one.
    CLASS lcl_event_receiver DEFINITION.
       PUBLIC SECTION.
         CLASS-METHODS:
          handle_data_changed
          FOR EVENT data_changed OF cl_gui_alv_grid
          IMPORTING er_data_changed e_onf4 e_ucomm.
    ENDCLASS. "lcl_event_receiver DEFINITION
    *       CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
       METHOD handle_data_changed.
         DATA : modi TYPE TABLE OF lvc_s_modi  ,
               modis TYPE lvc_s_modi,
               wa LIKE LINE OF git_alv_items,
               lv_matnr TYPE matnr.
         modi = er_data_changed->mt_mod_cells .
         LOOP AT modi INTO modis WHERE fieldname = 'MATNR'.
           MOVE modis-value TO lv_matnr.
           CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
             EXPORTING
               input        = lv_matnr
             IMPORTING
               output       = lv_matnr
             EXCEPTIONS
               length_error = 1
               OTHERS       = 2.
           READ TABLE git_alv_items INTO wa INDEX modis-row_id .
           IF sy-subrc = 0.
             SELECT SINGLE maktx FROM makt
               INTO wa-maktx
              WHERE matnr = lv_matnr
                AND spras = sy-langu.
             MODIFY git_alv_items FROM wa INDEX modis-row_id.
           ENDIF.
         ENDLOOP.
         IF sy-subrc = 0.
           CALL METHOD alv_grid->refresh_table_display
             EXPORTING
               is_stable = gs_stbl.
         ENDIF.
       ENDMETHOD.                    "handle_data_changed
    ENDCLASS. "lcl_event_receiver IMPLEMENTATION
    DATA : eventreceiver TYPE REF TO lcl_event_receiver.
    SET HANDLER eventreceiver->handle_data_changed FOR alv_grid.
           CALL METHOD alv_grid->set_table_for_first_display
             EXPORTING
               i_save                        = 'A'
               is_layout                     = layo_alv
               i_bypassing_buffer            = 'X'
               i_buffer_active               = ''
             CHANGING
               it_outtab                     = git_alv_items
               it_fieldcatalog               = fcat_alv
             EXCEPTIONS
               invalid_parameter_combination = 1
               program_error                 = 2
               too_many_lines                = 3
               OTHERS                        = 4.
           CALL METHOD alv_grid->register_edit_event
             EXPORTING
               i_event_id = cl_gui_alv_grid=>mc_evt_enter.

  • Enter event not triggering for read-only checkbox

    I have some objects in a form that get "locked" when the user signs the form.  I'm not using the digital signatures.  Instead, when the user types their name into the signature text field, a script runs on the change event that makes all of the fields in the form read only.  It also unlocks the fields if the signature is deleted.
    I was worried that we would get a lot of phone calls with users that didn't understand that the form had locked ("Why doesn't this form work?!"), so I added some code to the enter event for all of the fields that would pop up a messagebox to explain to people trying to edit a signed form that the form was locked and that they would need to delete the signature to edit the form.
    This plan works perfect for my text fields and decimal fields.  It does NOT work at all for my checkboxes.  For some reason, the enter event is never triggered for read-only checkboxes.  I don't see any other events that would obviously work for me though.  Any ideas?
    Thanks

    Thanks, those are reasonable suggestions.
    In the first suggestion, I'm unclear about one aspect of how I would accomplish this.  I assume I would allow people to modify fields in the form, but that when they did, a msgbox would pop up that would inform them that, if they continued with this modification to a signed form, the signature would be removed.  I'm all good to that point.  But if they answered that they do not want to continue modifying that field and removing the signature, how can I code it to set the value back to what it was before the change?  Is there some method that will give me access to the value of the field BEFORE the attempted modification?  I went looking for something like $.previousvalue, but found nothing.
    I'd suggest that I could use a two-stage solution, in which I store the previous value on the enter event, and save it just in case they do not want to change the field when prompted by the msgbox, but since the enter event does not exist for checkboxes (my original problem), that seems like it won't work.
    As far as radio button suggestion, I like radio buttons very much except for one fatal flaw: they aren't (as far as I can tell) clearable.  That is a shame.  Clearly some people (like me) want both exclusivity AND clearability.  And we'd like the controls to have an enter event.  But I know I'm demanding   Anyway, as it is, I just end up having to use checkboxes and create a boatload of silly code to make them exclusive.
    Emily

  • Enter event  field color change issue

    I'm trying to make a script that will change the color of a field's content area when the user enters it (either through clicking or tabbing to the field). It seems simple enough to do, but I haven't been able to get it working.
    I downloaded the sample .pdf file that describes how to do this at: http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/FieldFillColor.pdf
    Push the button, the colors change. Seems to work fine, right? Except for the horrible, horrible period in the color definition, of course. Publishing a 2 line script with a bug as an EXAMPLE? For shame.
    But, when you move the code to the Enter event, the caption changes color, but the content area does not... until you LEAVE the text box, at which point it DOES change color. This doesn't make any sense to me. Is there something undocumented going on here that I don't know about, or is this just another bug?

    This won't speed it up, but I suggest making your code a lot cleaner by making use of this class (I haven't tested it):
    public class ColorRange {
       private Color min, max;
       public ColorRange(Color min, Color max) {
          this.min = min; this.max = max;
       public boolean contains(Color c) {
          return c.getGreen() >= min.getGreen() && c.getGreen() <= max.getGreen() &&
             c.getRed() >= min.getRed() && c.getRed() <= max.getRed() &&
             c.getBlue() >= min.getBlue() && c.getBlue() <= max.getBlue();
    //...SNIP...
    ColorRange blue, red, green, yellow; //initialize these
    //...SNIP...
       if ( blue.contains(robot.getPixelColor(640,480) ) {Furthermore, I would introduce constants for your sample locations:
    Point blueLoc = new Point(640, 480); //etcEdited by: endasil on 14-Sep-2009 10:21 AM

  • Java Code to trigger Custom Based Event in BO XI Release

    hi,
    I am new member of this community. I am very happy to be part of it. I am working in BO XI r2. I  need to schedule some reports based on custom event and I need to trigger this event externally using some java application. Is it possible to trigger custom event using java code??
    Need Help!.
    Regards,
    Yasar

    Hi, here is a sample.
    In future, please use for Java SDK related questions, you will get a quicker response here
    import com.crystaldecisions.sdk.exception.SDKException;
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.framework.ISessionMgr;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    import com.crystaldecisions.sdk.plugin.desktop.event.IEvent;
    import com.crystaldecisions.sdk.plugin.desktop.event.IUserEvent;
    public class triggerEvent {
         public static void main(String[] args) {
              String lUser = "administrator";
              String lCMS = "servername";
              String lPWD = "";
              String lSecurity = "secEnterprise";
              IEnterpriseSession lEnterpriseSession = null;
              try {
                   //Retrieve the ISessionMgr object to perform the logon
                   ISessionMgr lSessionMgr = CrystalEnterprise.getSessionMgr();
                   //Logon to Enterprise
                   lEnterpriseSession = lSessionMgr.logon(lUser, lPWD, lCMS, lSecurity);
                   //Retrieve the InfoStore object from the Enterprise Session
                   IInfoStore lInfoStore = (IInfoStore)lEnterpriseSession.getService("", "InfoStore");
                   //Create the query to retrieve the all the events
                   String lQuery = "SELECT * " +
                                   "FROM   CI_SYSTEMOBJECTS " +
                                     "WHERE  SI_KIND = 'Event' " +
                                     "ORDER BY SI_NAME";
                   IInfoObjects lInfoObjects = lInfoStore.query(lQuery);
                   //Display a message if no results were returned
                   if (lInfoObjects.isEmpty())
                        return;
                   //Go through each event returned and add it to the table
                   for (int lIdx = 0; lIdx < lInfoObjects.size(); lIdx++)
                        //Retrieve the current event object
                        IEvent oEvent = (IEvent)lInfoObjects.get(lIdx);
                        IUserEvent lUserEvent = (IUserEvent) oEvent.getEventInterface();
                        lUserEvent.trigger();
                   lInfoStore.commit(lInfoObjects);
              } catch (SDKException e) {
                   e.printStackTrace();
              } finally {
                   if (lEnterpriseSession!= null) {
                        lEnterpriseSession.logoff();

  • Help - I don't want to trigger an event!!

    public void tableChanged( TableModelEvent event ){
      int row = event.getFirstRow();
      int area = c.area(input);
      if(table.getValueAt(row,QUANTITY) != null){
        table.setValueAt(""+area,row,SUBTOTAL); //This causes an infinite loop!  I don't want it to trigger an event!
    }How can I get it to ignore this event, or stop it from triggering an event?

    private boolean respond = true;
    public void tableChanged( TableModelEvent event ){if (!respond) return;
    int row = event.getFirstRow();
    int area = c.area(input);
    if(table.getValueAt(row,QUANTITY) != null){respond = false;
    table.setValueAt(""+area,row,SUBTOTAL); //Thisrespond = true;
    How can I get it to ignore this event, or stop it from
    triggering an event?

  • Want to trigger an event in Javascript using Actionscript

    Hello forum,
    I am trying to trigger an event in Javascript from an SWF.  In HTML the triggering event is this:
    <a href="#" onclick="return GB_showFullScreenSet(page_setWEB1, 1)"><img src="images/Thumbnails/IMAGE-NAME.jpg" /><br />Link Label</a>
    This line trggers a pop-up style portfolio image slideshow.  I am trying to figure out how to trigger this event from actionscript.  I am not sure what this would even be called so any help would be great.
    Thanks,
    Brett

    The communication works both ways.  Here's the description from that page.
    "From ActionScript, you can call any JavaScript function on the HTML page. It passes any number of arguments of any data type, and receives a return value from the call.
    From JavaScript on the HTML page, you can call an ActionScript function in Flash Player. The ActionScript function can return a value. JavaScript receives it immediately as the return value of the call."
    It can be a bit confusing to implement, so you might want to search for other examples/tutorials if you can't get it working from the one linked already.

  • Unable to find appropriate driver for my mcbook air using a ricoh aficio mp36501SP network printer.  had similar problem with another ricoh copier/printer, but was able to resolve that problem entering ip address.  this one wants job code

    unable to find appropriate driver for my mcbook air using a ricoh aficio mp36501SP network printer.  had similar problem with another ricoh copier/printer, but was able to resolve that problem entering ip address.  this one wants job code.  i don't believe mac allows for input on job code or printer code for permission to print

    I'm having similar problems with an HP OfficeJet 6500. One suggestion that improved the situation, but did not totally solve the problem, was to select "OfficeJet Pro L7700" for its drivers.
    One other suggestion is to turn off the printer, then simultaneously hold down the "#" and "9" keys and turn the printer back on. This hot key seems to reset the printer to factory defaults, allowing you to set things up anew.
    Finally, kvetch to HP. Their networking software clearly has problems in its relationship to OSX, but nobody on either side seems motivated to bring in a good therapist.

  • I want parameter for program name entering with f4 help pls send  code

    I want parameter for program name entering with f4 help pls send code
    Points if helpful

    Hi,
    PROG is a string which indicates the type of the object --- program
    u can call the FM as follows
    CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4'
      EXPORTING
    <b>    object_type                     =  'PROG'
       OBJECT_NAME               =  p_report</b>
      ENCLOSING_OBJECT                =
      SUPPRESS_SELECTION              = 'X'
      VARIANT                         = ' '
      LIST_VARIANT                    = ' '
      DISPLAY_FIELD                   =
      MULTIPLE_SELECTION              =
      SELECT_ALL_FIELDS               = ' '
      WITHOUT_PERSONAL_LIST           = ' '
    IMPORTING
      OBJECT_NAME_SELECTED            =
      ENCLOSING_OBJECT_SELECTED       =
      STRUCINF                        =
    TABLES
      OBJECTS_SELECTED                =
      RECORD_TAB                      =
    EXCEPTIONS
      CANCEL                          = 1
      WRONG_TYPE                      = 2
      OTHERS                          = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Patil

  • HT201209 I entered my card info into iTunes but didnt make a purchase at that . iTunes shows mt 25 dollars but wants the code again. I no longer have c I thought once I registered it my acct was credited.

    III entered my card info into iTunes but didnt make a purchase at that . iTunes shows mt 25 dollars but wants the code again. I no longer have c I thought once I registered it my acct was credited.

    I am confused. Are you talking about a credit card?

  • BRF+ Trigger via Event, change on field value, etc

    Hi,
    I'm implenting BRF+ for SPM Claims & Returns Process.
    It took me a while to understand how I can set up an application, Function from type event, Rulesets, rules, etc but at the end it seems that it is a tremendous improvement compared to BRF!
    So far I have triggered the BRF+ via the CRMV_EVENT_CUST table calling a function module that triggers the BRF+ Function and receives an CRM Log message but this solution is not sufficient for all locations I want to call the BRF+.
    At first I want to call the BRF+ for the Entryvalidation: Entering a Claim with a item net value below a threashold should not be saveable.
    The second call should be to decide if the Claim will be automatically approved or set to manual investigation: This is a check that will lead to a item status change.
    The third and last check will be fullfilled by saving the Claim document: a whole set of business rules have to run and set maybe an incompleteness or process some error messages.
    I neither any information in SAP Documentation, nor on any ressource on the net any information about customing the BRF+ Solution.
    Is there any customizing in the system, as it is for BRF, that allows me to trigger the BRF+ for Business Transaction Category, Business Transaction or ItemCategories?
    Furthermore, is there an option to call BRF+ via customizing that "listens" to a field change as Reason Code ( CODEGRUPPE, KATALOGART,CODE in the Subjectprofile?)
    Can I define Events that trigger the BRF+ as in the BRF customizing?
    When I search the IMG for BRFPLUS, I find a couple of entries, but doubleclicking on this search results doesn't jump to the customizing step.
    It would be very helpfull to get some input in these topics.
    Kind regards,
    Sven

    Hi Tiwari,
    yes, the screenshot was from CRM-Financial, but available in CRM Transaction Processing:
    And I agree to your statement that there is no such customizing, because I neither found this Customizing, except:
    Using the search in the customizing IMG, you will find 3 customizing entries with BRF+ or BRFPLUS, but clicking on them you will land in Nirvana, and not in the proper customizing tree.
    But still the overall trigger for my message here is, that the BRF could be triggered via Customizing that doesn't seem to exist for BRF+ and that's strange!
    I hope someone knows how the replacement of BRF with BRF+ is intended from this customizing point of view. I have to trigger a lot of different functions and using the old BRF I could trigger this Events using this customizing setup.
    Thanks,
    Sven

  • Can you make an enter event in topmostsubform that gets the field name of any field thats entered

    Looking for some help.
    I have a modified Enter Event I'm trying to use. What my expected results are: When you click on a field on the PDF, it would open up a certain webpage or file depending on what field is entered. I currently have:
    if (xfa.host.name == "Acrobat") {
              app.launchURL("www.cnn5.com" + "/" + event.target.documentFileName + "&" + this.name, true);
    else {
              xfa.host.gotoURL("www.cnn5.com");
    In this example, i'm using a bogus address obviously. "event.target.documentFileName" gives me the PDF name which is what I want, but I need to scrub off the ".pdf" at the end of it. I know I can use this in every field that I want it in, but I'm looking to see if I can get this code in just the topmostsubform only due to having hundreds of forms I might be using this form and to save time.
    When this is used in the topmostsubform, it gives me the URL: "www.cnn5.com/PDFname.pdf&TopmostSubform" no matter what field i click into. Is there something i can change this.name to? Any help would be greatly appreciated.
    Also, i'll need to have this event to be able to use multiple times, because currently in the topmostsubform, it only activates on the first field that I enter and doesn't activate on fields after that. Suggestions please? Thank you

    Hi,
    Are you using event propagation?  If you are try
      xfa.event.target.name
    Otherwise have a look at this  http://blogs.adobe.com/formfeed/2009/03/xfa_30_event_propagation.html
    Regards
    Bruce

  • Different 'mouse enter' event / 'set busy' vi behaviour in LV8?

    In my program, I used the mouse curcor 'set busy' vi to lock the front panel during a measurement.  However, I did want the 'cancel measurement' button to be available.   I solved that by adding a 'mouse enter' and 'mouse leave' event for that button, that would enable the mouse when it was over the button.  (And disable when it left again)
    Worked fine in LV7, but it seems that in Labview 8, this little trick doesn't work anymore...   
    Apparantly, now the 'mouse enter' event only fires when the cursor isn't set to 'busy'. How do I perform something similar to my old trick in Labview 8? 

    I too had a similar issue when upgrading my application source code from LabVIEW 7.1 to 8.0.  There are a couple of things you could try.
    1) Keep calling the "set cursor busy" vi, but don't disable mouse clicks (a boolean input to the set busy VI). Now add a new event to your event structure to monitor the panel for any "mouse down?" events.  Whenever this event occurs, the user is trying to click somewhere, so wire a TRUE to the "Disabled?" input of the event.  Now to keep your cancel button from being filtered out, add some code to determine if the x,y coordinates of the mouse down event are over your cancel button, if so then don't filter this event.
    2) Keep calling the "set cursor busy" vi, but again don't disable the mouse clicks.  Now whenever you want to disable all user events on your front panel controls, open a reference to each front panel control and set it to disabled (all except the cancel button of course).  This sounds difficult, but it is actually really easy.  There is a VI property you can read to get references to each FP control.
    I personally used the 2nd option in my code to do something similar.  I've attached the VI you can use to disable all you FP controls (with exceptions), and also an example of how I used it.  It's a very small VI.
    Hope this helps.
    Attachments:
    SetAllCtrlsToDisabled.zip ‏24 KB

  • Using the keydown option in order to trigger an event

    Hi all,
    This is my first question on this forum, and that is probably because i just started learning labview.
    I came across with an error, i could most likely solve in another programming language using C, but not in labview.
    I was wondering if someone could give me a hand with the following:
    I attached the program, which is probably a bit bad-written. Basicly, what im trying with the part on the left, is read all values from a controller on a GPIB bus.
    This part works like a charm, because i get all the values i want without any problem. After that, in the last step of this program, you have a while loop, with in there an event structure. The reason i took a while for that is because i dont want the program to start over at step 1. The event structure was first used with clicks of the mouse on the buttons, and a changed value with the numeric controls. Because a changed value did not work, cause the loop was constantly reading the values coming from the initial phases, i wanted to change the way the events were handled by a keydown of 'Enter'. I think, when you change a value in a numeric control and press enter, this could be perfectly used to trigger the events, instead of the value changes (because everytime the program reads the values in the sides, i think its considered like a value change). The fact is i dont really have an idea how to use the keydown as an event handler, any info on this would be greatly appreciated.
    I'm sorry if my english isn't the best, it's only my 3th language. Hope you understood and i can get some help for this issue
    Thanks in advance
    Thomas De Landtsheer
    Student
    Solved!
    Go to Solution.
    Attachments:
    Labview detection of keystroke.vi ‏197 KB

    The problem is a few
    blocks we havent really seen yet. All these numerics and stuff outside
    the while loop, what are they exactly, or are they just a different way
    of viewing them? The stuff with the digital at INI phase, The block
    in the lower right corner of the INI phase.
    The digital block in the
    dispatcher phase we didn't really understand. 
    I am not sure what you mean here can you circle it and send me a picture so that I can explain.
    Tim
    Johnson Controls
    Holland Michigan

  • Enter-Event on an "Input Field"

    Hello Community...
    i would like to trigger an event on an Input-Field in my Form. When I enter a value and press "Enter" the value should be given via an output signal to another iView. What kind of event do I have to choose to achieve that? I chose a Custom Action, but the value was passed to the output signal when I left the field.
    Greetz, Jochen

    Hi Jochen,
    As per your requirement:
    " When I enter a value and press "Enter" the value should be given via an output signal to another iView"
    press Enter means u want to have a button in the form along with the input field. Am I correct?
    If so then why to give action in the input field.
    "I chose a Custom Action, but the value was passed to the output signal when I left the field"
    Beacuse If you will give the event in input field then when you will fill the value in the input field that action will be triggered.
    Better to give the action in the button if you want to press and then event has to be triggered.
    Go to the Button property--give system action--as submit.
    Then to pass data between the iviews you must have used signal out and signal in.
    Regards,
    Nutan

Maybe you are looking for

  • Keyboard shortcut not working (Photoshop CC 2014 trial version)

    Hi, I just installed the trial version (CC 2014) but it is impossible to me to enlarge the field where the name of the tools-name are displayed (see the attached image). You can see just the very beginning of the words No way to enlarge the field. Yo

  • Problem in moving files

    Hi everyone ! Since I've installed SL I've noticed that there's a bug when I move files from one folder to another. Normally, when you move the file with the mouse and you drag it to a folder and stay on it, the folder should open in a new window, bu

  • How to access emails in windows mobile using java?

    is there any facility in j2me to access email folders like inbox or sent in windows mobiles? Thanks in advance,

  • Widgets behaving strangely

    Apologies if this has been answered before. I have various widgets & have noticed lately that whenever I access them after my mac has been switched off, they are quite often in different positions & the Weather widget quite often forgets my location

  • Transfer posting for intercompany

    Folks, I have the following scenario: Company code 1, plant 1, SLOC 1 and WHS 1 Company code 2, plant 2, SLOC 2 and WHS 2. Is it possible to do a transfer posting (for example 301) between plants that have a different company code? Regards, MdZ