Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/01/01/z2ui5_cl_demo_app_009.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ CLASS z2ui5_cl_demo_app_009 IMPLEMENTATION.

form->label( `Input with suggestion items`
)->input(
value = client->_bind_edit( s_screen-color_01 )
value = client->_bind( s_screen-color_01 )
placeholder = `fill in your favorite colour`
suggestionitems = client->_bind( t_suggestion )
showsuggestion = abap_true
Expand All @@ -194,25 +194,25 @@ CLASS z2ui5_cl_demo_app_009 IMPLEMENTATION.

form->label( `Input only numbers allowed`
)->input(
value = client->_bind_edit( s_screen-quantity )
value = client->_bind( s_screen-quantity )
type = `Number`
placeholder = `quantity` ).

form->label( `Input with value`
)->input(
value = client->_bind_edit( s_screen-color_02 )
value = client->_bind( s_screen-color_02 )
placeholder = `fill in your favorite colour`
showvaluehelp = abap_true
valuehelprequest = client->_event( `POPUP_TABLE_VALUE` ) ).

form->label( `Custom value Popup`
)->input(
value = client->_bind_edit( s_screen-name )
value = client->_bind( s_screen-name )
placeholder = `name`
showvaluehelp = abap_true
valuehelprequest = client->_event( `POPUP_TABLE_VALUE_CUSTOM` )
)->input(
value = client->_bind_edit( s_screen-lastname )
value = client->_bind( s_screen-lastname )
placeholder = `lastname`
showvaluehelp = abap_true
valuehelprequest = client->_event( `POPUP_TABLE_VALUE_CUSTOM` ) ).
Expand Down Expand Up @@ -242,7 +242,7 @@ CLASS z2ui5_cl_demo_app_009 IMPLEMENTATION.
DATA(dialog) = popup->dialog( `abap2UI5 - Value Help` ).
DATA(tab) = dialog->table(
mode = `SingleSelectLeft`
items = client->_bind_edit( t_suggestion_sel ) ).
items = client->_bind( t_suggestion_sel ) ).

tab->columns(
)->column( `20rem`
Expand Down Expand Up @@ -274,7 +274,7 @@ CLASS z2ui5_cl_demo_app_009 IMPLEMENTATION.
dialog->simple_form(
)->label( `Location`
)->input(
value = client->_bind_edit( s_screen-city )
value = client->_bind( s_screen-city )
suggestionitems = client->_bind( t_cities )
showsuggestion = abap_true
)->get(
Expand All @@ -290,7 +290,7 @@ CLASS z2ui5_cl_demo_app_009 IMPLEMENTATION.
DATA(tab) = dialog->table(
headertext = `Employees`
mode = `SingleSelectLeft`
items = client->_bind_edit( t_employees_sel ) ).
items = client->_bind( t_employees_sel ) ).

tab->columns(
)->column( `10rem`
Expand Down
4 changes: 2 additions & 2 deletions src/01/01/z2ui5_cl_demo_app_024.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ CLASS Z2UI5_CL_DEMO_APP_024 IMPLEMENTATION.
text = `call new app (set Event)`
press = client->_event( `CALL_NEW_APP_EVENT` )
)->label( `Demo`
)->input( client->_bind_edit( input )
)->input( client->_bind( input )
)->button(
text = `call new app (set data)`
press = client->_event( `CALL_NEW_APP_READ` )
)->label( `some data, you can read in the next app`
)->input( client->_bind_edit( input2 ) ).
)->input( client->_bind( input2 ) ).

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

Expand Down
2 changes: 1 addition & 1 deletion src/01/01/z2ui5_cl_demo_app_025.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ CLASS z2ui5_cl_demo_app_025 IMPLEMENTATION.
text = `read`
press = client->_event( `BUTTON_READ_PREVIOUS` )
)->label( `Call previous app and show data of this app`
)->input( client->_bind_edit( input )
)->input( client->_bind( input )
)->button(
text = `back`
press = client->_event( `BACK_WITH_EVENT` ) ).
Expand Down
2 changes: 1 addition & 1 deletion src/01/01/z2ui5_cl_demo_app_026.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ CLASS z2ui5_cl_demo_app_026 IMPLEMENTATION.
text = `Documentation UI5 Popover Control`
href = `https://openui5.hana.ondemand.com/entity/sap.m.Popover`
)->label( `placement`
)->segmented_button( client->_bind_edit( placement )
)->segmented_button( client->_bind( placement )
)->items(
)->segmented_button_item(
key = `Left`
Expand Down
20 changes: 10 additions & 10 deletions src/01/01/z2ui5_cl_demo_app_047.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CLASS Z2UI5_CL_DEMO_APP_047 IMPLEMENTATION.
dec2 = 2 / 3.

mt_tab = VALUE #( ( date = sy-datum time = sy-uzeit ) ).
client->_bind_edit( mt_tab ).
client->_bind( mt_tab ).
ENDIF.

CASE client->get( )-event.
Expand Down Expand Up @@ -68,31 +68,31 @@ CLASS Z2UI5_CL_DEMO_APP_047 IMPLEMENTATION.
)->content( `form`
)->title( `Input`
)->label( `integer`
)->input( client->_bind_edit( int1 )
)->input( client->_bind_edit( int2 )
)->input( client->_bind( int1 )
)->input( client->_bind( int2 )
)->input( enabled = abap_false
value = client->_bind_edit( int_sum )
value = client->_bind( int_sum )
)->button( text = `calc sum`
press = client->_event( `BUTTON_INT` )
)->label( `decimals`
)->input( client->_bind_edit( dec1 )
)->input( client->_bind_edit( dec2 )
)->input( client->_bind( dec1 )
)->input( client->_bind( dec2 )
)->input( enabled = abap_false
value = client->_bind_edit( dec_sum )
value = client->_bind( dec_sum )
)->button( text = `calc sum`
press = client->_event( `BUTTON_DEC` )
)->label( `date`
)->input( client->_bind_edit( date )
)->input( client->_bind( date )
)->label( `time`
)->input( client->_bind_edit( time ) ).
)->input( client->_bind( time ) ).

DATA(tab) = page->scroll_container( height = `70%`
vertical = abap_true
)->table(
growing = abap_true
growingthreshold = `20`
growingscrolltoload = abap_true
items = client->_bind_edit( mt_tab )
items = client->_bind( mt_tab )
sticky = `ColumnHeaders,HeaderToolbar` ).

tab->columns(
Expand Down
2 changes: 1 addition & 1 deletion src/01/01/z2ui5_cl_demo_app_052.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ CLASS z2ui5_cl_demo_app_052 IMPLEMENTATION.

DATA(cont) = page->content( `f` ).
DATA(tab) = cont->table( id = `tab`
items = client->_bind_edit( val = mt_table ) ).
items = client->_bind( val = mt_table ) ).

DATA(lo_columns) = tab->columns( ).
lo_columns->column( )->text( `Product` ).
Expand Down
2 changes: 1 addition & 1 deletion src/01/01/z2ui5_cl_demo_app_061.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CLASS Z2UI5_CL_DEMO_APP_061 IMPLEMENTATION.
class = `sapUiSmallMargin` ).

DATA(tab) = page->table(
items = client->_bind_edit( <tab> )
items = client->_bind( <tab> )
mode = `MultiSelect`
)->header_toolbar(
)->overflow_toolbar(
Expand Down
4 changes: 2 additions & 2 deletions src/01/01/z2ui5_cl_demo_app_065.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ CLASS z2ui5_cl_demo_app_065 IMPLEMENTATION.
press = client->_event( `NEST` )
)->button( text = `Update only nested MODEL (nest_view_model_update)`
press = client->_event( `NEST_MODEL` )
)->input( client->_bind_edit( mv_input_main ) ).
)->input( client->_bind( mv_input_main ) ).

DATA(lo_view_nested) = z2ui5_cl_xml_view=>factory(
)->page( `Nested View`
)->button( text = `event`
press = client->_event( `TEST` )
)->input( client->_bind_edit( mv_input_nest ) ).
)->input( client->_bind( mv_input_nest ) ).

IF client->check_on_init( ).
client->view_display( lo_view->stringify( ) ).
Expand Down
36 changes: 18 additions & 18 deletions src/01/01/z2ui5_cl_demo_app_067.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -46,49 +46,49 @@ CLASS Z2UI5_CL_DEMO_APP_067 IMPLEMENTATION.
href = `https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency`
)->label( `One field`
)->input(
|\{ parts: [ '{ client->_bind_edit( val = amount
path = abap_true ) }', '{ client->_bind_edit(
|\{ parts: [ '{ client->_bind( val = amount
path = abap_true ) }', '{ client->_bind(
val = currency
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' \}|
)->label( `Two field`
)->input(
|\{ parts: [ '{ client->_bind_edit( val = amount
path = abap_true ) }', '{ client->_bind_edit(
|\{ parts: [ '{ client->_bind( val = amount
path = abap_true ) }', '{ client->_bind(
val = currency
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{showMeasure: false\} \}|
)->input(
|\{ parts: [ '{ client->_bind_edit( val = amount
path = abap_true ) }', '{ client->_bind_edit(
|\{ parts: [ '{ client->_bind( val = amount
path = abap_true ) }', '{ client->_bind(
val = currency
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{showNumber: false\} \}|
)->label( `Default`
)->text(
|\{ parts: [ '{ client->_bind_edit( val = amount
path = abap_true ) }', '{ client->_bind_edit(
|\{ parts: [ '{ client->_bind( val = amount
path = abap_true ) }', '{ client->_bind(
val = currency
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' \}|
)->label( `preserveDecimals:false`
)->text( |\{ parts: [ '{ client->_bind_edit( val = amount
path = abap_true ) }', '| && client->_bind_edit(
)->text( |\{ parts: [ '{ client->_bind( val = amount
path = abap_true ) }', '| && client->_bind(
val = currency
path = abap_true ) &&
|'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ preserveDecimals : false \} \}|
)->label( `currencyCode:false`
)->text( |\{ parts: [ '{ client->_bind_edit( val = amount
path = abap_true ) }', '| && client->_bind_edit(
)->text( |\{ parts: [ '{ client->_bind( val = amount
path = abap_true ) }', '| && client->_bind(
val = currency
path = abap_true ) &&
|'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ currencyCode : false \} \}|
)->label( `style:'short'`
)->text(
|\{ parts: [ '{ client->_bind_edit( val = amount
path = abap_true ) }', '{ client->_bind_edit(
|\{ parts: [ '{ client->_bind( val = amount
path = abap_true ) }', '{ client->_bind(
val = currency
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ style : 'short' \} \}|
)->label( `style:'long'`
)->text(
|\{ parts: [ '{ client->_bind_edit( val = amount
path = abap_true ) }', '{ client->_bind_edit(
|\{ parts: [ '{ client->_bind( val = amount
path = abap_true ) }', '{ client->_bind(
val = currency
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ style : 'long' \} \}|
)->label( `event`
Expand All @@ -103,12 +103,12 @@ CLASS Z2UI5_CL_DEMO_APP_067 IMPLEMENTATION.
)->link( text = `https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue`
href = `https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue`
)->label( `Numeric`
)->input( client->_bind_edit( val = numeric )
)->input( client->_bind( val = numeric )

)->label( `Without leading Zeros`

)->text(
|\{path : '{ client->_bind_edit(
|\{path : '{ client->_bind(
val = numeric
path = abap_true ) }', type : 'sap.ui.model.odata.type.String', constraints : \{ isDigitSequence : true \} \}| ).

Expand Down
4 changes: 2 additions & 2 deletions src/01/01/z2ui5_cl_demo_app_071.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ CLASS Z2UI5_CL_DEMO_APP_071 IMPLEMENTATION.
)->title( `Input`
)->label( `Link`
)->label( `setSizeLimit`
)->input( client->_bind_edit( mv_set_size_limit )
)->input( client->_bind( mv_set_size_limit )
)->button(
text = `update size limit`
press = client->_event( val = `UPDATE` )
)->label( `Number of Entries`
)->input( client->_bind_edit( mv_combo_number )
)->input( client->_bind( mv_combo_number )
)->button(
text = `update number entries`
press = client->_event( val = `UPDATE_MODEL` )
Expand Down
4 changes: 2 additions & 2 deletions src/01/01/z2ui5_cl_demo_app_081.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ CLASS z2ui5_cl_demo_app_081 IMPLEMENTATION.
title = `Popover Title`
placement = mv_placement
)->list(
items = client->_bind_edit( mt_tab )
items = client->_bind( mt_tab )
selectionchange = client->_event( val = `SEL_CHANGE` )
mode = `SingleSelectMaster`
)->standard_list_item(
Expand Down Expand Up @@ -107,7 +107,7 @@ CLASS z2ui5_cl_demo_app_081 IMPLEMENTATION.
)->link( text = `Documentation UI5 Popover Control`
href = `https://openui5.hana.ondemand.com/entity/sap.m.Popover`
)->label( `placement`
)->segmented_button( client->_bind_edit( mv_placement )
)->segmented_button( client->_bind( mv_placement )
)->items(
)->segmented_button_item(
key = `Left`
Expand Down
6 changes: 3 additions & 3 deletions src/01/01/z2ui5_cl_demo_app_097.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CLASS z2ui5_cl_demo_app_097 IMPLEMENTATION.

DATA(page) = lo_view_nested->page( `Nested View` ).

DATA(tab) = page->ui_table( rows = client->_bind_edit( val = t_tab2 view = client->cs_view-nested )
DATA(tab) = page->ui_table( rows = client->_bind( val = t_tab2 )
editable = abap_false
alternaterowcolors = abap_true
rowactioncount = `1`
Expand Down Expand Up @@ -84,14 +84,14 @@ CLASS z2ui5_cl_demo_app_097 IMPLEMENTATION.
showicon = abap_true
class = `sapUiSmallMargin` ).

DATA(col_layout) = page->flexible_column_layout( layout = client->_bind_edit( mv_layout )
DATA(col_layout) = page->flexible_column_layout( layout = client->_bind( mv_layout )
id = `test` ).

DATA(lr_master) = col_layout->begin_column_pages( ).

DATA(lr_list) = lr_master->list(
headertext = `List Output`
items = client->_bind_edit( val = t_tab view = client->cs_view-main )
items = client->_bind( val = t_tab )
mode = `SingleSelectMaster`
selectionchange = client->_event( `SELCHANGE` )
)->standard_list_item(
Expand Down
6 changes: 3 additions & 3 deletions src/01/01/z2ui5_cl_demo_app_098.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ CLASS z2ui5_cl_demo_app_098 IMPLEMENTATION.

DATA(page) = lo_view_nested->page( `Nested View` ).

DATA(tab) = page->ui_table( rows = client->_bind_edit( val = t_tab2 view = client->cs_view-nested )
DATA(tab) = page->ui_table( rows = client->_bind( val = t_tab2 )
editable = abap_false
alternaterowcolors = abap_true
rowactioncount = `1`
Expand Down Expand Up @@ -110,14 +110,14 @@ CLASS z2ui5_cl_demo_app_098 IMPLEMENTATION.
showicon = abap_true
class = `sapUiSmallMargin` ).

DATA(col_layout) = page->flexible_column_layout( layout = client->_bind_edit( mv_layout )
DATA(col_layout) = page->flexible_column_layout( layout = client->_bind( mv_layout )
id = `test` ).

DATA(lr_master) = col_layout->begin_column_pages( ).

DATA(lr_list) = lr_master->list(
headertext = `List Output`
items = client->_bind_edit( val = t_tab view = client->cs_view-main )
items = client->_bind( val = t_tab )
mode = `SingleSelectMaster`
selectionchange = client->_event( `SELCHANGE` )
)->standard_list_item(
Expand Down
4 changes: 2 additions & 2 deletions src/01/01/z2ui5_cl_demo_app_104.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ CLASS z2ui5_cl_demo_app_104 IMPLEMENTATION.
showicon = abap_true
class = `sapUiSmallMargin` ).

DATA(col_layout) = page->flexible_column_layout( layout = client->_bind_edit( mv_layout )
DATA(col_layout) = page->flexible_column_layout( layout = client->_bind( mv_layout )
id = `test` ).

DATA(lr_master) = col_layout->begin_column_pages( ).

DATA(lr_list) = lr_master->list(
headertext = `List Output`
items = client->_bind_edit( val = t_tab view = client->cs_view-main )
items = client->_bind( val = t_tab )
mode = `SingleSelectMaster`
selectionchange = client->_event( val = `SELCHANGE` )
)->standard_list_item(
Expand Down
2 changes: 1 addition & 1 deletion src/01/01/z2ui5_cl_demo_app_105.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CLASS z2ui5_cl_demo_app_105 IMPLEMENTATION.
showicon = abap_true
class = `sapUiSmallMargin` ).

mo_view_parent->input( value = client->_bind_edit( mv_class_1 )
mo_view_parent->input( value = client->_bind( mv_class_1 )
placeholder = `Input From Class 1` ).

ENDMETHOD.
Expand Down
2 changes: 1 addition & 1 deletion src/01/01/z2ui5_cl_demo_app_109.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ CLASS z2ui5_cl_demo_app_109 IMPLEMENTATION.
)->content( `form`
)->title( `QuickView Popover`
)->label( `placement`
)->segmented_button( client->_bind_edit( mv_placement )
)->segmented_button( client->_bind( mv_placement )
)->items(
)->segmented_button_item(
key = `Left`
Expand Down
2 changes: 1 addition & 1 deletion src/01/01/z2ui5_cl_demo_app_112.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CLASS z2ui5_cl_demo_app_112 IMPLEMENTATION.
showicon = abap_true
class = `sapUiSmallMargin` ).

mo_view_parent->input( value = client->_bind_edit( mv_class_2 )
mo_view_parent->input( value = client->_bind( mv_class_2 )
placeholder = `Input From Class 2` ).

ENDMETHOD.
Expand Down
Loading