Datagrid does not work in standalone

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Datagrid does not work in standalone

Post by Simon Knight » Thu May 08, 2014 7:47 pm

Please help!

I have an application that uses a number of datagrids to display information from a database plus a simple datagrid that I populated with two rows of tab delimited data (i.e. nothing to do with the database.

In the IDE all is well.

When I build the application for Windows and Mac the datagrids are displayed but they refuse to accept mouse input or get updated from the database. I have confirmed that the datagrid templates stack is included in the list of stacks.

I have tried everything I can think of can you help?

Simon K
best wishes
Skids

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

Re: Datagrid does not work in standalone

Post by Klaus » Thu May 08, 2014 8:45 pm

Hi Simon,

quick guess:
Did you password protext all your stacks incliding the "Datagrid Templates..." stack in the standalone builder?
If yes, leave at least the TEMPLATE stack unprotected :D


Best

Klaus

Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Re: Datagrid does not work in standalone

Post by Simon Knight » Thu May 08, 2014 9:18 pm

Hi Klaus,

No I have not but I have the solution : read the documents!

My app uses a Splash stack and I had completely missed that I should include a dummy datagrid templates stack of the splash stack. So in a note to myself include sub stack named "Data Grid Templates Dud" as part of the SPLASH stack.

Doh!

best wishes

Simon
best wishes
Skids

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

Re: Datagrid does not work in standalone

Post by dunbarx » Thu May 08, 2014 9:44 pm

Hi.

Do not beat yourself up too much. The dummy DG is one way to get around the problem, but it is not obvious. I had to fail as you did before I hunted around and found the same solution.

Craig Newman

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

Re: Datagrid does not work in standalone

Post by Klaus » Thu May 08, 2014 10:54 pm

And I have been bitten by the password thingie before :D

Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Re: Datagrid does not work in standalone

Post by Simon Knight » Fri May 09, 2014 7:45 am

Thanks for your kind words, these problems always reveal themselves at the eleventh hour to a deadline.

best wishes

Simon K
best wishes
Skids

Post Reply