RE: [sap-dev] data_changed OF cl_gui_alv_grid not always being triggered
Posted by
Admin at
Share this post:
|
0 Comments
Posted by soldner on May 6 at 12:34 PM | Mark as helpful |
Actually I've had the same issue. Clicking on the SAP generated icons doe not fire the event. I worked around the issue by adding code in the PAI to force it to check when the ok_code is not one an exit or a toggle (from editable to non-editalve) by calling:
gr_grid->check_changed_data(
IMPORTING
e_valid = g_valid
).
CHECK g_valid IS NOT INITIAL.
From: jwootten33625 via sap-dev [mailto:sap-dev@Groups.ITtoolbox.com]
Sent: Thursday, May 06, 2010 10:50 AM
To: Steve Oldner
Subject: [sap-dev] data_changed OF cl_gui_alv_grid not always being triggered
Posted by jwootten33625 (Mr)
on May 6 at 11:48 AM
Hi, This topic is covered quite a lot but I cannot find the answer to my specific issue. Using OO cl_gui_alv_grid, I have established one column as edittable. The FOR EVENT data_changed OF cl_gui_alv_grid does not react when data is changed on many of the ICONS.
It does work for refresh.I would expect it to handle the data changed on any type of action, including enter or check. Can anyone tell me what it takes to get the event to kick off. It retains the prior entries when the check button is hit . Yes, it has been registered in the PAI.
__.____._ gr_grid->check_changed_data(
IMPORTING
e_valid = g_valid
).
CHECK g_valid IS NOT INITIAL.
From: jwootten33625 via sap-dev [mailto:sap-dev@Groups.ITtoolbox.com]
Sent: Thursday, May 06, 2010 10:50 AM
To: Steve Oldner
Subject: [sap-dev] data_changed OF cl_gui_alv_grid not always being triggered
Posted by jwootten33625 (Mr)
on May 6 at 11:48 AM
Hi, This topic is covered quite a lot but I cannot find the answer to my specific issue. Using OO cl_gui_alv_grid, I have established one column as edittable. The FOR EVENT data_changed OF cl_gui_alv_grid does not react when data is changed on many of the ICONS.
It does work for refresh.I would expect it to handle the data changed on any type of action, including enter or check. Can anyone tell me what it takes to get the event to kick off. It retains the prior entries when the check button is hit . Yes, it has been registered in the PAI.
Copyright © 2010 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Related Content
In the Spotlight
_.____.__ White Papers
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements