Datagrid: help with "EditFieldText"
David Bovill
david at architex.tv
Sat May 9 11:57:43 EDT 2009
Update - started working after quitting Rev and coming back to work - ah the
magical wonders of a cup of tea :)
2009/5/9 David Bovill <david at architex.tv>
> I have a datagrid form, with a custom row template. I am having problems
> with a field that will not update the dgData when edited. The others work
> fine and their properties (ie "autotab" seem to be identical). I have named
> the fields the same as the keys in dgData. Having problems debuging, as the
> debugger is not playing well with the behaviors.
>
> on mouseDoubleUp pMouseBtnNum
>> if pMouseBtnNum is 1 then
>> if the dgProps["allow editing"] of the dgControl of me then
>> put the long id of the target into targetObject
>> put the short name of targetObject into theKey
>> put the dgIndex of me into lineNum
>>
>> switch
>> case theKey is among the items of "title,ruggedID,helpURL"
>> EditFieldText targetObject, lineNum, theKey
>> break
>> end switch
>> end if
>> end if
>> pass mouseDoubleUp
>> end mouseDoubleUp
>>
>
> Any idea what to look for?
>
More information about the use-livecode
mailing list