Datagrid template not opening

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Datagrid template not opening

Post by Paul D » Thu Sep 24, 2009 6:49 pm

When I click Row Template... on some of my datagrids, the stack doesnt open. I have 20 something cards in my Data Grid Templates stack. How do I edit that datagrids template? Is there a way to find which card id goes to which datagrid? or get to that template if it doesnt open?

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Post by trevordevore » Thu Sep 24, 2009 8:31 pm

You can check the dgProps["row template"] property of a data grid. It will return a control reference to the control being used as the row template.

If the data grid template stack isn't opening I would first look in the preopenstack or openstack handlers of your mainstack script. If you have logic in there that assumes it is the mainstack opening errors can be generated that keep the data grid template stack from opening.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Thu Sep 24, 2009 9:10 pm

im not getting any errors. it just doesnt open. and its only happening to some datagrids. other datagrids on the same card open just fine. when i try to delete the datagrid that wont open row templates it wont delete them if i click yes to deleting the record template answer box, if i click no it deletes. what did i break? :oops:

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Post by trevordevore » Fri Sep 25, 2009 5:26 am

Just because an error isn't displayed doesn't mean an error isn't occurring. The Revolution IDE might not be displaying the error to you. I'm not sure what would keep the Data Grid template from being deleted (I don't work with the IDE code). What does the dgProps["row template"] proeprty return for the Data Grid you can't delete? Does the control that the "row template" point to exist?
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Fri Sep 25, 2009 12:49 pm

dgProps returns group id 1016 of card id 1015 of stack "Data Grid Templates 1249935398629"

card id 1015 does not exist. hmm... that's unfortunate. ill just delete the datagrid and drag a new one. not really sure what happened though.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Post by trevordevore » Fri Sep 25, 2009 2:39 pm

Hmm, you must have deleted it somehow. By any chance did you duplicate another Data Grid to create this one? I think it you duplicate a Data Grid it shares the same row template with the original. If you deleted the original Data Grid and the row template associated with it then that might explain what happened.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Post Reply