can't find stack error in Datagrid code

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
leston12
Posts: 25
Joined: Thu Mar 28, 2013 8:25 pm
Location: Utah, USA

can't find stack error in Datagrid code

Post by leston12 » Thu May 01, 2014 5:13 pm

Hi all,

I have a project from last summer that I have dusted off and want to tweak some. I just upgraded to the latest stable release (6.6.1) to work on it.

The app uses a datagrid to show records from a db, and it used to work perfectly. In this new version it doesn't. I get an error

An error has occurred in behavior for the column template. Chuck: can't find stack

The error happens in the _table.CreateControlsForColumns handler at this line in the Data Grid script:

...
## Create
repeat for each line the Column in pColumns
...

Any help would be greatly appreciated.
Thanks!
Leston

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: can't find stack error in Datagrid code

Post by Klaus » Thu May 01, 2014 5:29 pm

Hi Leston,

no idea, but is this really in the script:
##repeat for each line the Column in pColumns
?

Should read:
repeat for each line theColumn in pColumns
!


Best

Klaus

leston12
Posts: 25
Joined: Thu Mar 28, 2013 8:25 pm
Location: Utah, USA

Re: can't find stack error in Datagrid code

Post by leston12 » Thu May 01, 2014 5:41 pm

Klaus,
Klaus wrote:no idea, but is this really in the script:
##repeat for each line the Column in pColumns
?
No, that was my typo. It does read '...for each line theColumn in pColumns'

This error happens whenever I try to do anything with the datagrid. I have a stack that is called Data Grid Templates 136591401596, which was created automagically when I added the datagrid functionality (last summer).

I wish I knew what stack it is looking for or why it isn't finding this one.
Leston

leston12
Posts: 25
Joined: Thu Mar 28, 2013 8:25 pm
Location: Utah, USA

Re: can't find stack error in Datagrid code

Post by leston12 » Thu May 01, 2014 7:29 pm

I ended up re-creating my DataGrids. That made LC happy.
Leston

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: can't find stack error in Datagrid code

Post by Klaus » Thu May 01, 2014 8:42 pm

Hi Leston,

yep, sometimes there are in fact Gremlins in a datagrid :D


Best

Klaus

Post Reply

Return to “Talking LiveCode”