Skip to content

switch smart multiinput demo to travel odata servi #464

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
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
8 changes: 8 additions & 0 deletions src/z2ui5_cl_demo_app_000.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -1965,6 +1965,14 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).


panel->generic_tile( header = 'Smart Multi Input'
subheader = ``
press = client->_event( 'z2ui5_cl_demo_app_319' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile( header = 'Smart Controls with Variants'
subheader = ``
press = client->_event( 'Z2UI5_CL_DEMO_APP_313' )
Expand Down
22 changes: 13 additions & 9 deletions src/z2ui5_cl_demo_app_319.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@

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

DATA(l_page) = l_view->shell( appwidthlimited = 'false' )->page(
id = 'SearchPage'
title = TEXT-001
shownavbutton = abap_false
showheader = abap_true ).
DATA(l_page) = l_view->shell( )->page( title = 'SearchPage'
navbuttonpress = m_client->_event( 'BACK' )
shownavbutton = m_client->check_app_prev_stack( ) ).

l_page->_z2ui5( )->smartmultiinput_ext(
addedtokens = m_client->_bind_edit( val = m_selection-product_type-tokens_added switch_default_model = abap_true )
Expand All @@ -66,20 +64,26 @@

l_page->smart_multi_input(
id = 'ProductTypeMultiInput'
value = '{ProductType}'
entityset = 'ProductList'
* value = '{ProductType}'
value = '{CurrencyCode}'
entityset = 'Booking'
supportranges = 'true'
enableodataselect = 'true' ).

m_client->view_display( val = l_page->stringify( )

Check failure on line 73 in src/z2ui5_cl_demo_app_319.clas.abap

View check run for this annotation

abaplint / abaplint

Method importing parameter "SWITCH_DEFAULT_MODEL_ANNO_URI" does not exist

https://rules.abaplint.org/check_syntax
switch_default_model_path = `/sap/opu/odata/sap/UI_PRODUCTLIST`
switchdefaultmodelannouri = `/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='UI_PRODUCTLIST_VAN',Version='0001')/$value` ).
* switch_default_model_path = `/sap/opu/odata/sap/UI_PRODUCTLIST`
switch_default_model_path = `/sap/opu/odata/DMO/UI_TRAVEL_A_D_O2`
* switchdefaultmodelannouri = `/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='UI_PRODUCTLIST_VAN',Version='0001')/$value`
switch_default_model_anno_uri = `/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='%2FDMO%2FUI_TRAVEL_A_D_O2_VAN',Version='0001')/$value`
).

ENDMETHOD.

METHOD on_event.

CASE m_client->get( )-event.
WHEN 'BACK'.
m_client->nav_app_leave( ).
WHEN 'PRODTYPE_CHANGED'.
TRY.
m_client->message_box_display(
Expand Down
Loading