cancel
Showing results for 
Search instead for 
Did you mean: 

Flexview color icon expression

Flexview color icon expression

Dan15
Contributor

I have a column in a flexview that I’d like to display a color button depending on the value. I was able to make that working in the console but in Oneview it does display the column, but no color button or the value, only a dash string. I was looking at the BOSS vlan flexview how it was done for the “vlan status”, I did the same but without success. Any hints?

1 ACCEPTED SOLUTION

Zdeněk_Pala
Extreme Employee

Hi,

 

It can be done = see example here

You can reverse engineer the example.

 

If your flexview works in Java Console then for OneView you need to manually edit the TPL file and change the value 2 (number) to 15 (string). The first number after EXPR;true represents the formating.

Example:

<dataField>SNMP::EXPR;true;15;

 

Regards Zdeněk Pala

View solution in original post

5 REPLIES 5

Dan15
Contributor

I have a github account but I’m a complete noob. I have Flex and Device View files or Nokia Service aggregation routers. I put the files here: https://1drv.ms/u/s!Ata1Shvsw6cAb28ZExTDUKqYjeE?e=JpqvCx

 

Zdeněk_Pala
Extreme Employee

I am glad it worked for you! Congrats!

 

If you have a GitHub account then yes you can do it on your own!

  • Fork the branch
  • Make your edits.
  • Commit your changes.
  • Create a pull request.
  • We will review and approve & merge or return with some suggestions.

if you do not have a GitHub account then I can do it. Share the FlexView with me (through private message or here).

Regards Zdeněk Pala

Dan15
Contributor

Changing the value from 2 to 15 in the tpl file did the trick. Thanks! Can I share the Flexviews directly on github?

Zdeněk_Pala
Extreme Employee

when you share the flexview then more people can benefit from it.

Regards Zdeněk Pala
GTM-P2G8KFN