Skip to content

Commit a7b5c8f

Browse files
authored
token added when some token were changed, to demo sync of tokens (#465)
1 parent cdb4535 commit a7b5c8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/z2ui5_cl_demo_app_319.clas.abap

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ CLASS z2ui5_cl_demo_app_319 DEFINITION PUBLIC.
1616
value1 TYPE string,
1717
value2 TYPE string,
1818
keyField TYPE string,
19+
tokenText TYPE string,
1920
END OF t_range,
2021
t_ranges TYPE STANDARD TABLE OF t_range WITH EMPTY KEY.
2122
DATA:
@@ -64,7 +65,7 @@ CLASS z2ui5_cl_demo_app_319 IMPLEMENTATION.
6465

6566
l_page->smart_multi_input(
6667
id = 'ProductTypeMultiInput'
67-
* value = '{ProductType}'
68+
* value = '{ProductType}'
6869
value = '{CurrencyCode}'
6970
entityset = 'Booking'
7071
supportranges = 'true'
@@ -85,6 +86,8 @@ CLASS z2ui5_cl_demo_app_319 IMPLEMENTATION.
8586
WHEN 'BACK'.
8687
m_client->nav_app_leave( ).
8788
WHEN 'PRODTYPE_CHANGED'.
89+
INSERT VALUE #( operation = 'EQ' value1 = 'EUR' keyField = 'CurrencyCode' tokenText = 'Euro (auto added line)' ) INTO TABLE m_selection-product_type-ranges.
90+
m_client->view_model_update( ).
8891
TRY.
8992
m_client->message_box_display(
9093
text = z2ui5_cl_ajson=>new( )->set( iv_path = '/' iv_val = m_selection-product_type-ranges )->stringify( )

0 commit comments

Comments
 (0)