cancel
Showing results for 
Search instead for 
Did you mean: 

Table Events

Former Member
0 Kudos

Dear Experts,

is it possible to execute an Event when i leave a table field like "on enter" ?

Thanks and best regards

René

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If you are using the ALV then you can use the ON_DATACHECK and can proceed with further validations.

Regards,

Lekha.

Former Member
0 Kudos

hi,

thanks for your answer.

i can´t find the event on_datacheck.

I only found on_filter, on_lead_select, on_scroll, on_select and on sort.

Can you plz tell me where to find the event ?

thank you

René

Former Member
0 Kudos

Hi,

They are the events for the standard table UI element.

On_DATA_CHECK is used for the ALV component usage is used.

Please try this way-

You can get the table row by using index or using lead selection.

For this lead selection, get the context element.

In the IF_WD_CONTEXT_ELEMENT, use the method IS_ATTRIBUTE_NULL to check the attribute is NULL or not.

Then based on this value, try to explicitly handle the custom event.

Design the custom event and call it explicitly.

I don't think there is explicit ONENTER event for the TABLE UI element.

Regards,

Lekha.

Former Member
0 Kudos

hi,

i decided to use an ALV. Thanks for the hint.

Now i have a Problem. In my node are attributes i never want to let the user see or change them.

How can i hide them ?

Thanks

René

uday_gubbala2
Active Contributor
0 Kudos

Hi Rene,

If you want to remove a particular column from getting displayed within your ALV then you can try proceed as follows:

DATA: l_value TYPE REF TO cl_salv_wd_config_table.

  l_value = l_ref_interfacecontroller->get_model( ).

" Delete column STATUS as it was created only to show 
  l_value->if_salv_wd_column_settings~delete_column( 'STATUS' ).

Regards,

Uday

uday_gubbala2
Active Contributor
0 Kudos

Sorry guess some technical glitch on SDN. This is another repeated post so am removing it out...

Edited by: Uday Gubbala on Jan 7, 2009 4:03 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rene,

OnDataCheck () is an event handler method which we need to write and use them.

It defaulty does not exists as the other Hook methods.

Regards,

Sana.