on 08-25-2008 11:22 AM
Hi
how do I set Match Colors in javascript for multiple colors
I tried
obj1.getGridObject().setMatchColors("#aa0000,#bb0000")
but it just seemed to ignore this.
Thanks in advance
Nick
Hi, Nick (and everyone). Here's a tip for using any color-context sensitive applets in MII. Instead of doing numeric matching or complex string matching on the client side, use a BLS transaction and the "calculated column" action to create an additional column in your dataset called "RowColor", and use string matching to match a textual string ("red","green","blue") to the corresponding color code.
This way, you can use the "stringif" function along with all of the expression capabilities of BLS to define the "rules" for selecting a color.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry I have now got this to work, might have been a case sensitive thing?
obj1.getGridObject().setMatchColors("#AA0000,#BB0000")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.