Hi,
Can i add image in a RecordGridCell without using cell-spec for that particular RecordGridColumn?
Thanks
varsha
Tags:
recordgrid
{method public open {refresh-data}:void
{super.refresh-data}
let constant (str:String, valid?:bool) = {self.get-formatted-data}
{if not valid? then
{self.remove-the-pixmap}
{return}
}
let constant (pixmap:Pixmap, valid?:bool) = {the-cache.get-if-exists str}
{if valid? then
{if pixmap == self.displayed-pixmap then
{return}
else
{self.display-the-pixmap pixmap}
}
else
{self.make-and-display-pixmap str}
}
}
{method public open {refresh-data}:void
{super.refresh-data}
let constant (str:String, valid?:bool) = {self.get-formatted-data}
{if not valid? then
{self.remove-the-pixmap}
{return}
}
let constant id:int =
{if-non-null record = self.record then
{record.get "unqiue-index-field"} asa int
else
-1
}
let constant the-cache:{HashTable-of String, Pixmap} =
{if {the-list-of-alt-records.find id} == -1 then
main-pixmap-cache
else
alternate-pixmap-cache
}
let constant (pixmap:Pixmap, valid?:bool) = {the-cache.get-if-exists str}
{if valid? then
{if pixmap == self.displayed-pixmap then
{return}
else
{self.display-the-pixmap pixmap}
}
else
{self.make-and-display-pixmap str, the-cache}
}
}