Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: How to use getMatchValues, setMatchColors in iGrid

$
0
0

Hello Raman,

 

I created a example and the details are below. Pl check if this is helpful.

 

I have following Grid with Tag data.

 

Grid.png

Now in my Java script code I mentioned all the required conditions as below.

 

1. Grid.getGridObject().setDynamicBackground(true);

2. Grid.getGridObject().setMatchColors("Green,Red");

3. Grid.getGridObject().setMatchColumns("Fan1");

4. Grid.getGridObject().setMatchValues("Integer:EXACT_MATCH:1,Integer:EXACT_MATCH:0");

5. Grid.update(true);

 

Statement 1     :  Setting DynamicBackground color checkbox to true.

Statement 2     :  Setting Match colors as Green and Red

Statement 3     :  Setting Condition for Column Fan1

Statement 4     :  This is the format we need to specify our condition. Integer is the type and if it is exactly Matches to 1 and 0. 1 indicates Green and 0 indicates red according to Statement 2.

Statement 5     :  Update Grid with latest changes

 

I enclosed all this code in a function which will be called on a button click. So once the button is clicked, above code gets executed and output will be like this.

 

Grid result.png

Pls find the below screenshot of the complete code.

 

Grid result.png

 

 

Thanks,

Sriram


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>