Skip to content

Update Issue #248

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

Merged
merged 3 commits into from
Jul 3, 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_211.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ CLASS z2ui5_cl_demo_app_211 IMPLEMENTATION.

mt_t002 = VALUE #( class = 'Z2UI5_CL_DEMO_APP_212'
( id = '1' count = '5' table = 'Z2UI5_T003' descr = 'Table 01' icon = 'sap-icon://add' )
( id = '2' count = '10' table = 'Z2UI5_T003' descr = 'Table 01' icon = 'sap-icon://add' )
* ( id = '2' count = '10' table = 'Z2UI5_T003' descr = 'Table 01' icon = 'sap-icon://add' )
( id = '3' count = '15' table = 'Z2UI5_T004' descr = 'Table 02' icon = 'sap-icon://accept' ) ).

mv_selectedkey = '1'.
Expand Down
17 changes: 8 additions & 9 deletions src/z2ui5_cl_demo_app_212.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ CLASS z2ui5_cl_demo_app_212 DEFINITION
DATA mv_view_display TYPE abap_bool.
DATA mv_view_model_update TYPE abap_bool.
DATA mo_parent_view TYPE REF TO z2ui5_cl_xml_view.
DATA mv_table TYPE string.
DATA mt_table TYPE REF TO data.
DATA mt_table_tmp TYPE REF TO data.
DATA ms_table_row TYPE REF TO data.
DATA mt_comp TYPE abap_component_tab.
DATA ms_layout TYPE z2ui5_cl_pop_layout_v2=>ty_s_layout.
DATA mt_dfies TYPE z2ui5_cl_stmpncfctn_api=>ty_t_dfies.

METHODS set_app_data
IMPORTING
!table TYPE string.

PROTECTED SECTION.
DATA mv_table TYPE string.
DATA mt_comp TYPE abap_component_tab.
DATA mt_dfies TYPE z2ui5_cl_stmpncfctn_api=>ty_t_dfies.
DATA client TYPE REF TO z2ui5_if_client.
DATA check_initialized TYPE abap_bool.

Expand Down Expand Up @@ -127,7 +127,7 @@ CLASS z2ui5_cl_demo_app_212 IMPLEMENTATION.

DATA(popup) = z2ui5_cl_xml_view=>factory_popup( ).

DATA(simple_form) = popup->dialog( contentwidth = '60%'
DATA(content) = popup->dialog( contentwidth = '60%'
)->simple_form( layout = 'ResponsiveGridLayout'
editable = abap_true
)->content( ns = 'form' ).
Expand All @@ -143,12 +143,11 @@ CLASS z2ui5_cl_demo_app_212 IMPLEMENTATION.

DATA(text) = ms_layout-t_layout[ fname = dfies->fieldname ]-tlabel.

simple_form->label( design = COND #( WHEN dfies->keyflag = abap_true THEN 'Bold' )
text = text ).
content->label( text = text ).

simple_form->input( value = client->_bind_edit( <val> )
enabled = abap_false
showvaluehelp = abap_false ).
content->input( value = client->_bind_edit( <val> )
enabled = abap_false
showvaluehelp = abap_false ).

ENDLOOP.

Expand Down