Standalone does not work with data grids

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
Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 332
Joined: Sun Apr 15, 2012 1:17 am
Contact:

Standalone does not work with data grids

Post by Newbie4 » Fri Aug 03, 2012 4:43 am

I am loading records from a CSV into an array and displaying it in a data grid. The datagrid only shows records in Livecode, in the standalone that is generated it does not show any records. I see the input file and the lines are all read in and look good (I display them in a field). This is on a Mac computer.

The same is of the iPad version. I go to load the file and then it stops responding to anything. The data grid table remains empty
Everything still works beautifully (and properly) in LiveCode itself. The records load and from multiple files. I can edit, delete, add and work with the without any problem.

Any ideas?
What could I have done (added) that allows it to work in LiveCode itself but not in the generated standalones?

Is there any known problem with the standalone's generation?

Is there a limit to LiveCode that at some point it chokes in making the standalone? Too much code?
The loading card has 107 layers/objects and 21 controls
The main card has 141 layers/objects and 55 controls
The last card has 74 layers/objects and 84 controls

Is there any debugging code that I can add to help me? I put results of every step in a field so I can tell that the menuitem that I pick is correct but can not tell what is going wrong after that

Thanks in advance
Last edited by Newbie4 on Fri Aug 03, 2012 5:07 pm, edited 1 time in total.
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 332
Joined: Sun Apr 15, 2012 1:17 am
Contact:

Re: Standalone does not work with data grids

Post by Newbie4 » Fri Aug 03, 2012 3:06 pm

I verified that the array is being built and populated properly so it is the data grid that is not being populated on the screen under the standalone

Here is the code that allows me to select a class to show in the datagrid.

Code: Select all

on menuPick pItemName
   global pClassNo
   uiViewClass pItemName
   put the dgNumberOfLines of group "Class" into fld numStudents
   put pItemName into pClassNo
end menuPick


command uiViewClass pClassPeriod
   set the dgData of group "Class" to ar[pClassPeriod]
   put pClassPeriod into fld "abc"
end uiViewClass
The class that was loaded is in the menu is there but when I select it, nothing happens.

Again, it works great in LiveCode but does not in the standalone that is built

I think it is the

Code: Select all

set the dgData of group "Class" to ar[pClassPeriod] 
command because I tried

Code: Select all

set the dgData of group "Class" to empty 
and it did not work either in the code - in the standalone
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

Post Reply