Skip to content

Commit b898c86

Browse files
committed
Replace single quotes with backticks in UI5 composite bindings
- Fixed all UI5 composite binding parts arrays to use backticks instead of single quotes - Changed '{ client->_bind_edit(...) }' to `{ client->_bind_edit(...) }` - Applied to Currency formatters and odata String type bindings - Maintains consistency with Clean ABAP string literal standards File: docs/development/specific/formatter.md
1 parent d7d2475 commit b898c86

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

docs/development/specific/formatter.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,51 +53,51 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION.
5353
href = `https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency`
5454
)->label( `One field`
5555
)->input(
56-
|\{ parts: [ '{ client->_bind_edit( val = amount
57-
path = abap_true ) }', '{ client->_bind_edit(
56+
|\{ parts: [ `{ client->_bind_edit( val = amount
57+
path = abap_true ) }`, `{ client->_bind_edit(
5858
val = currency
59-
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' \}|
59+
path = abap_true ) }`], type: 'sap.ui.model.type.Currency' \}|
6060
)->label( `Two field`
6161
)->input(
62-
|\{ parts: [ '{ client->_bind_edit( val = amount
63-
path = abap_true ) }', '{ client->_bind_edit(
62+
|\{ parts: [ `{ client->_bind_edit( val = amount
63+
path = abap_true ) }`, `{ client->_bind_edit(
6464
val = currency
65-
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{showMeasure: false\} \}|
65+
path = abap_true ) }`], type: 'sap.ui.model.type.Currency' , formatOptions: \{showMeasure: false\} \}|
6666
)->input(
67-
|\{ parts: [ '{ client->_bind_edit( val = amount
68-
path = abap_true ) }', '{ client->_bind_edit(
67+
|\{ parts: [ `{ client->_bind_edit( val = amount
68+
path = abap_true ) }`, `{ client->_bind_edit(
6969
val = currency
70-
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{showNumber: false\} \}|
70+
path = abap_true ) }`], type: 'sap.ui.model.type.Currency' , formatOptions: \{showNumber: false\} \}|
7171
)->label( `Default`
7272
)->text(
73-
|\{ parts: [ '{ client->_bind_edit( val = amount
74-
path = abap_true ) }', '{ client->_bind_edit(
73+
|\{ parts: [ `{ client->_bind_edit( val = amount
74+
path = abap_true ) }`, `{ client->_bind_edit(
7575
val = currency
76-
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' \}|
76+
path = abap_true ) }`], type: 'sap.ui.model.type.Currency' \}|
7777
)->label( `preserveDecimals:false`
78-
)->text( |\{ parts: [ '{ client->_bind_edit( val = amount
79-
path = abap_true ) }', '| && client->_bind_edit(
78+
)->text( |\{ parts: [ `{ client->_bind_edit( val = amount
79+
path = abap_true ) }`, `| && client->_bind_edit(
8080
val = currency
8181
path = abap_true ) &&
82-
|'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ preserveDecimals : false \} \}|
82+
|`], type: 'sap.ui.model.type.Currency' , formatOptions: \{ preserveDecimals : false \} \}|
8383
)->label( `currencyCode:false`
84-
)->text( |\{ parts: [ '{ client->_bind_edit( val = amount
85-
path = abap_true ) }', '| && client->_bind_edit(
84+
)->text( |\{ parts: [ `{ client->_bind_edit( val = amount
85+
path = abap_true ) }`, `| && client->_bind_edit(
8686
val = currency
8787
path = abap_true ) &&
88-
|'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ currencyCode : false \} \}|
88+
|`], type: 'sap.ui.model.type.Currency' , formatOptions: \{ currencyCode : false \} \}|
8989
)->label( `style:'short'`
9090
)->text(
91-
|\{ parts: [ '{ client->_bind_edit( val = amount
92-
path = abap_true ) }', '{ client->_bind_edit(
91+
|\{ parts: [ `{ client->_bind_edit( val = amount
92+
path = abap_true ) }`, `{ client->_bind_edit(
9393
val = currency
94-
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ style : 'short' \} \}|
94+
path = abap_true ) }`], type: 'sap.ui.model.type.Currency' , formatOptions: \{ style : 'short' \} \}|
9595
)->label( `style:'long'`
9696
)->text(
97-
|\{ parts: [ '{ client->_bind_edit( val = amount
98-
path = abap_true ) }', '{ client->_bind_edit(
97+
|\{ parts: [ `{ client->_bind_edit( val = amount
98+
path = abap_true ) }`, `{ client->_bind_edit(
9999
val = currency
100-
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ style : 'long' \} \}|
100+
path = abap_true ) }`], type: 'sap.ui.model.type.Currency' , formatOptions: \{ style : 'long' \} \}|
101101
)->label( `event`
102102
)->button( text = `send`
103103
press = client->_event( `BUTTON` ) ).
@@ -115,9 +115,9 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION.
115115
)->label( `Without leading Zeros`
116116
117117
)->text(
118-
text = |\{path : '{ client->_bind_edit(
118+
text = |\{path : `{ client->_bind_edit(
119119
val = numeric
120-
path = abap_true ) }', type : 'sap.ui.model.odata.type.String', constraints : \{ isDigitSequence : true \} \}| ).
120+
path = abap_true ) }`, type : 'sap.ui.model.odata.type.String', constraints : \{ isDigitSequence : true \} \}| ).
121121
122122
client->view_display( page->stringify( ) ).
123123

0 commit comments

Comments
 (0)