Skip to Content
Former Member
Jun 30, 2015 at 07:05 AM

Making use of Formatter.status in SAPUI5


Hello Experts,

I am having trouble figuring out how to pass and recall values in formatter.status from the formatter.js file in the xml view, and vice versa.

My oData service has two fields VarPer and Kflag.

Kflag has values either 1, 2 or 3 for all the records in the field VarPer.

I wish to assign status to VarPer in my xml view as per this logic-

status "Success" for Kflag = 1.

status "Warning" for Kflag = 2.

status "Error" for Kflag = 3.

How do I achieve this?

Thank you in advance,

-Nimish Kate