Skip to content
Merged
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
42 changes: 32 additions & 10 deletions src/z2ui5_cl_demo_app_306.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,23 @@
selected TYPE abap_bool,
END OF ty_picture.

TYPES:
BEGIN OF t_combo,
key TYPE string,
text TYPE string,
END OF t_combo,
tt_combo TYPE STANDARD TABLE OF t_combo WITH EMPTY KEY.


DATA mt_picture TYPE STANDARD TABLE OF ty_picture WITH EMPTY KEY.
DATA mt_picture_out TYPE STANDARD TABLE OF ty_picture WITH EMPTY KEY.
DATA mv_pic_display TYPE string.
DATA mv_check_init TYPE abap_bool.
DATA mv_picture_base TYPE string.
DATA facing_mode TYPE string.
DATA facing_modes TYPE tt_combo.
DATA device TYPE string.
DATA devices TYPE tt_combo.

PROTECTED SECTION.

Expand All @@ -29,7 +40,6 @@
client TYPE REF TO z2ui5_if_client.

PRIVATE SECTION.

ENDCLASS.


Expand All @@ -47,17 +57,24 @@
shownavbutton = xsdbool( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL ) ).

page->vbox( class = `sapUiSmallMargin`
)->label( text = `facingMode: ` labelfor = `Combo`
)->combobox( id = `Combo` selectedkey = client->_bind_edit( facing_mode )
)->item( key = `environment` text = `environment`
)->item( key = `user` text = `user`
)->item( key = `left` text = `left`
)->item( key = `right` text = `right` ).
)->label( text = `facingMode: ` labelfor = `ComboFacingMode`
)->combobox( id = `ComboFacingMode` selectedkey = client->_bind_edit( facing_mode )
items = `{path:'` && client->_bind_edit( val = facing_modes path = abap_true ) && `', sorter: { path: 'TEXT' } }`
)->get( )->item( key = `{KEY}` text = `{TEXT}` ).

page->vbox( class = `sapUiSmallMargin`
)->label( text = `device: ` labelfor = `ComboDevice`
)->_z2ui5( )->camera_selector(

Check failure on line 67 in src/z2ui5_cl_demo_app_306.clas.abap

View check run for this annotation

abaplint / abaplint

Method "camera_selector" not found, methodCallChain

https://rules.abaplint.org/check_syntax
id = `ComboDevice`
selectedkey = client->_bind_edit( device )
items = `{path:'` && client->_bind_edit( val = devices path = abap_true ) && `', sorter: { path: 'TEXT' } }`
)->get( )->item( key = `{KEY}` text = `{TEXT}` ).

page->_z2ui5( )->camera_picture(
value = client->_bind_edit( mv_picture_base )

Check failure on line 74 in src/z2ui5_cl_demo_app_306.clas.abap

View check run for this annotation

abaplint / abaplint

Method importing parameter "DEVICEID" does not exist

https://rules.abaplint.org/check_syntax
onphoto = client->_event( 'CAPTURE' )
facingmode = client->_bind_edit( facing_mode ) ).
facingmode = client->_bind_edit( facing_mode )
deviceid = client->_bind_edit( device ) ).

page->list(
headertext = 'List Ouput'
Expand Down Expand Up @@ -89,11 +106,16 @@
METHOD z2ui5_if_app~main.

IF mv_check_init = abap_false.

mv_check_init = abap_true.

facing_mode = `environment`.
view_display( client ).
facing_modes = VALUE tt_combo( ( key = `` text = `` )
( key = `environment` text = `environment` )
( key = `user` text = `user` )
( key = `left` text = `left` )
( key = `right` text = `right` ) ).

view_display( client ).

ENDIF.

Expand Down
Loading