cancel
Showing results for 
Search instead for 
Did you mean: 

How can we write code for Dynamic programming

santhosh_nagavalli
Participant
0 Kudos

Hi Friends,

            I want to validate the input field according to condition ,the input field which  is in under transparent container in the layout

      so please let me know how to get the reference of the that input field .

      Thanks in advance.

Regards

Santhosh

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You want to validate the value in the Input field or you want to dynamically change Input field UI?

If you want to validate the value in input field, read the context attribute to which the Input is bound, using get_attribute( ) method of context element.

If you want to dynamically change the Input field UI, use below code in DOMODIFYVIEW method:

   DATA: lr_container         TYPE REF TO cl_wd_transparent_container,

         lt_child                    TYPE cl_wd_uielement=>tt_uielement,


*  Get the Transparent Container

   lr_container ?=  view->get_element( 'TRANSPARENT_CONTAINER ' ). " name of Transparent Container

*  Get All UI elements in the Transparent container

   lt_child = lr_container->get_children( ).


then you can loop the lt_child and  get the Input field UI reference.



Regards,

Kiran



santhosh_nagavalli
Participant
0 Kudos

Hi Kiran,

              I want to validate the input field dynamically,anyway i got answer from u

Thanks a lot kiran.

Thanks & Regards

santhosh