Page 1 of 1
I broke the datagrid
Posted: Thu Oct 29, 2009 5:25 pm
by sturgis
Hey, need some help to fix my datagrid functionality.
Something happened. Don't know what. My older apps with datagrid work fine, but if I recreate the same app by hand now, my datagrids toss an error.
The popup error is "an error as occurred in behavior for the row template:
Chunk: no such object.
Since i'm using tRev. clicking Ok pops the script up for btn "Data Grid"at line 6921 where it says "throw empty"
Can someone give me a clue how to fix this?
Posted: Thu Oct 29, 2009 6:18 pm
by sturgis
Got it fixed, must have managed to corrupt the revdatagridlibrary.rev file. Replaced it with a fresh copy and everything is good again.
Posted: Thu Oct 29, 2009 6:18 pm
by trevordevore
Sounds like your FillInData or LayoutControl handler is referring to an object that doesn't exist in the row template. I would check your object references in your row behavior script.
One quick way to find the culprit is to wrap your FillInData or LayoutControl code in try/catch:
Code: Select all
on FillInData ...
try
...
catch e
put e
end try
end FillInData
This would print the full error out in the message box.
Posted: Thu Oct 29, 2009 6:27 pm
by sturgis
Hey, thats a cool trick! I'll stash it away for later. This time i'm pretty sure I just managed to toast something behind the scenes. Replacing all the files in toolset fixed the problem. Didn't have to replace all of em I suppose, but who knows what else I managed to mess up.
Everything is working dandy now. Definately adding your tip to my notebook tho.
Still not sure what I did to cause the issue in the first place.
trevordevore wrote:Sounds like your FillInData or LayoutControl handler is referring to an object that doesn't exist in the row template. I would check your object references in your row behavior script.
One quick way to find the culprit is to wrap your FillInData or LayoutControl code in try/catch:
Code: Select all
on FillInData ...
try
...
catch e
put e
end try
end FillInData
This would print the full error out in the message box.