Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAPUI5 Formatter issue

Hi,

I want to implement formatter for displaying a value.

I am getting errors when I use this.

<ObjectNumber number="{

            path: 'Clabs',

            formatter: function(value){

                return value;

            }

}"/>

It works fine when I do this

I am getting errors when I use this.

<ObjectNumber number="{

            path: 'Clabs'

}"/>

I have set this data-sap-ui-xx-bindingSyntax="complex" in my index page too.

Tags:
Former Member
replied

You should include the following command at the beginning of your "*.controller.js" (the file which calls the formatter function):

jQuery.sap.require("yourapp.util.Formatter");

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question