on 10-20-2015 5:36 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alternatively, you can use the second status and avoid javascript.
JS Bin - Collaborative JavaScript Debugging
and add css
.sapMObjLBottomRow {
float: right;
display: flex;
}
.sapMObjLBottomRow>div{
margin-left: 4px;
}
Thanks
-D
Hi Vishnu ,
You can use path,formatter function for this.check the example
JS Bin - Collaborative JavaScript Debugging
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeesh
I want to write hard code text (Overall Status) before Status(shipped / open / in processed) .
But hard code text also come in the same color like Status. and I want to decolor it.Just look at screenshot , i already attach original post.
Could you please help me out..
thanks and regards
vishnu
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.