Datagrids and Nested Behaviors

Bob Sneidar bobsneidar at iotecdigital.com
Tue Jul 24 17:03:07 CEST 2018


Never mind Brian, it works. I had the behavior of the custom button set the the behavior STACK and NOT the reDataGridLibrary stack button (now empty). 

Once I got the behavior of the custom button set to the old behavior button, the datagrid now works! You guys are freaking geniuses! 

Bob S


> On Jul 24, 2018, at 07:57 , Brian Milby via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I’ll put something together tonight. The code in the library has to be updated before opening a card with a DG that has the adjusted behavior chain. I have an idea on how to do it in script, but need to test it out to verify it will work.
> On Jul 24, 2018, 9:54 AM -0500, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>, wrote:
>> I did so. I get this when opening my test stack:
>> 
>> 91,260,123
>> 62,260,123
>> 77,260,123
>> 456,260,57
>> 534,260,123
>> 253,260,123
>> 241,236,1,_Initialize
>> 353,0,0,stack "/Applications/LiveCode Community 9.0.1 (rc 1).app/Contents/Tools/Toolset/palettes/revdatagridlibrary/behaviorsdatagridbuttonbehavior.livecodescript"
>> 573,188,1,_Initialize
>> 
>> I'll poke around later.
>> 
>> Bob S
>> 
>> 
>>> On Jul 23, 2018, at 22:12 , Brian Milby via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> local sResourceStack
>>> private function _ResourceStack
>>> local theStack, theCharNo
>>> 
>>> if sResourceStack is empty then
>>> put the behavior of me into theStack
>>> 
>>> repeat
>>> if trueWord -1 of theStack is "revDataGridLibrary" or theStack is
>>> empty then
>>> exit repeat
>>> else
>>> put the behavior of theStack into theStack
>>> end if
>>> end repeat
>>> 
>>> if theStack is not empty then
>>> put offset(" of stack", theStack) into theCharNo
>>> delete char 1 to (theCharNo + 3) of theStack
>>> end if
>>> put theStack into sResourceStack
>>> end if
>>> 
>>> return sResourceStack
>>> end _ResourceStack
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 



More information about the use-livecode mailing list