Detect ENTER event on REUSE_ALV_GRID_DISPLAY_LVC

Hi Experts,
I'm working on ALV using REUSE_ALV_GRID_DISPLAY_LVC. My requiremen is this. I have 2 cells in the grid. If i will update one cell, the other should automatically updated as well.
I've seen a thread with a solution below. I tried it and it's working but the problem is that I don't have to put top of page in my ALV display. Is there's a way to get rid of the "top of page" display without taking out the TOP of PAGE event?
I'm thinking if the height of the top of page portion should be adjusted (to make it like there's no top of page portion of the display) but I don't know how. Need help.
At time of callback routine "TOP OF PAGE" of the REUSE_ALV_GRID_DISPLAY_LVC
I get the reference of the GRID and register an event to that.
Also I have to create a local class do handle the event (check the input).
set event data changed to get control after user pushes ENTER
IF gref_alv IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = gref_alv.
CALL METHOD gref_alv->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_enter.
CREATE OBJECT go_event_receiver.
SET HANDLER go_event_receiver->handle_data_changed FOR gref_alv.
ENDIF.
Thanks!

Hi Experts,
I'm working on ALV using REUSE_ALV_GRID_DISPLAY_LVC. My requiremen is this. I have 2 cells in the grid. If i will update one cell, the other should automatically updated as well.
I've seen a thread with a solution below. I tried it and it's working but the problem is that I don't have to put top of page in my ALV display. Is there's a way to get rid of the "top of page" display without taking out the TOP of PAGE event?
I'm thinking if the height of the top of page portion should be adjusted (to make it like there's no top of page portion of the display) but I don't know how. Need help.
At time of callback routine "TOP OF PAGE" of the REUSE_ALV_GRID_DISPLAY_LVC
I get the reference of the GRID and register an event to that.
Also I have to create a local class do handle the event (check the input).
set event data changed to get control after user pushes ENTER
IF gref_alv IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = gref_alv.
CALL METHOD gref_alv->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_enter.
CREATE OBJECT go_event_receiver.
SET HANDLER go_event_receiver->handle_data_changed FOR gref_alv.
ENDIF.
Thanks!

Similar Messages

  • 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

  • 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

  • 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.

  • Cannot enter event in iCal on iPad

    Got new iPad 2
    Got I cloud set up enter events on my Mac And they appear on the iPad (and phone) no worries but I cannot enter any events on the iPad
    Get message "calendar not set" or "event does not belong in that event store"
    Anybody got any ideas on that .....?....
    Pleas e help very frustrated

    I have the same issue and it just started.  My Iclous , Mac and Iphone work , Ipad does not.

  • Is there a way to detect the event when device goes to sleep and the screen blackens?

    I want to detect the event when the iOS device goes to sleep and the screen blackens?
    Is there any way to do it?

    Hi,
    A small idea, please check whether it will work or not.
    You can achieve this by using combination of DNS server and reverse proxy server.( Customized apache). Make 'A' record for www.abcd.com to reverse proxy server IP address in your DNS.
    So it will resolve your reverse proxy IP address for requests.
    Configure appche to accept incoming request for www.abcd.com and points towards www.abcd.com/parameters.
    I think this will solve your problem.  Only one condition is that proxy server will communicate with www.abcd.com on behalf of client.
    Follow the link for configuration of reverse proxy server
    http://www.slashroot.in/how-configure-basic-apache-reverse-proxy
    HTH
    Naisam

  • 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

  • Is it possible to enter events into a specific iCal calendar, then print a list of those events with the name and date on a single sheet?

    Is it possible to enter events into a specific iCal calendar, then print a list of those events with the name and date on a single sheet?  I don't need the calendar grid.  I just want a list of events on a particular calendar, and their dates.  Is that possible? 

    Not easily. Two possibilities:
    1) If all the events have some common feature (eg you have included "XXX" in all the summaries), search for that feature then select and copy the found items at the bottom of the window. You can then paste them into TextEdit or a spreadsheet for printing
    2) You could write an Applescript to locate the events and write them into a text file for printing.
    The first one will probably give you what you want.

  • Error in Detect Break event.vi

    Hey friend,
    As you can see i have just opened an example detect break event.vi.
    The error is"Wite class conflict".
    Please help me on this.
    I have a program which uses thisVI.that program is showing the warning
    " This VI needs a driver or toolkit component that is not found. Missing resource file "visarc"."
    please help me on this.
    Solved!
    Go to Solution.
    Attachments:
    detect break.pdf ‏65 KB

    yes i have NI-VISA . .
    I am using 8.6 verision of LAbview

  • When I enter events in my calendar to quickly, when it auto-syncs it will revert back to my old event.

    When I enter events in my calendar to quickly, when it auto-syncs it will revert back to my old event.
    If I have two calendars in use, if I use one (say red "home") and decide I want to change it to another (say green "work") it will revert back
    I've called Apple, been in the store to meet numerous "geniusus" and no one can figure it out. Most apple assistants tell me over the phone that "that is not possible", well it is possible and the so-called "geniuses" have seen and confirmed it is possible but to this point the only thing "impossible" is solving the problem.
    NOTHING MORE FRUSTRATING THAN PUTTING AN APPOINTMENT IN MY CALANDAR ONLY TO MISS IS BECAUSE OF AN APPLE ERROR

    Naughty,
    You are posting a Pages question in the Numbers forum.  I am going to ask thie be moved to the Pages forum.  In addition please post a screenshot.  Based on playing with a chart in Pages, I do not think the charts take their input from a table, but rather, you enter the data by clicking the chart (to activate it), then clicking the button "Edit Chart Data":
    manually editing the entries in the table:
    I would think you want to have a table in Numbers to create the data, then copy and paste the data into the data table for the chart (I wouldn't type it in)

  • Set text on textinput enter event

    Hi, is it possible to set the text of a textinput from the enter event?

    When I run the code above, as long as I click in the TextInput control so it has focus, pressing the Enter key sets the text.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.events.FlexEvent;
          private function handleEnter(evt:FlexEvent):void{
            evt.target.text = "You pressed the enter key";
        ]]>
      </mx:Script>
      <mx:TextInput enter="handleEnter(event)"/>
    </mx:Application>

  • NIO Selector object can't detect OP_ACCEPT event in time.

    We developed a server with Java NIO. we use a special thread to accept new SocketChannel object, read data, write data with a Selector object in server side. The client side is similar with the server side, it also use a special thread to connect to server, read data, write data.
    Now, we found sometimes the time that the socket channel object can't be accepted in server side in time. for example:
    the client side:(output after socketchannel.finishConnect is true)
    11:20:27.937 Finished connect to <remote:/127.0.0.1:9433,local:/127.0.0.1:3602> .
    the server side:(output after serversocketchannel.accept method)
    11:33:11.93 Accepted connection from /127.0.0.1:3602.
    From the log, we knew that the client created a socket channel object and finished connect at 11:20:27.937 but selector object detected this OP_ACCEPT event and accept this socket channel at 11:33:11.93. this process need 13 minutes.
    No server can accept this so long delay. this issue happen only when the machine is in high load.
    I reproduce it by the below steps:
    1, start 3 servers in one machine.
    2, run 40 threads to access one server. the machine is in very high load, then quickly this issue happen.
    by the way, the implement of server side is below:
    while (!shutdown) {
    try {
    int readyCount;
    try {
    readyCount = selector.select();
    } catch (java.nio.channels.ClosedSelectorException ex) {
    readyCount = -1;
    if (readyCount == -1 || isWindowsChannelBug4881228(readyCount)) {
    // Reset the selector
    logger.error("windows channel bug 4881228");
    } else if (readyCount == 0) {
    logger.debug("select wakeup");
    } else {
    Iterator keyIter = selector.selectedKeys().iterator();
    while (keyIter.hasNext()) {
    SelectionKey key = (SelectionKey) keyIter.next();
    keyIter.remove();
    if (key.isConnectable()) {
    ((ChannelConnection) key.attachment()).finishConnect();
    if (!key.isValid()) {
    continue;
    if (key.isAcceptable()) {
    ServerSocketChannel ssc = (ServerSocketChannel) key.channel();
    try {
    SSLEngine sslEngine = null;
    if (ssc == sslSocketChannel) {
    sslEngine = sslContext.createSSLEngine();
    sslEngine.setWantClientAuth(true);
    sslEngine.setUseClientMode(false);
    ServerChannelConnection conn =
    new ServerChannelConnection(this, ssc.accept(), sslEngine);
    conn.setConnectTime(System.currentTimeMillis());
    conn.registerForRead(selector);
    } catch (IOException ex) {
    if (!key.isValid()) {
    continue;
    if (key.isReadable()) {
    try {
    ((ChannelConnection) key.attachment()).processInput();
    catch (Throwable ex) {
    logger.error(ex);
    if (!key.isValid()) {
    continue;
    if (key.isWritable()) {
    try {
    ((ChannelConnection) key.attachment()).processOutput();
    catch (Throwable ex) {
    IOException iex=new IOException(msg(FailedWriteResponse));
    iex.initCause(ex);
    logger.error(iex);
    if (!key.isValid()) {
    continue;
    processPendingRequests();
    catch (Throwable ex) {
    logger.error(ex.getMessage(), ex);
    try {
    Thread.sleep(1000);
    } catch (InterruptedException ex2) {
    // ignore
    The client side is similar with the up.
    I can't understand it. Normally, the selector should detected OP_ACCEPT event quickly. but why not?
    Anyone who met this issue?

    You have an empty catch{} block for IOExceptions when handling isAcceptable(). So the prima facie presumption is that an error condition is arising, that you are ignoring. Fix that first and retest.
    After that, if you still have a problem, I have some comments.
    1. Create the SSLEngine and/or the ServerChannelConnection after accepting the connection, not before, and only if you got a non-null accepted channel. It is still valid for accept() to return null after you get OP_ACCEPT.
    2. Get rid of the sleep() in the exception handler - what's that for?
    3. select() for a specific timeout, not forever, and use the selectCount == 0 case to do something useful such as scanning for idle connections that you might want to drop.
    3. Catch IOException explicitly as well as Throwable, in the outer loop, not per operation, and close the current key's channel if you get it. You can't do anything more with a channel that's had an IOException of any kind, except a SocketTimeoutException, and you won't get that in non-blocking mode.

  • 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.

  • Why can't I enter events into my Calendar

    I used to be able to enter events in my Calendar. Now I can't. I don't care about synching with any other service such as g-mail, iCloud, etc. Adding events is greyed out.

    1. Back up all data.
    2. If there are any calendars on your Mac that you don't synchronize with iCloud, export them by selecting them in the calendar list and then selecting
    File ▹ Export ▹ Export…
    from the menu bar.
    3. Quit Calendar.
    4. Triple-click the line below on this page to select it:
     ~/Library/Calendars
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder selected. Move that folder to the Desktop.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.
    5. Launch Calendar. Your iCloud calendars, if any, will initially be gone, but they should resynchronize with iCloud. If they don't, uncheck the box marked Calendars & Reminders in the iCloud preference pane, then re-check it.
    6. Import the calendars you exported in step 2, if any, by double-clicking the files.
    7. If the issue is resolved, close the Finder window you opened in step 4. Delete the exported files and the Calendars folder on the Desktop.

  • How to open the Drop Down List on the "enter" event?

    I am trying to find a way for the users to see the expanded drop down list options without using their mouse to click on the down-arrow.
    I am able to add script to the "enter" event so when user key-broad-tabbed into the drop down field, the first items of the list shows up:
    dropdown1.selectedIndex = 0
    However, it would be nice if at the same time, they can also see the rest of the options within the drop down expanded.
    Any help/hints would be appreciated
    Thanks in advance
    p

    It would even be nice if the PDF could default with the small arrow already displaying instead of having having to click the field, then click the arrow. I'm just hoping adobe would add this in a future version.

Maybe you are looking for

  • Got warnning in Grid control agent deployment

    I met the the error message ' PROBLEM : The host name in /etc/hosts is not proper. WARNING : Check complete. The overall result of this check is: Failed <<<< RECOMMENDATION : Please verify the hostname is /etc/hosts and the start the installation. '

  • Runtime flow sequence of receiver or interface determinations is based on

    There is interface whose message flows as mentioned below. System A <=> System B <=> System c BPM: Receive -> sync send 1 -> sync send 2 -> async send System A sends the sync message to System B, System b response as request to System c and System C

  • What is the logic in the Application Builder

    Hi guys, What is the logic in the application builder when creating e.g a Report. When we create a static report we go through these four steps: <ul> Display Attributes Source Report Attributes Conditional Display </ul> Starting from the "Source" ste

  • Numeric to hex conversion

    Hi i am new to labview. i have implemented a controller circuit and serially communicating with using lab view in that i am using a numeric value and converting it to hex using numeric to hex string and receiving that on port 1 of controller but that

  • Downloading Package Failed

    Hello, I have a Nokia 5500. I already updated my phone a while ago. But when I try it now, the program stops at 'Downloading Update Package Failed'. What can I do, is this a normal error at the moment, or does it comes because I am using Windows Vist