on 05-10-2017 2:15 PM
Hi,
I have the following piece of code.
Target Version - 1.36.12
var oInput = new sap.m.Input({
value: {
path: "/quantity", //^\d{1,3}(\.\d{0,2})?$
type: new sap.ui.model.type.String(
null,
{search: new RegExp("[0-9]{2}/[0-9]{2}/[0-9]{4}")
}//
)
}
});
It is working fine as expected when the element is created from Javascript.
For our scenario, we need to use it in existing XML View.
Looking for the same functionality through XML View
<Input maxLength="16" textAlign="Right"
id="testInput"
value="{
path : '/testProperty',
type : 'sap.ui.model.type.String',
formatOptions : {
minFractionDigits : 2,
search: '[0-9]{2}/[0-9]{2}/[0-9]{4}'
}
}"
valueLiveUpdate="false"
>
</Input>
The above XML code which I came up with is not working similar to the JS Code.
Thanks in advance,
Ravi
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.