Skip to Content
0
Former Member
Oct 14, 2006 at 03:38 AM

WDA: ALV get value of input field in toolbar

215 Views

Hello,

I was wondering if anybody came across this...

I have an input field in a toolbar of my ALV. The user can type in some value and than click a button. There is an action assigned to this button. Inside that action I need to extract value that user typed into the input field.

The input field is created like this:

lo_alv_function = lo_alv->if_salv_wd_function_settings~create_function( id = 'MYINPUTFIELD' ).

CREATE OBJECT input_field

EXPORTING

value_elementname = 'SOME_VALUE'.

expand_input->set_label_text( 'SOME TEXT' ).

lo_alv_function->set_editor( input_field ).

...

I can get reference to my view and call get_elemement method on it but there is no ID for this input field.

I can get reference to ALV but I did not see input field there.

Thanks for your input.

__

Regards,

Georgy