Skip to content

Commit 8b20f4c

Browse files
committed
Replace remaining single quotes with backticks in UI5 view code
- dx.md: Replace DEFAULT and type parameters - view.md: Replace page and Text parameters - expression_binding.md: Replace label and input expression binding strings - odata.md: Replace table column header text values
1 parent 52cd16c commit 8b20f4c

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

docs/development/model/expression_binding.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ CLASS z2ui5_cl_demo_app_max_val IMPLEMENTATION.
1919
2020
DATA(view) = z2ui5_cl_xml_view=>factory( ).
2121
view->shell( )->page(
22-
)->label( 'max value of the first two inputs'
23-
)->input( '{ type : "sap.ui.model.type.Integer",' &&
24-
' path:"' && client->_bind( val = input31
25-
path = abap_true ) && '" }'
26-
)->input( '{ type : "sap.ui.model.type.Integer",' && |\n| &&
27-
' path:"' && client->_bind( val = input32
28-
path = abap_true ) && '" }'
22+
)->label( `max value of the first two inputs`
23+
)->input( `{ type : "sap.ui.model.type.Integer",` &&
24+
` path:"` && client->_bind( val = input31
25+
path = abap_true ) && `" }`
26+
)->input( `{ type : "sap.ui.model.type.Integer",` && |\n| &&
27+
` path:"` && client->_bind( val = input32
28+
path = abap_true ) && `" }`
2929
)->input(
3030
value = '{= Math.max($' && client->_bind( input31 ) &&', $' && client->_bind( input32 ) && ') }'
3131
enabled = abap_false ).
@@ -51,13 +51,13 @@ CLASS z2ui5_cl_demo_editable IMPLEMENTATION.
5151
5252
DATA(view) = z2ui5_cl_xml_view=>factory( ).
5353
view->shell( )->page(
54-
)->label( 'only enabled when the quantity equals 500'
55-
)->input( '{ type : "sap.ui.model.type.Integer",' &&
56-
' path:"' && client->_bind( val = quantity
54+
)->label( `only enabled when the quantity equals 500`
55+
)->input( `{ type : "sap.ui.model.type.Integer",` &&
56+
` path:"` && client->_bind( val = quantity
5757
path = abap_true ) && `" }`
5858
)->input(
5959
value = product
60-
enabled = '{= 500===$' && client->_bind( quantity ) && ' }' ).
60+
enabled = `{= 500===$` && client->_bind( quantity ) && ` }` ).
6161
client->view_display( view->stringify( ) ).
6262
6363
ENDMETHOD.

docs/development/model/odata.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ DATA(tab) = z2ui5_cl_xml_view=>factory( )->page( )->table(
2222
growing = abap_true ).
2323
2424
tab->columns(
25-
)->column( )->text( 'AirportID' )->get_parent(
26-
)->column( )->text( 'Name' )->get_parent(
27-
)->column( )->text( 'City' )->get_parent(
28-
)->column( )->text( 'CountryCode' ).
25+
)->column( )->text( `AirportID` )->get_parent(
26+
)->column( )->text( `Name` )->get_parent(
27+
)->column( )->text( `City` )->get_parent(
28+
)->column( )->text( `CountryCode` ).
2929
3030
tab->items( )->column_list_item( )->cells(
3131
)->text( '{FLIGHT>AirportID}'
@@ -45,10 +45,10 @@ METHOD z2ui5_if_app~main.
4545
growing = abap_true ).
4646
4747
tab->columns(
48-
)->column( )->text( 'AirportID' )->get_parent(
49-
)->column( )->text( 'Name' )->get_parent(
50-
)->column( )->text( 'City' )->get_parent(
51-
)->column( )->text( 'CountryCode' ).
48+
)->column( )->text( `AirportID` )->get_parent(
49+
)->column( )->text( `Name` )->get_parent(
50+
)->column( )->text( `City` )->get_parent(
51+
)->column( )->text( `CountryCode` ).
5252
5353
tab->items( )->column_list_item( )->cells(
5454
)->text( '{FLIGHT>AirportID}'
@@ -75,10 +75,10 @@ DATA(tab) = z2ui5_cl_xml_view=>factory( )->page( )->table(
7575
growing = abap_true ).
7676
7777
tab->columns(
78-
)->column( )->text( 'TravelID' )->get_parent(
79-
)->column( )->text( 'BookingID' )->get_parent(
80-
)->column( )->text( 'BookingSupplementID' )->get_parent(
81-
)->column( )->text( 'SupplementID' )->get_parent( ).
78+
)->column( )->text( `TravelID` )->get_parent(
79+
)->column( )->text( `BookingID` )->get_parent(
80+
)->column( )->text( `BookingSupplementID` )->get_parent(
81+
)->column( )->text( `SupplementID` )->get_parent( ).
8282
8383
tab->items( )->column_list_item( )->cells(
8484
)->text( '{TRAVEL>TravelID}'

docs/development/view.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ You can use any UI5 control available in the UI5 SDK. However, working with XML
2525
client->view_display(
2626
z2ui5_cl_xml_view=>factory(
2727
)->shell(
28-
)->page( 'My title'
29-
)->Text( 'My text'
28+
)->page( `My title`
29+
)->Text( `My text`
3030
)->stringify( ) ).
3131
3232
ENDMETHOD.

docs/technical/dx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ Input handling was never a challenge in classic ABAP — just define a Report wi
4646

4747
```abap
4848
REPORT zre_app_input.
49-
PARAMETERS pa_arbgb TYPE t100-arbgb DEFAULT 'MDG_TR'.
49+
PARAMETERS pa_arbgb TYPE t100-arbgb DEFAULT `MDG_TR`.
5050
START-OF-SELECTION.
51-
MESSAGE |Input: { pa_arbgb }| type 'I'.
51+
MESSAGE |Input: { pa_arbgb }| type `I`.
5252
```
5353
Benefits:
5454
- Rapid prototyping with minimal code

0 commit comments

Comments
 (0)