RE: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread Timothy Penner via 4D_Tech
Hi John,

I found this as the first hit when I searched kb.4d.com for the term widget:
Tech Tip: TimePicker widget can only be modified if placed on page 0 or 1 of 
the form
http://kb.4d.com/assetid=77479

Hit #3 in the list was this:
Tech Tip: Using widgets on page 2+
http://kb.4d.com/assetid=76861

-Tim




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread John Baughman via 4D_Tech
Is the page one requirement documented anywhere. Looked and could not find it. 

If not, perhaps it should be.

John


> On Aug 10, 2017, at 12:01 PM, John Baughman  wrote:
> 
> 
>> On Aug 10, 2017, at 11:17 AM, Keisuke Miyako via 4D_Tech 
>> <4d_tech@lists.4d.com > wrote:
>> 
>> and the widget must be used on page 0 or 1.
> 
> Ah Ha! That was the problem. My widget is on page 2. In any event works in an 
> on timer event.
> 
> John
> 
> 
> 
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.com 
> 
> 
> 
> 
> 

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread John Baughman via 4D_Tech

> On Aug 10, 2017, at 11:17 AM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> and the widget must be used on page 0 or 1.

Ah Ha! That was the problem. My widget is on page 2. In any event works in an 
on timer event.

John



John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread Douglas von Roeder via 4D_Tech
 "form local" = new (and much better) name for a dynamic variable?


--
Douglas von Roeder
949-336-2902

On Thu, Aug 10, 2017 at 2:17 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> it works on ON LOAD, but the widget's variable must be declared with
> C_TIME,
> or set to create a form local (no variable name, type=time in property
> list.)
>
> and the widget must be used on page 0 or 1.
>
> > 2017/08/10 16:13、John Baughman via 4D_Tech <4d_tech@lists.4D.com> のメール:
> > The sample code in the picker method calls TimePicker SET STEP in the On
> Load form event. That does not work.
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread Keisuke Miyako via 4D_Tech
it works on ON LOAD, but the widget's variable must be declared with C_TIME,
or set to create a form local (no variable name, type=time in property list.)

and the widget must be used on page 0 or 1.

> 2017/08/10 16:13、John Baughman via 4D_Tech <4d_tech@lists.4D.com> のメール:
> The sample code in the picker method calls TimePicker SET STEP in the On Load 
> form event. That does not work.




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-10 Thread John Baughman via 4D_Tech
OK. I figured it out. The sample code in the picker method calls TimePicker SET 
STEP in the On Load form event. That does not work. Apparently it has to be 
called after the form is loaded. So I set a timer and am call all the setup 
commands in the On Timer event. Works now. 

Also if you are passing a default value, be sure to assign it to the picker 
after you have set the step or it will be handled with the default step and 
might get rounded to fit the step.

BTW, I had a typo in my original message. 45 mins is not a valid step for the 
picker. It should have red 15 mins.

John


> On Aug 9, 2017, at 3:14 PM, John Baughman via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have been using this for a very long time and always with a 45 min step. 
> Now I need to set it to a 10 min step Y calling..
> 
>   TimePicker SET STEP ($ObjectName;?00:10:00?)
> 
> Nothing happens. It stays at 45 mins.
> 
> Any ideas?
> 
> John
> 
> 
>   
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.com
> 
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**