(data grid) is there a good workaround for obtaining other column values in FillInData for a Data Grid Table?
josh at dvcreators.net
Wed Aug 18 18:48:06 CDT 2010
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"))
And this code goes into FillInData in the table's behavior, right?
> 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