Skip to Content

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

How to use hard-code text in Formatter'state..

Hi Experts

I am using formatter to show the status. But when i try to write some hard code value ( Overall Status) then it is also come in status color.

I want to decolor the hard-code text Overall Status.?

how can it be possible??

I am going to attach my code.

  firstStatus:[

                     {

                      text :"OverallStatus:  {OverallStatus}",

                      state: {

                      path:"OverallStatus",

                      formatter:function(id)

              {

              if(id == "Completely proc")

              {

              return "Success"

              }

              if(id=="Not yet process")

              {

              return "Error"

              }

              if(id=="Partially proce")

              {

              return "Warning"

              }

              } }

thanks and regards

Vishnu

Former Member
replied

Hi Vishnu,

Will this help? JS Bin - Collaborative JavaScript Debugging

Regards,

Sai Vellanki.

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question