Skip to Content

Add Static Values in Formatter in XMLView

We can add static values in a XML View by defining the static data in i18n properties file.

in file add the below line


In XML View add similar code like this:



Note: ‘NotificationCount’ comes from oData model and i18n>Notifications is the static text from i18n.

You could access both values in formatter as below


hideZeroCount:function(count,id) {

if(id==”Notifications”) {

if(count==0) {

return null;

} else {

return count;




1 Comment
You must be Logged on to comment or reply to a post.