(data grid) is there a good workaround for obtaining other column values in FillInData for a Data Grid Table?
bobs at twft.com
Wed Aug 18 11:00:22 CDT 2010
Also, if the displayed values is all you care about, then can't you only do calculations for the displayed data as opposed to the entire dataset? Obviously this will not work if you want to extract the entire data set and work with it later.
On Aug 18, 2010, at 6:21 AM, Trevor DeVore wrote:
> On Aug 17, 2010, at 10:52 PM, Mike Bonner wrote:
>> If you set a custom behavior for the column you want the sum in, and
>> where it has the section for filling data, put
>> put the dgDataOfIndex[ the dgIndex of me] of the dgControl of me
>> into theDataA
>> set the text of field 1 of me to (theDataA["Col 2"] + theDataA["Col 3"])
>> Should work fine. Not positive this is the best method, but seems to
>> work dandy fine with small datasets. Haven't tried it with big ugly
> If you didn't want to fetch all of the data for the entire row you could use GetDataOfIndex. GetDataOfIndex only retrieves the value of a specific column.
> put the dgIndex of me into theIndex
> set the text of field 1 of me to (GetDataOfIndex(theIndex, "Col 2") + GetDataOfIndex(theIndex, "Col 3"))
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode