cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic UI element Creation?

former_member210804
Active Participant
0 Kudos

Hi Experts,

How to create a UI element (Table) dynamically based on checkboxgroup selection.?

Best regards,

Rao.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
kutjohn
Active Participant
0 Kudos

Hi,

Use code mentioned by Ragavendra in onSelect method of the radio group.

former_member215610
Active Participant
0 Kudos

Hi Narasimha,

To Create a Table UI element dynamically using the below code.

DATA : flow_data    TYPE REF TO cl_wd_flow_data,

          lr_table     TYPE REF TO cl_wd_table,

          lr_container TYPE REF TO cl_wd_uielement_container.

CALL METHOD cl_wd_table=>new_table

   EXPORTING

     bind_data_source              = 'EMP'  "Node name

   receiving

     control                       = lr_table.

flow_data = cl_wd_flow_data=>new_flow_data( lr_table ).

lr_table->set_layout_data( flow_data ).

lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).

lr_container->add_child( lr_table  ).

Regards,

Ragavendra

former_member210804
Active Participant
0 Kudos

Hi Raghavendra,

Thank you for your reply.

But i need to create a table with dynamic data based on checkboxgroup selection.

Best regards,

Rao

former_member215610
Active Participant
0 Kudos

Hi Narasimha,

Based on the radio button condition use the above code in WDDOMODIFYVIEW method.

Regards,

Ragavendra