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
2 changes: 1 addition & 1 deletion src/99/z2ui5_cl_demo_app_202_0.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CLASS z2ui5_cl_demo_app_202_0 IMPLEMENTATION.
lr_wiz_step2->button(
* EXPORTING
text = `Press Step 2.2`
press = client->_event(`STEP22` ) ).
press = client->_event( `STEP22` ) ).
lr_wiz_step2->button(
* EXPORTING
text = `Press Step 2.3`
Expand Down
19 changes: 3 additions & 16 deletions src/99/z2ui5_cl_demo_app_s_03_0.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,20 @@ CLASS z2ui5_cl_demo_app_s_03_0 IMPLEMENTATION.

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

SELECT
SINGLE FROM icfservloc
FIELDS icfactive
WHERE icf_name = `MIME_DEMO`
INTO @DATA(icfactive).

" Note, these are demo sounds and are part of the abap2UI5 sample repo.
" They are NOT meant to use in production.
view->_generic( name = `script`
ns = `html` )->_cc_plain_xml(
|function playSuccess() \{ new Audio("/SAP/PUBLIC/BC/ABAP/mime_demo/z2ui5_demo_success.mp3").play(); \}|
&& |function playError() \{ new Audio("/SAP/PUBLIC/BC/ABAP/mime_demo/z2ui5_demo_error.mp3").play(); \}| ).

DATA(vbox) = view->page( `Play success and error sounds` )->vbox( class = `sapUiSmallMargin` ).

IF icfactive = abap_false.
vbox->message_strip(
text = `ICF Service '/SAP/PUBLIC/BC/ABAP/mime_demo' is not active. Sounds will not play. Please activate the ICF service first.`
type = `Warning`
visible = abap_true ).
ENDIF.
DATA(vbox) = view->page( `Play success and error sounds` )->vbox( `sapUiSmallMargin` ).

vbox->message_strip(
text = client->_bind( message-text )
type = client->_bind( message-type )
visible = `{= !!$` && client->_bind( message-text ) && ` }` ).
vbox->text( text = `The magic key is: abap2UI5` ).
vbox->text( `The magic key is: abap2UI5` ).
vbox->input( id = `inputApp`
value = client->_bind_edit( magic_key )
placeholder = `Enter magic key`
Expand All @@ -73,7 +60,7 @@ CLASS z2ui5_cl_demo_app_s_03_0 IMPLEMENTATION.
type = `accept`
press = client->_event( `enter` ) ).

view->_z2ui5( )->focus( focusid = `inputApp` ).
view->_z2ui5( )->focus( `inputApp` ).
client->view_display( view->stringify( ) ).

ENDMETHOD.
Expand Down
2 changes: 1 addition & 1 deletion src/z2ui5_cl_demo_app_058.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ CLASS z2ui5_cl_demo_app_058 IMPLEMENTATION.
lo_columns->column(
minscreenwidth = shift_right( CONV string( lv_width ) ) && `px`
demandpopin = abap_true
width = lr_field->length )->text( CONV string( lr_field->title ) ).
width = lr_field->length )->text( lr_field->title ).
lv_width = lv_width + 10.
ENDLOOP.

Expand Down
2 changes: 1 addition & 1 deletion src/z2ui5_cl_demo_app_069.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ CLASS z2ui5_cl_demo_app_069 IMPLEMENTATION.
shownavbutton = client->check_app_prev_stack( ) ).

DATA(lr_master) = page->flexible_column_layout( layout = `TwoColumnsBeginExpanded`
id =`test` )->begin_column_pages( ).
id = `test` )->begin_column_pages( ).

lr_master->tree( client->_bind( mt_tree ) )->items(
)->standard_tree_item(
Expand Down
2 changes: 1 addition & 1 deletion src/z2ui5_cl_demo_app_098.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ CLASS z2ui5_cl_demo_app_098 IMPLEMENTATION.
shownavbutton = abap_true ).

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/z2ui5_cl_demo_app_104.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ CLASS z2ui5_cl_demo_app_104 IMPLEMENTATION.
shownavbutton = abap_true ).

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

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

Expand Down
4 changes: 2 additions & 2 deletions src/z2ui5_cl_demo_app_130.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@ CLASS z2ui5_cl_demo_app_130 IMPLEMENTATION.
LOOP AT mt_fields REFERENCE INTO DATA(lr_tab).
DATA(lv_tabix) = sy-tabix.

DATA(scrtext) = get_txt( CONV #( lr_tab->field_doma ) ).
DATA(scrtext) = get_txt( lr_tab->field_doma ).

content->label( scrtext
)->multi_input(
tokens = client->_bind( val = lr_tab->t_token tab = mt_fields tab_index = lv_tabix )
showclearicon = abap_true
id = lr_tab->field
valuehelprequest = client->_event( val = `CALL_POPUP_FILTER` t_arg = VALUE #( ( CONV #( lr_tab->field ) ) ) )
valuehelprequest = client->_event( val = `CALL_POPUP_FILTER` t_arg = VALUE #( ( lr_tab->field ) ) )
)->item(
key = `{KEY}`
text = `{TEXT}`
Expand Down
2 changes: 1 addition & 1 deletion src/z2ui5_cl_demo_app_202.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CLASS z2ui5_cl_demo_app_202 IMPLEMENTATION.
lr_wiz_step2->button(
* EXPORTING
text = `Press Step 2.2`
press = client->_event(`STEP22` ) ).
press = client->_event( `STEP22` ) ).
lr_wiz_step2->button(
* EXPORTING
text = `Press Step 2.3`
Expand Down
Loading