RE: After mobilePick, script may or may not continue.

2013-10-16 Thread Ralph DiMola
Will do.

I also tried all sorts of sends, send in times, waits and dispatches and it
has not helped.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Roger Eller
Sent: Wednesday, October 16, 2013 2:31 PM
To: How to use LiveCode
Subject: Re: After mobilePick, script may or may not continue.

If you wouldn't mind, please add your experience to the report that I filed
under Bug#11278.  Hanson has offered a workaround that I haven't tried yet.
 The bad thing about workarounds is that the root cause never gets fixed.

http://quality.runrev.com/show_bug.cgi?id=11278

Thanks.
~Roger


On Wed, Oct 16, 2013 at 2:14 PM, Ralph DiMola
wrote:

> Also, when the invisible pick list is up the next user action will be 
> just like you tapped anywhere else on the screen when visible and the 
> pick will be canceled.
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
>
>
___
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: After mobilePick, script may or may not continue.

2013-10-14 Thread Roger Eller
I had also tried send in 200 millisecs.  So I took your advice and tried 10
ticks as well.  Still not dependable.  I believe it's time to file a bug
report.  Thanks for the suggestions.

~Roger
On Oct 14, 2013 2:15 PM, "J. Landman Gay"  wrote:

> On 10/14/13 1:05 PM, Roger Eller wrote:
>
>> I am still having a problem with getting subsequent mobilePick to work.  I
>> tried moving my cases into a separate handler or function.  If the script
>> is in a separate hidden button, I can make it work, but I don't want the
>> extra button(s).
>>
>> *Goal:*  Present a pick list, followed by another pick list based on the
>> context of the first.
>>
>> Any ideas?
>>
>
> Wild guess: maybe it's a timing problem. You could try moving the actual
> picklist commands into a separate function (as you did) and then calling it
> from another handler. But when the first picklist returns a value, the
> calling handler would issue a "send getPicklist to me in 10 ticks" command
> to display the second list.
>
> Maybe it needs some recovery time. Who knows.
>
>
>> On Sun, Oct 13, 2013 at 8:21 PM, Roger Eller wrote:
>>
>>  The script below always fires the first pick list.  What seems strange to
>>> me is that after making this choice, the next pick list may or may not
>>> ever
>>> happen.  Why?  Is is a bug, or should I be doing something differently
>>> here?  Thanks in advance.
>>>
>>> on touchEnd pid
>>> put "PRIMARY" & cr \
>>>   & "SECONDARY" & cr \
>>>   & "THIRD" & cr into tList0
>>> put lineoffset("SECONDARY", tList0) into tInitialIndex0
>>> mobilePick tList0, tInitialIndex0
>>>
>>> put the result into tChoice1 -- returns 1, 2 or 3
>>>
>>> switch tChoice1
>>> case 1
>>> put "X1" & cr \
>>>   & "X2" & cr \
>>>   & "X3" & cr \
>>>   & "X4" & cr into tList1
>>> put lineoffset("X2", tList1) into tInitialIndex1
>>> mobilePick tList1, tInitialIndex1
>>> break
>>>
>>> case 2
>>> put "Y1" & cr \
>>>   & "Y2" & cr \
>>>   & "Y3" & cr \
>>>   & "Y4" & cr into tList2
>>> put lineoffset("Y2", tList2) into tInitialIndex2
>>> mobilePick tList2, tInitialIndex2
>>> break
>>>
>>> case 3
>>> put "Z1" & cr \
>>>   & "Z2" & cr \
>>>   & "Z3" & cr \
>>>   & "Z4" & cr into tList3
>>> put lineoffset("Z2", tList4) into tInitialIndex3
>>> mobilePick tList3, tInitialIndex3
>>> break
>>> end switch
>>> put the result into tChoice2 -- returns 1, 2, 3 or 4
>>>
>>> answer tChoice1 && tChoice2
>>> end touchEnd
>>>
>>> ~Roger
>>>
>>>
>>>
>>>
>>>  __**_
>> 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
>>
>>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> __**_
> 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: After mobilePick, script may or may not continue.

2013-10-14 Thread Roger Eller
If I long press the choice for the first pick, most times, but not always,
the next pick list appears.  I don't think this is normal behavior.  Feels
like a low level bug.


On Mon, Oct 14, 2013 at 2:15 PM, J. Landman Gay wrote:

> On 10/14/13 1:05 PM, Roger Eller wrote:
>
>> I am still having a problem with getting subsequent mobilePick to work.  I
>> tried moving my cases into a separate handler or function.  If the script
>> is in a separate hidden button, I can make it work, but I don't want the
>> extra button(s).
>>
>> *Goal:*  Present a pick list, followed by another pick list based on the
>>
>> context of the first.
>>
>> Any ideas?
>>
>
> Wild guess: maybe it's a timing problem. You could try moving the actual
> picklist commands into a separate function (as you did) and then calling it
> from another handler. But when the first picklist returns a value, the
> calling handler would issue a "send getPicklist to me in 10 ticks" command
> to display the second list.
>
> Maybe it needs some recovery time. Who knows.
>
>
>> On Sun, Oct 13, 2013 at 8:21 PM, Roger Eller wrote:
>>
>>  The script below always fires the first pick list.  What seems strange to
>>> me is that after making this choice, the next pick list may or may not
>>> ever
>>> happen.  Why?  Is is a bug, or should I be doing something differently
>>> here?  Thanks in advance.
>>>
>>> on touchEnd pid
>>> put "PRIMARY" & cr \
>>>   & "SECONDARY" & cr \
>>>   & "THIRD" & cr into tList0
>>> put lineoffset("SECONDARY", tList0) into tInitialIndex0
>>> mobilePick tList0, tInitialIndex0
>>>
>>> put the result into tChoice1 -- returns 1, 2 or 3
>>>
>>> switch tChoice1
>>> case 1
>>> put "X1" & cr \
>>>   & "X2" & cr \
>>>   & "X3" & cr \
>>>   & "X4" & cr into tList1
>>> put lineoffset("X2", tList1) into tInitialIndex1
>>> mobilePick tList1, tInitialIndex1
>>> break
>>>
>>> case 2
>>> put "Y1" & cr \
>>>   & "Y2" & cr \
>>>   & "Y3" & cr \
>>>   & "Y4" & cr into tList2
>>> put lineoffset("Y2", tList2) into tInitialIndex2
>>> mobilePick tList2, tInitialIndex2
>>> break
>>>
>>> case 3
>>> put "Z1" & cr \
>>>   & "Z2" & cr \
>>>   & "Z3" & cr \
>>>   & "Z4" & cr into tList3
>>> put lineoffset("Z2", tList4) into tInitialIndex3
>>> mobilePick tList3, tInitialIndex3
>>> break
>>> end switch
>>> put the result into tChoice2 -- returns 1, 2, 3 or 4
>>>
>>> answer tChoice1 && tChoice2
>>> end touchEnd
>>>
>>> ~Roger
>>>
>>>
>>>
>>>
>>>  __**_
>> 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
>>
>>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> __**_
> 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: After mobilePick, script may or may not continue.

2013-10-14 Thread J. Landman Gay

On 10/14/13 1:05 PM, Roger Eller wrote:

I am still having a problem with getting subsequent mobilePick to work.  I
tried moving my cases into a separate handler or function.  If the script
is in a separate hidden button, I can make it work, but I don't want the
extra button(s).

*Goal:*  Present a pick list, followed by another pick list based on the
context of the first.

Any ideas?


Wild guess: maybe it's a timing problem. You could try moving the actual 
picklist commands into a separate function (as you did) and then calling 
it from another handler. But when the first picklist returns a value, 
the calling handler would issue a "send getPicklist to me in 10 ticks" 
command to display the second list.


Maybe it needs some recovery time. Who knows.



On Sun, Oct 13, 2013 at 8:21 PM, Roger Eller wrote:


The script below always fires the first pick list.  What seems strange to
me is that after making this choice, the next pick list may or may not ever
happen.  Why?  Is is a bug, or should I be doing something differently
here?  Thanks in advance.

on touchEnd pid
put "PRIMARY" & cr \
  & "SECONDARY" & cr \
  & "THIRD" & cr into tList0
put lineoffset("SECONDARY", tList0) into tInitialIndex0
mobilePick tList0, tInitialIndex0

put the result into tChoice1 -- returns 1, 2 or 3

switch tChoice1
case 1
put "X1" & cr \
  & "X2" & cr \
  & "X3" & cr \
  & "X4" & cr into tList1
put lineoffset("X2", tList1) into tInitialIndex1
mobilePick tList1, tInitialIndex1
break

case 2
put "Y1" & cr \
  & "Y2" & cr \
  & "Y3" & cr \
  & "Y4" & cr into tList2
put lineoffset("Y2", tList2) into tInitialIndex2
mobilePick tList2, tInitialIndex2
break

case 3
put "Z1" & cr \
  & "Z2" & cr \
  & "Z3" & cr \
  & "Z4" & cr into tList3
put lineoffset("Z2", tList4) into tInitialIndex3
mobilePick tList3, tInitialIndex3
break
end switch
put the result into tChoice2 -- returns 1, 2, 3 or 4

answer tChoice1 && tChoice2
end touchEnd

~Roger





___
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




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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: After mobilePick, script may or may not continue.

2013-10-14 Thread Roger Eller
I am still having a problem with getting subsequent mobilePick to work.  I
tried moving my cases into a separate handler or function.  If the script
is in a separate hidden button, I can make it work, but I don't want the
extra button(s).

*Goal:*  Present a pick list, followed by another pick list based on the
context of the first.

Any ideas?

~Roger


On Sun, Oct 13, 2013 at 8:21 PM, Roger Eller wrote:

> The script below always fires the first pick list.  What seems strange to
> me is that after making this choice, the next pick list may or may not ever
> happen.  Why?  Is is a bug, or should I be doing something differently
> here?  Thanks in advance.
>
> on touchEnd pid
>put "PRIMARY" & cr \
>  & "SECONDARY" & cr \
>  & "THIRD" & cr into tList0
>put lineoffset("SECONDARY", tList0) into tInitialIndex0
>mobilePick tList0, tInitialIndex0
>
>put the result into tChoice1 -- returns 1, 2 or 3
>
>switch tChoice1
>case 1
>put "X1" & cr \
>  & "X2" & cr \
>  & "X3" & cr \
>  & "X4" & cr into tList1
>put lineoffset("X2", tList1) into tInitialIndex1
>mobilePick tList1, tInitialIndex1
>break
>
>case 2
>put "Y1" & cr \
>  & "Y2" & cr \
>  & "Y3" & cr \
>  & "Y4" & cr into tList2
>put lineoffset("Y2", tList2) into tInitialIndex2
>mobilePick tList2, tInitialIndex2
>break
>
>case 3
>put "Z1" & cr \
>  & "Z2" & cr \
>  & "Z3" & cr \
>  & "Z4" & cr into tList3
>put lineoffset("Z2", tList4) into tInitialIndex3
>mobilePick tList3, tInitialIndex3
>break
>end switch
>put the result into tChoice2 -- returns 1, 2, 3 or 4
>
>answer tChoice1 && tChoice2
> end touchEnd
>
> ~Roger
>
>
>
>
___
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