Datagrids and Nested Behaviors
Bob Sneidar
bobsneidar at iotecdigital.com
Mon Jul 23 11:08:30 EDT 2018
Hi all.
With a clearer head I have discovered that indeed setting the behavior in the way prescribed sets it GLOBALLY for ALL grids! That will not do for my purposes, because the grids in my substacks operate a bit differently than the one in the mainstack.
Well my workaround before was to put the special handlers for those grids in the respective card or stack scripts. It looks like I will have to go back to that. Curious though that setting the behavior of a datagrid to a custom button, then setting the behavior of the button to the old datagrid behavior button fails. I think that is the real bug, and I have submitted a request to look at that. Othewise we have to say that nested behaviors are not presently fully supported with datagrids.
Bob S
> On Jul 20, 2018, at 21:26 , Brian Milby via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> @Richard,
> That is precisely what I saw when I did my test. (And DG3 was in a
> different stack.)
> I tried manually replacing the old button with one in the stack and that
> completely broke the DG.
>
> @Bob
> Another option to get script in front of the library would be to set the
> script of:
> button id 1005 of stack "revDataGridLibrary"
> That still wouldn't save with the stack though.
More information about the use-livecode
mailing list