Skip to Content
0
Former Member
Nov 17, 2007 at 01:44 AM

How to hide input field dynamically

259 Views

Hi Expert,

I am trying to hide some input field from the view under certain conditions. Here is my code.

data: lr_input type ref to cl_wd_input_field.

if not stru_prod1-objek1 is initial.

lr_input ?= view->get_element( 'DESC1_1' ).

lr_input->set_visible( visibility = 'visible' ).

endif.

Here is the error message:

Formal parameter "VISIBILITY" does not exist. exist.

Can anyone tell me what wrong with my code?

Thanks,

ATANG