on 04-12-2018 8:09 PM
Hi this is very simple question but i have some time trying to send the value Good one propertie of a NumericContent
This is my control on the view:
<NumericContent id="estado" value="" valueColor="" width="auto" class="sapUiSmallMargin" />
and this is how i send my propertie:
if (oData.number >= 5 ) {
var Good = new sap.m.ValueColor.Good;
valor.setValueColor(Good);
}
and this is the error:
sap.m.ValueColor.Good is not a constructor
if i send just this valor.setValueColor(Good);
still getting and error but something that it's string always i send just value but this time dependig of the value i need to change the properties
valor.setValueColor(sap.m.ValueColor.Good); valor.setValueColor("Good");
sap.m.ValueColor add this in your controller dependency
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! Jun Wu
I forgot to add that sap.m.ValueColor 😄
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.