Re: DG outcomes on desktop vs mobile

2020-10-23 Thread J. Landman Gay via use-livecode
Well it's about time. All the rest of us have felt pretty dumb on multiple 
occasions and you were the only outlier.  ;)



But seriously, mobile apps are their own kind of animal. There's a learning 
curve. And each OS has its own idiosyncrasies.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 23, 2020 9:04:45 PM Phil Davis via use-livecode 
 wrote:



Well, I'm feeling pretty dumb about now.




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread Phil Davis via use-livecode

Well, I'm feeling pretty dumb about now. It's the architecture, stupid!

I overlooked the fact that, unlike on desktop systems, my mobile app 
doesn't automagically have access to the test files that reside in the 
app's dev environment on my Mac. During startup on the iPad, the app has 
to populate its [Documents] subfolders with test files stored in the app 
bundle.


It's my first mobile app. At least there's that. And I can pretty much 
guarantee I'll never again overlook the need to do this!


So that part of the app is working now. Thanks for the great ideas, 
which will be useful when I stumble again -


Phil


On 10/23/20 3:06 PM, Bob Sneidar via use-livecode wrote:

I got into the habit of setting the dgdata to empty before populating it 
because I ran into issues where my own code set the dgdata to something not an 
array, and this seems to bork the data grid. I think it was an empty array, or 
an empty record. This didn’t show up as a blank line however, the data 
displayed correctly, but the data grid became unresponsive. It didn’t show up 
in the text view of the property inspector either. I had to put the dgtext into 
the msg and then the blank line showed up.

Bob S


On Oct 23, 2020, at 5:19 AM, Andrew at MidWest Coast Media via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

This happened to me, twice, in a project I just launched. I was in crunch so 
didn’t have time to properly document but something happened where the DG 
wasn’t loading. I could take the same dgData or dgText and load it to another 
DG fine. Being on mobile made this harder to debug because even with Remote 
Debugger I would still have to compile and launch to the simulator each time I 
tried a tweak.

Because I was up against a deadline and since I wasted several hours trying to 
troubleshoot I just replaced the DG with a brand new: everything worked. Didn’t 
even bother to troubleshoot the 2nd time it happened, just immediately made a 
new DG and moved on.

Not a definitive answer to your question but an acknowledgement of your problem.

—Andrew Bell

I'm building an iPad app that reads a bunch of files into an array and
then sets the dgData of a form DG to that array. The array is
well-formed for DG use. After setting the dgData of the DG, the result
is empty. Only one problem: the DG now contains no data. (I also tried
setting the dgText of the DG to a flat version of the same data and got
the same outcome.)

I can then create another array from custom property data and set the
dgData of the same form DG to that array and it works.

On the desktop, however, the same DG loading process never fails.

The data being loaded is all text - nothing esoteric.

Does anyone have any ideas how I can find & fix the problem(s)? Or have
you run into this before?

Thank you -
Phil Davis

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread Bob Sneidar via use-livecode
I got into the habit of setting the dgdata to empty before populating it 
because I ran into issues where my own code set the dgdata to something not an 
array, and this seems to bork the data grid. I think it was an empty array, or 
an empty record. This didn’t show up as a blank line however, the data 
displayed correctly, but the data grid became unresponsive. It didn’t show up 
in the text view of the property inspector either. I had to put the dgtext into 
the msg and then the blank line showed up.

Bob S


On Oct 23, 2020, at 5:19 AM, Andrew at MidWest Coast Media via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

This happened to me, twice, in a project I just launched. I was in crunch so 
didn’t have time to properly document but something happened where the DG 
wasn’t loading. I could take the same dgData or dgText and load it to another 
DG fine. Being on mobile made this harder to debug because even with Remote 
Debugger I would still have to compile and launch to the simulator each time I 
tried a tweak.

Because I was up against a deadline and since I wasted several hours trying to 
troubleshoot I just replaced the DG with a brand new: everything worked. Didn’t 
even bother to troubleshoot the 2nd time it happened, just immediately made a 
new DG and moved on.

Not a definitive answer to your question but an acknowledgement of your problem.

—Andrew Bell

I'm building an iPad app that reads a bunch of files into an array and
then sets the dgData of a form DG to that array. The array is
well-formed for DG use. After setting the dgData of the DG, the result
is empty. Only one problem: the DG now contains no data. (I also tried
setting the dgText of the DG to a flat version of the same data and got
the same outcome.)

I can then create another array from custom property data and set the
dgData of the same form DG to that array and it works.

On the desktop, however, the same DG loading process never fails.

The data being loaded is all text - nothing esoteric.

Does anyone have any ideas how I can find & fix the problem(s)? Or have
you run into this before?

Thank you -
Phil Davis

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread Phil Davis via use-livecode
All the files are in a 'Students' subfolder of the app's Documents 
folder, and the path reflects that. However, your question is making me 
go through the handling of data with a fine-tooth comb, so that may 
result in something.


Thanks Jacque -
Phil


On 10/23/20 11:22 AM, J. Landman Gay via use-livecode wrote:

What is the path you use to get the files?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 23, 2020 12:26:34 PM Phil Davis via use-livecode 
 wrote:



That's a good question. On desktop, the array variable is full of data.
On the iPad it's apparently empty. I'll drill down further and see
what's going on.

Thanks for the idea.
Phil


On 10/23/20 1:03 AM, JeeJeeStudio via use-livecode wrote:

What do you see when you answer the data you set the dgdata to? Does it
show the values?

Op vr 23 okt. 2020 08:44 schreef Phil Davis via use-livecode <
use-livecode@lists.runrev.com>:


I'm building an iPad app that reads a bunch of files into an array and
then sets the dgData of a form DG to that array. The array is
well-formed for DG use. After setting the dgData of the DG, the result
is empty. Only one problem: the DG now contains no data. (I also tried
setting the dgText of the DG to a flat version of the same data and 
got

the same outcome.)

I can then create another array from custom property data and set the
dgData of the same form DG to that array and it works.

On the desktop, however, the same DG loading process never fails.

The data being loaded is all text - nothing esoteric.

Does anyone have any ideas how I can find & fix the problem(s)? Or 
have

you run into this before?

Thank you -
Phil Davis

--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread J. Landman Gay via use-livecode

What is the path you use to get the files?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 23, 2020 12:26:34 PM Phil Davis via use-livecode 
 wrote:



That's a good question. On desktop, the array variable is full of data.
On the iPad it's apparently empty. I'll drill down further and see
what's going on.

Thanks for the idea.
Phil


On 10/23/20 1:03 AM, JeeJeeStudio via use-livecode wrote:

What do you see when you answer the data you set the dgdata to? Does it
show the values?

Op vr 23 okt. 2020 08:44 schreef Phil Davis via use-livecode <
use-livecode@lists.runrev.com>:


I'm building an iPad app that reads a bunch of files into an array and
then sets the dgData of a form DG to that array. The array is
well-formed for DG use. After setting the dgData of the DG, the result
is empty. Only one problem: the DG now contains no data. (I also tried
setting the dgText of the DG to a flat version of the same data and got
the same outcome.)

I can then create another array from custom property data and set the
dgData of the same form DG to that array and it works.

On the desktop, however, the same DG loading process never fails.

The data being loaded is all text - nothing esoteric.

Does anyone have any ideas how I can find & fix the problem(s)? Or have
you run into this before?

Thank you -
Phil Davis

--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread Dan Friedman via use-livecode
Phil,

One thing I have noticed is if you have a put command with no destination, 
mobile devices DO NOT LIKE THIS!!   It will halt script execution completely as 
if it were an error.   For example:

put myVar

This would normally put the contents of myVar into the message box.  But on a 
real phone, it's a disaster!   Maybe you have one of these put's somewhere that 
is halting executing and causing the DG not to be filled.   Just a thought.

-Dan



On 10/23/20, 10:25 AM, "use-livecode on behalf of Phil Davis via use-livecode" 
 wrote:

That's a good question. On desktop, the array variable is full of data. 
On the iPad it's apparently empty. I'll drill down further and see 
what's going on.

Thanks for the idea.
Phil


On 10/23/20 1:03 AM, JeeJeeStudio via use-livecode wrote:
> What do you see when you answer the data you set the dgdata to? Does it
> show the values?
>
> Op vr 23 okt. 2020 08:44 schreef Phil Davis via use-livecode <
> use-livecode@lists.runrev.com>:
>
>> I'm building an iPad app that reads a bunch of files into an array and
>> then sets the dgData of a form DG to that array. The array is
>> well-formed for DG use. After setting the dgData of the DG, the result
>> is empty. Only one problem: the DG now contains no data. (I also tried
>> setting the dgText of the DG to a flat version of the same data and got
>> the same outcome.)
>>
>> I can then create another array from custom property data and set the
>> dgData of the same form DG to that array and it works.
>>
>> On the desktop, however, the same DG loading process never fails.
>>
>> The data being loaded is all text - nothing esoteric.
>>
>> Does anyone have any ideas how I can find & fix the problem(s)? Or have
>> you run into this before?
>>
>> Thank you -
>> Phil Davis
>>
>> --
>> Phil Davis
>> 503-307-4363
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

-- 
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread Phil Davis via use-livecode
That's a good question. On desktop, the array variable is full of data. 
On the iPad it's apparently empty. I'll drill down further and see 
what's going on.


Thanks for the idea.
Phil


On 10/23/20 1:03 AM, JeeJeeStudio via use-livecode wrote:

What do you see when you answer the data you set the dgdata to? Does it
show the values?

Op vr 23 okt. 2020 08:44 schreef Phil Davis via use-livecode <
use-livecode@lists.runrev.com>:


I'm building an iPad app that reads a bunch of files into an array and
then sets the dgData of a form DG to that array. The array is
well-formed for DG use. After setting the dgData of the DG, the result
is empty. Only one problem: the DG now contains no data. (I also tried
setting the dgText of the DG to a flat version of the same data and got
the same outcome.)

I can then create another array from custom property data and set the
dgData of the same form DG to that array and it works.

On the desktop, however, the same DG loading process never fails.

The data being loaded is all text - nothing esoteric.

Does anyone have any ideas how I can find & fix the problem(s)? Or have
you run into this before?

Thank you -
Phil Davis

--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread Phil Davis via use-livecode

Thanks Andrew - I think I'll try this for the same reasons you did.

Phil


On 10/23/20 5:19 AM, Andrew at MidWest Coast Media via use-livecode wrote:

This happened to me, twice, in a project I just launched. I was in crunch so 
didn’t have time to properly document but something happened where the DG 
wasn’t loading. I could take the same dgData or dgText and load it to another 
DG fine. Being on mobile made this harder to debug because even with Remote 
Debugger I would still have to compile and launch to the simulator each time I 
tried a tweak.

Because I was up against a deadline and since I wasted several hours trying to 
troubleshoot I just replaced the DG with a brand new: everything worked. Didn’t 
even bother to troubleshoot the 2nd time it happened, just immediately made a 
new DG and moved on.

Not a definitive answer to your question but an acknowledgement of your problem.

—Andrew Bell


I'm building an iPad app that reads a bunch of files into an array and
then sets the dgData of a form DG to that array. The array is
well-formed for DG use. After setting the dgData of the DG, the result
is empty. Only one problem: the DG now contains no data. (I also tried
setting the dgText of the DG to a flat version of the same data and got
the same outcome.)

I can then create another array from custom property data and set the
dgData of the same form DG to that array and it works.

On the desktop, however, the same DG loading process never fails.

The data being loaded is all text - nothing esoteric.

Does anyone have any ideas how I can find & fix the problem(s)? Or have
you run into this before?

Thank you -
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread Andrew at MidWest Coast Media via use-livecode
This happened to me, twice, in a project I just launched. I was in crunch so 
didn’t have time to properly document but something happened where the DG 
wasn’t loading. I could take the same dgData or dgText and load it to another 
DG fine. Being on mobile made this harder to debug because even with Remote 
Debugger I would still have to compile and launch to the simulator each time I 
tried a tweak.

Because I was up against a deadline and since I wasted several hours trying to 
troubleshoot I just replaced the DG with a brand new: everything worked. Didn’t 
even bother to troubleshoot the 2nd time it happened, just immediately made a 
new DG and moved on.

Not a definitive answer to your question but an acknowledgement of your problem.

—Andrew Bell

> I'm building an iPad app that reads a bunch of files into an array and 
> then sets the dgData of a form DG to that array. The array is 
> well-formed for DG use. After setting the dgData of the DG, the result 
> is empty. Only one problem: the DG now contains no data. (I also tried 
> setting the dgText of the DG to a flat version of the same data and got 
> the same outcome.)
> 
> I can then create another array from custom property data and set the 
> dgData of the same form DG to that array and it works.
> 
> On the desktop, however, the same DG loading process never fails.
> 
> The data being loaded is all text - nothing esoteric.
> 
> Does anyone have any ideas how I can find & fix the problem(s)? Or have 
> you run into this before?
> 
> Thank you -
> Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread JeeJeeStudio via use-livecode
What do you see when you answer the data you set the dgdata to? Does it
show the values?

Op vr 23 okt. 2020 08:44 schreef Phil Davis via use-livecode <
use-livecode@lists.runrev.com>:

> I'm building an iPad app that reads a bunch of files into an array and
> then sets the dgData of a form DG to that array. The array is
> well-formed for DG use. After setting the dgData of the DG, the result
> is empty. Only one problem: the DG now contains no data. (I also tried
> setting the dgText of the DG to a flat version of the same data and got
> the same outcome.)
>
> I can then create another array from custom property data and set the
> dgData of the same form DG to that array and it works.
>
> On the desktop, however, the same DG loading process never fails.
>
> The data being loaded is all text - nothing esoteric.
>
> Does anyone have any ideas how I can find & fix the problem(s)? Or have
> you run into this before?
>
> Thank you -
> Phil Davis
>
> --
> Phil Davis
> 503-307-4363
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


DG outcomes on desktop vs mobile

2020-10-23 Thread Phil Davis via use-livecode
I'm building an iPad app that reads a bunch of files into an array and 
then sets the dgData of a form DG to that array. The array is 
well-formed for DG use. After setting the dgData of the DG, the result 
is empty. Only one problem: the DG now contains no data. (I also tried 
setting the dgText of the DG to a flat version of the same data and got 
the same outcome.)


I can then create another array from custom property data and set the 
dgData of the same form DG to that array and it works.


On the desktop, however, the same DG loading process never fails.

The data being loaded is all text - nothing esoteric.

Does anyone have any ideas how I can find & fix the problem(s)? Or have 
you run into this before?


Thank you -
Phil Davis

--
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode