@@ -8,7 +8,6 @@ CLASS z2ui5_cl_sample_tab DEFINITION PUBLIC.
88
99 PUBLIC SECTION.
1010 INTERFACES z2ui5_if_app.
11-
1211 TYPES:
1312 BEGIN OF ty_row,
1413 count TYPE i,
@@ -46,7 +45,6 @@ CLASS z2ui5_cl_sample_tab IMPLEMENTATION.
4645
4746 ENDMETHOD.
4847ENDCLASS.
49-
5048```
5149
5250### Editable
@@ -64,7 +62,6 @@ Making a table editable is a simple change. You just need to switch the binding
6462
6563 DATA(view) = z2ui5_cl_xml_view=>factory( )->page( )->table(
6664 items = client->_bind_edit( t_tab ) ).
67-
6865 tab->columns(
6966 )->column( )->text( 'Color' )->get_parent(
7067 )->column( )->text( 'Info' )->get_parent(
@@ -82,14 +79,10 @@ Making a table editable is a simple change. You just need to switch the binding
8279### Tree
8380To work with trees, you need to use nested structures. Here is an example:
8481``` abap
85- CLASS z2ui5_cl_sample_tree DEFINITION
86- PUBLIC
87- FINAL
88- CREATE PUBLIC .
82+ CLASS z2ui5_cl_sample_tree DEFINITION PUBLIC CREATE PUBLIC.
8983
9084 PUBLIC SECTION.
9185 INTERFACES z2ui5_if_app.
92-
9386 TYPES:
9487 BEGIN OF ty_prodh_node_level3,
9588 is_selected TYPE abap_bool,
@@ -109,7 +102,6 @@ CLASS z2ui5_cl_sample_tree DEFINITION
109102 nodes TYPE STANDARD TABLE OF ty_prodh_node_level2 WITH DEFAULT KEY,
110103 END OF ty_prodh_node_level1,
111104 ty_prodh_nodes TYPE STANDARD TABLE OF ty_prodh_node_level1 WITH DEFAULT KEY.
112-
113105 DATA prodh_nodes TYPE ty_prodh_nodes.
114106
115107ENDCLASS.
@@ -148,8 +140,7 @@ CLASS z2ui5_cl_sample_tree IMPLEMENTATION.
148140 )->standard_tree_item( selected = '{IS_SELECTED}'
149141 title = '{TEXT}' ).
150142
151- client->view_display( page->button( text = 'Open Popup here...'
152- press = client->_event( 'POPUP_TREE' ) )->stringify( ) ).
143+ client->view_display( page->stringify( ) ).
153144
154145 ENDMETHOD.
155146ENDCLASS.
0 commit comments