Skip to content

Commit

Permalink
Added everything for Step 14: Expression Binding
Browse files Browse the repository at this point in the history
  • Loading branch information
wridgeu committed May 20, 2020
1 parent ff5114c commit eb30253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions webapp/controller/Home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sap.ui.define(
country: "Germany",
},
salesToDate: 12345.6789,
priceThreshold: 20,
currencyCode: "EUR",
});

Expand Down
2 changes: 1 addition & 1 deletion webapp/view/Home.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
],
type: 'sap.ui.model.type.Currency',
formatOptions: { showMeasure: false }
}" numberUnit="{/currencyCode}">
}" numberUnit="{/currencyCode}" numberState="{= ${products>UnitPrice} > ${/priceThreshold} ? 'Error' : 'Success' }">
<attributes>
<ObjectAttribute text="{products>QuantityPerUnit}"/>
<ObjectAttribute title="{i18n>stockValue}" text="{
Expand Down

0 comments on commit eb30253

Please sign in to comment.