(DataGrid) is there a message when the user has edited a cell ?

zryip theSlug zryip.theslug at gmail.com
Fri Jul 9 09:12:21 CDT 2010


You follow this lesson:
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7321-How-Do-I-Get-Aggregate-Values-for-Columns-

 but instead to have a Sum button outside the Data Grid, you try to refresh
the Sum with the closeFieldEditor, right?


2010/7/9 Andre.Bisseret <Andre.Bisseret at inria.fr>

> Bonjour TheSlug,
>
>  Thank you for your reply.
>
> Seems I am missing something
>
> I have 2 fields under the datagrid where I want to put the total of 2
> columns of the datagrid  (fldTotDébit and fldTotCrédit)
>
> In the script of the datagrid, I put:
>
> on closeFieldEditor pFieldEditor
>   set the text of fld "fldTotDébit" to the uSumOfColumn["Débit"] of me
>   set the text of fld "fldTotCrédit" to the uSumOfColumn["Crédit"] of me
> end closeFieldEditor
>
> but when I edit a cell of the datagrid nothing happens
> Could be because I don"t know what should be the parameter pFieldEditor?
>
> André
>
>
> Le 9 juil. 10 à 14:37, zryip theSlug a écrit :
>
>  Bonjour André,
>>
>> You have to use the CloseFieldEditor event.
>>
>> Have a look to this lesson:
>> http://lessons.runrev.com/manuals/datagrid/lessons/7335
>>
>> Regards,
>>
>> 2010/7/9 Andre.Bisseret <Andre.Bisseret at inria.fr>
>>
>>  Bonjour,
>>>
>>> I have quite small editable data grids.
>>>
>>> I would like to re-calculate the totals of the columns after the user has
>>> changed the value of any cell.
>>>
>>> I don't need to know what cell was edited.
>>>
>>> What message should I use ?
>>>
>>> Thanks in advance for any advice
>>>
>>> Best regards from Grenoble (very hot here!)
>>>
>>>
>>
>>
>> --
>> -Zryip TheSlug- wish you the best! 8)
>> http://www.aslugontheroad.co.cc
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc



More information about the use-livecode mailing list