Skip to Content

How can we write code for Dynamic programming

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.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 29, 2014 at 12:53 PM


    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.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.