Multiple datagrids

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Peoples
Posts: 2
Joined: Mon Jul 08, 2013 7:06 pm

Multiple datagrids

Post by Peoples » Mon Jul 08, 2013 7:14 pm

I have an issue where I have multiple datagrids on one card, one datagrid contains information for my database which is passed to the other datagrid which I hidden, once the visible datagrid is hidden the other one is set to visible and vis-a-vis.

Now I can manipulate data and switch out datagrids fine in development mode, but once I compile as a standalone the datagrid isn't clickable anymore and doesn't refresh data.

Is there an issue with multiple datagrids on one card conflicting?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10356
Joined: Wed May 06, 2009 2:28 pm

Re: Multiple datagrids

Post by dunbarx » Mon Jul 08, 2013 8:04 pm

Hi.

Not sure, but note that when using a datagrid in a standalone, especially when using the "splash" stack method, you must manually attach a "dataGrid Templates" stack onto the executable in order to trick the standalone builder into adding the necessary libraries.

See:

http://lessons.runrev.com/s/lessons/m/d ... -data-grid

Craig Newman

Peoples
Posts: 2
Joined: Mon Jul 08, 2013 7:06 pm

Re: Multiple datagrids

Post by Peoples » Wed Jul 10, 2013 11:16 pm

That fixed it thanks everything works perfectly...

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Multiple datagrids

Post by Klaus » Thu Jul 11, 2013 12:06 pm

An easier way is to simply add a (empty) datagrid to your mainstack, the one that will become the standalone, and hide it.
That's it :-)

Post Reply