Re: Creating a form object to use as dynamic form

2018-09-24 Thread Jody Bevan via 4D_Tech
Sorry Rudy, not an answer to your question, but topical I think. Being able to create a sophisticated form via code is a fantastic feature. It is like the coding I did back in 1982/1983. Back when I first got my hands on my own copy of 4D version 2.0.10 the Graphical form editor was such a

Creating a form object to use as dynamic form

2018-09-24 Thread Two Way Communications via 4D_Tech
I can’t figure out how to do this … Using a dynamic form, I am trying to build a generic list of records to display to the user and to allow him to select 1 record. I used the example from the tech note on how to create a dynamic form that shows a listbox. To build this $form object

Re: Creating a form object to use as dynamic form

2018-09-24 Thread John DeSoi via 4D_Tech
On Sep 24, 2018, at 9:44 AM, Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> wrote: > > $page:=New object("objects";New object("myListBox";$obj)) $form:=New > object(“pages";New collection(Null;$page)) > > $form:=New object("windowTitle";"Select a >

[ANN] 4DMethod September 26th Meeting - Subforms as dynamic data objects - Rethinking the 4D form, Kirk Brooks

2018-09-24 Thread Ed Hammond via 4D_Tech
Hope to see you at our next 4DMethod meeting on Wednesday, September 26th, 12:00 noon, CDT (UTC?5:00)! Kirk Brooks of The Energy House will introduce you to the new way of thinking about the whole structure of a 4D database as compared to simply figuring out how to make

Re: Creating a form object to use as dynamic form

2018-09-24 Thread Kirk Brooks via 4D_Tech
Jody, You are correct about the form editor. I've been dabbling with building even a simplified form editor and it's not a trivial task. On the other hand my work with dynamic forms has shown me the mechanics of the current form editor and the approach employed by the dynamic forms part is very

RE: How to get the current time in a specified time zone

2018-09-24 Thread Timothy Penner via 4D_Tech
> There is also the NET_TIME command in 4D Internet Commands: > http://doc.4d.com/4Dv17/4D/17/NET-Time.301-3785509.en.html Something like this: C_TIME($vTime) C_DATE($vNetDate) C_LONGINT($vNetTime;$vOffset;$err) $vOffset:=-7 $err:=NET_Time ("time.nist.gov";$vNetDate;$vNetTime;$vOffset) If

Re: Creating a form object to use as dynamic form

2018-09-24 Thread Jody Bevan via 4D_Tech
Rudy: I agree with you. You think Belgium has few courses - try Belize! I am with you trying to master it is a challenge. So much new in v17. Fortunately we can still code as we did, and learn in snippets as we have time. I do hope they have a course happening around the USA on this new stuff

Re: How to get the current time in a specified time zone

2018-09-24 Thread Keisuke Miyako via 4D_Tech
actually you can get UTC time without a network connection: // v17 C_TIME($t) XML DECODE(Delete string(Timestamp;24;1);$t) // before C_TIME($t) XML DECODE(Delete string(string(Current date;ISO date GMT;Current time);20;1);$t) both of which are effectively "substring" + "time" operations that

How to get the current time in a specified time zone

2018-09-24 Thread Pat Bensky via 4D_Tech
Using v16: I've figured out how to get the current GMT time using cURL. (Code at the bottom if anybody is interested). Now I need to get the current time in a different time zone - eg in France. Any ideas how to do that? == //

RE: How to get the current time in a specified time zone

2018-09-24 Thread Timothy Penner via 4D_Tech
Interesting approach; I also just found these: UTC: http://worldclockapi.com/api/json/utc/now PST: http://worldclockapi.com/api/json/pst/now EST: http://worldclockapi.com/api/json/est/now The output is JSON, so it should be easily parsed. There is also the NET_TIME command in 4D Internet

Re: Creating a form object to use as dynamic form

2018-09-24 Thread Two Way Communications via 4D_Tech
Thanks Jody. 4D's progress is actually quite stunning this last few years. The downside is that, at least here in Belgium, it is hard to get the required training in order to master all of that. So, I get stuck quite a lot lately with ORDA, 4D Write pRo, 4D for iOS and all the other new stuff.

Re: Creating a form object to use as dynamic form

2018-09-24 Thread Tim Nevels via 4D_Tech
On Sep 24, 2018, at 2:00 PM, Rudy Mortier wrote: > I can’t figure out how to do this … > > Using a dynamic form, I am trying to build a generic list of records to > display to the user and to allow him to select 1 record. > > I used the example from the tech note on how to create a dynamic