Data grid contains data but appears empty

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Data grid contains data but appears empty

Post by BIX » Wed Aug 17, 2011 1:09 pm

I have a stack with a button that opens another stack called "test". Stack "test" contains one Data Grid. I've set the script of the stack to put data into Data Grid on openStack. Everything works fine in development mode, but when I save as standalone and click on a button that opens stack "test" the Data Grid looks empty. On 'answer the dgtext of grp "myDataGrid"' I see that the Data Grid contains specific text but is not showing it. I've tried 'ResetList' and 'RefreshList' but it didn't help.

I hope my text isn't too confusing and someone will be able to help me....

Thanks....
BIX

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

Re: Data grid contains data but appears empty

Post by Klaus » Wed Aug 17, 2011 1:28 pm

Hi BIX,

sounds like the DataGrid library was not added to your standalone!?

Is the stack with the datagrid a substack of the (main) stack that you save as a standalone
or is it a separate file?


Best

Klaus

BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Re: Data grid contains data but appears empty

Post by BIX » Thu Aug 18, 2011 7:00 am

Stack with the Data Grid is a substack. I've thought the same thing about datagrid library but I can't find that library in Standalone Application Settings.
BIX

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Data grid contains data but appears empty

Post by bn » Thu Aug 18, 2011 7:20 am

Hi BIX,

maybe this helps with your problem

http://lessons.runrev.com/s/lessons/m/d ... Data-Grid-

it shows how to set up your standalone to support a datagrid.

Kind regards

Bernd

BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Re: Data grid contains data but appears empty

Post by BIX » Thu Aug 18, 2011 7:48 am

Thanks bn, that solved the problem.
BIX

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

Re: Data grid contains data but appears empty

Post by Klaus » Thu Aug 18, 2011 12:03 pm

Hi all,

what also does work is to add a datagrid to your mainstack but leave it empty and hide it.
This way the standalonebuilder, this li'l stupid sucker :D , will also copy all necessary files.


Best

Klaus

Post Reply