Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

focus updates #204

Merged
merged 1 commit into from
Jun 6, 2024
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/z2ui5_cl_demo_app_000.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
).

panel->generic_tile(
header = 'Focus & Cursor'
header = 'Focus I'
press = client->_event( 'z2ui5_cl_demo_app_133' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
Expand Down
6 changes: 0 additions & 6 deletions src/z2ui5_cl_demo_app_133.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ CLASS z2ui5_cl_demo_app_133 IMPLEMENTATION.
title = 'abap2UI5 - Focus'
navbuttonpress = client->_event( val = 'BACK' )
shownavbutton = xsdbool( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL )
)->header_content(
)->link(
text = 'Source_Code'

target = '_blank'
)->get_parent(
)->_z2ui5( )->focus(
focusid = client->_bind_edit( focus_id )
selectionstart = client->_bind_edit( selstart )
Expand Down
14 changes: 10 additions & 4 deletions src/z2ui5_cl_demo_app_189.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ CLASS z2ui5_cl_demo_app_189 IMPLEMENTATION.
focus_field = 'IdTwo'.
WHEN 'two_enter'.
focus_field = 'IdThree'.
WHEN 'BACK'.
client->nav_app_leave( ).

ENDCASE.
client->view_model_update( ).

Expand All @@ -40,13 +43,16 @@ CLASS z2ui5_cl_demo_app_189 IMPLEMENTATION.

METHOD render.

DATA(page) = z2ui5_cl_xml_view=>factory(
)->shell(
)->page( ).
DATA(page) = z2ui5_cl_xml_view=>factory( )->shell(
)->page(
title = 'abap2UI5 - Focus II'
navbuttonpress = client->_event( 'BACK' )
shownavbutton = xsdbool( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL )
).

page->simple_form(
)->content( ns = 'form'
)->label( 'One' )->input( id = 'IdOne' value = client->_bind_edit( one ) submit = client->_event( 'one_enter' )
)->label( 'One (Press Enter)' )->input( id = 'IdOne' value = client->_bind_edit( one ) submit = client->_event( 'one_enter' )
)->label( 'Two' )->input( id = 'IdTwo' value = client->_bind_edit( two ) submit = client->_event( 'two_enter' )
)->label( 'Three' )->input( id = 'IdThree' value = client->_bind_edit( three )
).
Expand Down