Skip to content

Commit 8e7bdd2

Browse files
authored
Merge pull request #33 from abap2UI5/claude/fix-string-delimiters-01PgDBDWnGZWUMAJgeUbnmbi
Replace single quotes with backticks in all UI5 bindings
2 parents 7ff8b8d + 399b7f8 commit 8e7bdd2

File tree

5 files changed

+39
-39
lines changed

5 files changed

+39
-39
lines changed

docs/development/model/expression_binding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ CLASS z2ui5_cl_demo_app_max_val IMPLEMENTATION.
2727
` path:"` && client->_bind( val = input32
2828
path = abap_true ) && `" }`
2929
)->input(
30-
value = '{= Math.max($' && client->_bind( input31 ) &&', $' && client->_bind( input32 ) && ') }'
30+
value = `{= Math.max($` && client->_bind( input31 ) &&`, $` && client->_bind( input32 ) && `) }`
3131
enabled = abap_false ).
3232
client->view_display( view->stringify( ) ).
3333

docs/development/model/odata.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ tab->columns(
2828
)->column( )->text( `CountryCode` ).
2929
3030
tab->items( )->column_list_item( )->cells(
31-
)->text( '{FLIGHT>AirportID}'
32-
)->text( '{FLIGHT>Name}'
33-
)->text( '{FLIGHT>City}'
34-
)->text( '{FLIGHT>CountryCode}' ).
31+
)->text( `{FLIGHT>AirportID}`
32+
)->text( `{FLIGHT>Name}`
33+
)->text( `{FLIGHT>City}`
34+
)->text( `{FLIGHT>CountryCode}` ).
3535
```
3636
By using the growing property we can make use of the feature that not all data is loaded at once, leveraging performance.
3737

@@ -51,10 +51,10 @@ METHOD z2ui5_if_app~main.
5151
)->column( )->text( `CountryCode` ).
5252
5353
tab->items( )->column_list_item( )->cells(
54-
)->text( '{FLIGHT>AirportID}'
55-
)->text( '{FLIGHT>Name}'
56-
)->text( '{FLIGHT>City}'
57-
)->text( '{FLIGHT>CountryCode}' ).
54+
)->text( `{FLIGHT>AirportID}`
55+
)->text( `{FLIGHT>Name}`
56+
)->text( `{FLIGHT>City}`
57+
)->text( `{FLIGHT>CountryCode}` ).
5858
5959
client->view_display( tab->stringify( ) ).
6060
@@ -81,10 +81,10 @@ tab->columns(
8181
)->column( )->text( `SupplementID` )->get_parent( ).
8282
8383
tab->items( )->column_list_item( )->cells(
84-
)->text( '{TRAVEL>TravelID}'
85-
)->text( '{TRAVEL>BookingID}'
86-
)->text( '{TRAVEL>BookingSupplementID}'
87-
)->text( '{TRAVEL>SupplementID}' ).
84+
)->text( `{TRAVEL>TravelID}`
85+
)->text( `{TRAVEL>BookingID}`
86+
)->text( `{TRAVEL>BookingSupplementID}`
87+
)->text( `{TRAVEL>SupplementID}` ).
8888
8989
client->view_display( tab->stringify( ) ).
9090
@@ -119,16 +119,16 @@ data(tab) = page->table(
119119
growing = abap_true ).
120120
121121
tab->columns(
122-
)->column( )->text( '{TRAVEL>/#Currency/Currency/@sap:label}' )->get_parent(
123-
)->column( )->text( '{TRAVEL>/#Currency/Currency_Text/@sap:label}' )->get_parent(
124-
)->column( )->text( '{TRAVEL>/#Currency/Decimals/@sap:label}' )->get_parent(
125-
)->column( )->text( '{TRAVEL>/#Currency/CurrencyISOCode/@sap:label}' ).
122+
)->column( )->text( `{TRAVEL>/#Currency/Currency/@sap:label}` )->get_parent(
123+
)->column( )->text( `{TRAVEL>/#Currency/Currency_Text/@sap:label}` )->get_parent(
124+
)->column( )->text( `{TRAVEL>/#Currency/Decimals/@sap:label}` )->get_parent(
125+
)->column( )->text( `{TRAVEL>/#Currency/CurrencyISOCode/@sap:label}` ).
126126
127127
tab->items( )->column_list_item( )->cells(
128-
)->text( '{TRAVEL>Currency}'
129-
)->text( '{TRAVEL>Currency_Text}'
130-
)->text( '{TRAVEL>Decimals}'
131-
)->text( '{TRAVEL>CurrencyISOCode}' ).
128+
)->text( `{TRAVEL>Currency}`
129+
)->text( `{TRAVEL>Currency_Text}`
130+
)->text( `{TRAVEL>Decimals}`
131+
)->text( `{TRAVEL>CurrencyISOCode}` ).
132132
133133
client->view_display( tab->stringify( ) ).
134134

docs/development/model/tables.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ CLASS z2ui5_cl_sample_tab IMPLEMENTATION.
3535
)->column( )->text( `Value` )->get_parent(
3636
)->column( )->text( `Description` ).
3737
tab->items( )->column_list_item( )->cells(
38-
)->text( '{COUNT}'
39-
)->text( '{VALUE}'
40-
)->text( '{DESCR}' ).
38+
)->text( `{COUNT}`
39+
)->text( `{VALUE}`
40+
)->text( `{DESCR}` ).
4141
client->view_display( tab ).
4242
4343
ENDMETHOD.
@@ -63,9 +63,9 @@ Making a table editable is a simple change. You just need to switch the binding
6363
)->column( )->text( `Value` )->get_parent(
6464
)->column( )->text( `Description` ).
6565
tab->items( )->column_list_item( )->cells(
66-
)->text( '{COUNT}'
67-
)->text( '{VALUE}'
68-
)->text( '{DESCR}' ).
66+
)->text( `{COUNT}`
67+
)->text( `{VALUE}`
68+
)->text( `{DESCR}` ).
6969
client->view_display( tab ).
7070
7171
ENDMETHOD.
@@ -131,8 +131,8 @@ CLASS z2ui5_cl_sample_tree IMPLEMENTATION.
131131
DATA(tree) = z2ui5_cl_xml_view=>factory( )->page(
132132
)->tree( items = client->_bind_edit( prodh_nodes )
133133
)->items( )->standard_tree_item(
134-
selected = '{IS_SELECTED}'
135-
title = '{TEXT}' ).
134+
selected = `{IS_SELECTED}`
135+
title = `{TEXT}` ).
136136
137137
client->view_display( tree ).
138138

docs/development/specific/cds.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ CLASS z2ui5_cl_sample_cds IMPLEMENTATION.
3232
)->column( )->text( `SalesOrganization` ).
3333
3434
table->items( )->column_list_item( )->cells(
35-
)->text( '{SALESORDER}'
36-
)->text( '{SALESORDERTYPE}'
37-
)->text( '{SALESORGANIZATION}' ).
35+
)->text( `{SALESORDER}`
36+
)->text( `{SALESORDERTYPE}`
37+
)->text( `{SALESORGANIZATION}` ).
3838
3939
client->view_display( view->stringify( ) ).
4040
@@ -73,9 +73,9 @@ CLASS z2ui5_cl_sample_eml_read IMPLEMENTATION.
7373
)->column( )->text( `SalesOrganization` ).
7474
7575
table->items( )->column_list_item( )->cells(
76-
)->text( '{SALESORDER}'
77-
)->text( '{SALESORDERTYPE}'
78-
)->text( '{SALESORGANIZATION}' ).
76+
)->text( `{SALESORDER}`
77+
)->text( `{SALESORDERTYPE}`
78+
)->text( `{SALESORGANIZATION}` ).
7979
8080
client->view_display( view->stringify( ) ).
8181

docs/technical/cloud.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ CLASS z2ui5_cl_demo_app_003 IMPLEMENTATION.
5757
DATA(view) = z2ui5_cl_xml_view=>factory(
5858
)->list( client->_bind_edit( mt_salesorder )
5959
)->standard_list_item(
60-
title = '{SALESORDER}'
61-
description = '{SALESORGANIZATION}' ).
60+
title = `{SALESORDER}`
61+
description = `{SALESORGANIZATION}` ).
6262
client->view_display( view ).
6363
6464
ENDMETHOD.
@@ -87,8 +87,8 @@ CLASS z2ui5_cl_demo_app_003 IMPLEMENTATION.
8787
DATA(view) = z2ui5_cl_xml_view=>factory(
8888
)->list( client->_bind_edit( mt_salesorder )
8989
)->standard_list_item(
90-
title = '{VBELN}'
91-
description = '{VKORG}' ).
90+
title = `{VBELN}`
91+
description = `{VKORG}` ).
9292
client->view_display( view ).
9393
9494
ENDMETHOD.

0 commit comments

Comments
 (0)