on 04-05-2017 2:15 PM
hello,
I am currently converting a Simpleform into Smartform. In the Simpleform I had used formatter like this:
<ObjectStatus
text="{
path: 'appointments>rest',
formatter: '.formatter.restText'
}"/>
<Label text="Duration" />
<ObjectStatus
text="{
parts:[
{path: 'appointments>starttime'},
{path: 'appointments>endtime'}
],
formatter: '.formatter.dateFormatter'
}"/>
and in the smartform i have the formatter into the SmartFiled like this:
<smartForm:GroupElement>
<smartField:SmartField
extLabel="Dauer"
value="{
parts:[
{path: 'appointments>starttime'},
{path: 'appointments>endtime'}
],
formatter: '.formatter.dateFormatter'
}"
/>
<smartForm:GroupElement>
<smartField:SmartField
textLabel="Abbrechenbar"
value="{
path: 'appointments>flag',
formatter: '.formatter.statusText'
}" />
</smartForm:GroupElement>
in the Simpleform works the formatter perfectly, but in the smartform it does not work,
and in api I can not find a correct solution!
https://sapui5.hana.ondemand.com/explored.html#/entity/sap.ui.comp.smartform.SmartForm/about
Hello ,
Smart field does not support formatters . Since Smart field is closely bound to ODataModel. The necessary transformation needs to be done on the Server.
Thanks and Regards.
Veera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello,
i use the other form with the entries, that need a formatter. And lets the css design as smartform
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.