Skip to content

Commit 96b0b7d

Browse files
abapsheepViktor Hoffmann
andauthored
New Frontend Infos (#209)
* Layout V2 A new pitch for a layout. The new version differentiates between different controls. You can now use the layout for e.g. sap.m.Table or sap.ui.Table or build additional controls. The layout is initialized with the method init_layout. In order to be able to save layouts as flexibly as possible for your needs, there are 4 freely definable trades for which the layout can be saved. E.g. Handle01 - class name of the current class Handle02 table name Handle03 warehouse number ... The layout functions can simply be hooked into the XML via the render_layout_function method and all user commands can be handled via the on_event_layout method. Take a look at sample 200. * New Layout Fix * Added some Frontend Infos Device type Resolution --------- Co-authored-by: Viktor Hoffmann <Viktor.Hoffmann@swisskrono.com>
1 parent 885f0bc commit 96b0b7d

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

src/z2ui5_cl_demo_app_122.clas.abap

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ CLASS z2ui5_cl_demo_app_122 DEFINITION
1313
DATA device_os TYPE string.
1414
DATA device_browser TYPE string.
1515
DATA check_initialized TYPE abap_bool.
16-
DATA device_system_desktop TYPE abap_bool.
16+
DATA device_phone TYPE abap_bool.
17+
DATA device_desktop TYPE abap_bool.
18+
DATA device_tablet TYPE abap_bool.
19+
DATA device_combi TYPE abap_bool.
20+
DATA device_height type string.
21+
DATA device_width type string.
22+
23+
1724

1825
PROTECTED SECTION.
1926
DATA client TYPE REF TO z2ui5_if_client.
@@ -48,7 +55,12 @@ CLASS z2ui5_cl_demo_app_122 IMPLEMENTATION.
4855
ui5_gav = client->_bind_edit( ui5_gav )
4956
ui5_theme = client->_bind_edit( ui5_theme )
5057
ui5_version = client->_bind_edit( ui5_version )
51-
device_system_desktop = client->_bind_edit( device_system_desktop )
58+
device_phone = client->_bind_edit( device_phone )
59+
device_desktop = client->_bind_edit( device_desktop )
60+
device_tablet = client->_bind_edit( device_tablet )
61+
device_combi = client->_bind_edit( device_combi )
62+
device_height = client->_bind_edit( device_height )
63+
device_width = client->_bind_edit( device_width )
5264
)->simple_form( title = 'Information' editable = abap_true
5365
)->content( 'form'
5466
)->label( 'device_browser'
@@ -63,8 +75,21 @@ CLASS z2ui5_cl_demo_app_122 IMPLEMENTATION.
6375
)->input( client->_bind_edit( ui5_theme )
6476
)->label( `ui5_version`
6577
)->input( client->_bind_edit( ui5_version )
66-
)->label( `device_system_desktop`
67-
)->input( client->_bind_edit( device_system_desktop )
78+
)->label( `device_phone`
79+
)->input( client->_bind_edit( device_phone )
80+
)->label( `device_desktop`
81+
)->input( client->_bind_edit( device_desktop )
82+
)->label( `device_tablet`
83+
)->input( client->_bind_edit( device_tablet )
84+
)->label( `device_combi`
85+
)->input( client->_bind_edit( device_combi )
86+
)->label( `device_height`
87+
)->input( client->_bind_edit( device_height )
88+
)->label( `device_width`
89+
)->input( client->_bind_edit( device_width )
90+
91+
92+
6893
)->stringify( ) ).
6994

7095
ENDMETHOD.

0 commit comments

Comments
 (0)