Skip to content

Commit

Permalink
Update z2ui5_cl_demo_app_173.clas.abap (#133)
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
abapsheep authored Mar 1, 2024
1 parent 97de9a2 commit 3eda67b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/z2ui5_cl_demo_app_173.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ CLASS z2ui5_cl_demo_app_173 DEFINITION
fname TYPE string,
merge TYPE string,
visible TYPE string,
binding TYPE string,
END OF ty_s_layout,
ty_t_layout TYPE STANDARD TABLE OF ty_s_layout WITH EMPTY KEY.

Expand Down Expand Up @@ -48,9 +47,9 @@ CLASS Z2UI5_CL_DEMO_APP_173 IMPLEMENTATION.
mt_data = VALUE #( ( name = 'Theo' date = '01.01.2000' age = '5' )
( name = 'Lore' date = '01.01.2000' age = '1' ) ).

mt_layout = VALUE #( ( fname = 'NAME' merge = 'false' visible = 'true' binding = '{NAME}' )
( fname = 'DATE' merge = 'false' visible = 'true' binding = '{DATE}' )
( fname = 'AGE' merge = 'false' visible = 'false' binding = '{AGE}' ) ).
mt_layout = VALUE #( ( fname = 'NAME' merge = 'false' visible = 'true' )
( fname = 'DATE' merge = 'false' visible = 'true' )
( fname = 'AGE' merge = 'false' visible = 'false' ) ).

DATA(view) = z2ui5_cl_xml_view=>factory( ).

Expand All @@ -62,14 +61,14 @@ CLASS Z2UI5_CL_DEMO_APP_173 IMPLEMENTATION.

view->table( items = client->_bind( mt_data )
)->columns(
)->template_repeat( list = `{template>/MT_LAYOUT}` var = `LO`
)->column( mergeduplicates = `{LO>MERGE}` visible = `{LO>VISIBLE}` )->get_parent(
)->template_repeat( list = `{template>/MT_LAYOUT}` var = `L0`
)->column( mergeduplicates = `{L0>MERGE}` visible = `{L0>VISIBLE}` )->text( text = `{L0>FNAME}` )->get_parent(
)->get_parent( )->get_parent(
)->items(
)->column_list_item(
)->cells(
)->template_repeat( list = `{template>/MT_LAYOUT}` var = `LO2`
)->object_identifier( text = `{LO2>BINDING}` ).
)->template_repeat( list = `{template>/MT_LAYOUT}` var = `L1`
)->object_identifier( text = `{= '{' + ${L1>FNAME} + '}' }` ).

client->view_display( view->stringify( ) ).

Expand Down

0 comments on commit 3eda67b

Please sign in to comment.