DragonRAD Forum
June 19, 2013, 08:24:35 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Setting color of an individual cell in grid  (Read 630 times)
jareds
Member
*
Posts: 14


View Profile
« on: April 17, 2012, 01:46:17 AM »

HI

Is it possible to set a specific cell of a grid to a certain colour?

I want to capture barcodes on the device and after each single code is captured, compare them with the grid column and set the colour of those records not matched to 'red'.
Logged
Rob Nicol
Seregon
****
Posts: 82


View Profile
« Reply #1 on: April 17, 2012, 12:29:06 PM »

This can be done two ways:
1) Using a lua script and changing the GridRow.backcolor
http://dragonrad.com/foswiki/bin/view/Help/DragonRADObjectTypes#GridRow

2) or it can be done with a Row Display Actions
The caveat with the Row Display Action is that the scanned value will have to be set in each row so that it can be compared to another column in the row. If they are not equal, the action can be setup to change a cell, or the entire row's backcolor.
Logged
jareds
Member
*
Posts: 14


View Profile
« Reply #2 on: April 20, 2012, 03:33:45 AM »

That seems to work if im comparing the table column with a literal value (i.e string) in the compare values section of the trigger.


Is there a way to change this to be a drop down box for a field id?

Logged
Rob Nicol
Seregon
****
Posts: 82


View Profile
« Reply #3 on: April 20, 2012, 05:34:53 AM »

The drop down is not available, but would be a nice feature that we can look into.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!