cancel
Showing results for 
Search instead for 
Did you mean: 

How to get tab strip UI element programatically

Former Member
0 Kudos

Hi,

I'm trying to add check boxes dynamically in one tab. I'm getting dump while getting ui element of Tab strip.

Now i want to display check boxes under "TC_REPORT_OPT_PANEL".

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


  lr_container ?= lr_container->get_child( id = 'TAB_STRIP_9' ).   ( Dump Coming in this Line )........

  lr_container ?= lr_container->get_child( id = 'TAB_1' ).
  lr_container ?= lr_container->get_child( id = 'RISK_TC' ).
  lr_container ?= lr_container->get_child( id = 'TRAY_SELECTION' ).
  lr_container ?= lr_container->get_child( id = 'TC_REPORT_OPT_PANEL' )."'ID_REPORT_OPT_PANEL' ).
  lr_container ?= lr_container->get_child( id = 'TC_REPORT_OPTS_DETAILS' ).
  lr_container ?= lr_container->get_child( id = 'TC_REPTYPE' ).

In Second line dump coming like below. if i'll get this ui element ref then i'll do checkboxes coding.

And for Tabstrip ui element only dump coming. i've tested other ui elements its working fine.

Regards,

Jack.

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Jack,

You are trying to assign TABSTRIP ui element as a container, hence the conflict in assignment.

Modify your code as below

data lr_tabstrip type ref to cl_wd_tabstrip.

data lr_tab type ref to CL_WD_TAB.

  lr_tabstrip ?= lr_container->get_child( id = 'TAB_STRIP_9' ).   ( Dump Coming in this Line )........

  lr_tab = lr_tabstrip->get_tab( id = 'TAB_1' ).
  lr_container ?= lr_tab->get_content( ). " RISK_TC
  lr_container ?= lr_container->get_child( id = 'TRAY_SELECTION' ).
  lr_container ?= lr_container->get_child( id = 'TC_REPORT_OPT_PANEL')."'ID_REPORT_OPT_PANEL' ).
  lr_container ?= lr_container->get_child( id = 'TC_REPORT_OPTS_DETAILS' ).
  lr_container ?= lr_container->get_child( id = 'TC_REPTYPE' ).



Hope this helps you.


Regards,

Rama