exe file that can launch 4D client as well as Chrome?

2019-02-25 Thread Keith Goebel via 4D_Tech
Hi all.
We have a scenario where we want to use an exe file to start both 4D Client 
(v17.0 HF3 Win) and Chrome browser.
The browser has to login to a given url with a user name and password.
Also, the 4D Client has to be in front when they have finished startup.

Is all that possible?
If so, can you give me an idea how to do it, or point me point me in the 
direction of docs that will tell me how?
TIA, Keith
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: "Attempting to retype using a pointer"

2019-02-25 Thread Jeremy Roussak via 4D_Tech
Kirk,

My apologies. I mistyped the offending lines!

The lines causing the error dereference the pointers. So they are

$to.toDate->:=$from.toDate->
$to.toAge->:=$from.toAge->
etc.

The curious things are that (a) the dereferenced pointers do definitely point 
at variables of the same type; (b) although I get an alert with the error 
message, the assignment does in fact work (that is, if I click “continue”, 
everything is exactly as it should be when the method completes).

I can get round the error by using pointer variables:

$pTo:=$to.toDate
$pFrom:=$from.toDate
$pTo->:=$pFrom->

which works fine. I just don’t understand the actual error message, since I’m 
not doing what it’s accusing me of doing.

Jeremy



> On 25 Feb 2019, at 16:47, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Jeremy,
> Since you are writing the data to an object what's the value of using the
> pointer? Why not just write the data?
> 
> In fact, since TCMGetRow looks like it is simply holding the data for the
> transfer you could make it a loop:
> 
> For($i;1;number of objects)
> 
> $o["_"+string($i)]:=Object get pointer(Object named;$root+string($i))->
> 
> End for
> 
> This way you don't need to care about the data type assuming the 2 objects
> actually have the same typed objects for each index.
> 
> But to specifically answer your question I would take a look at the way the
> date value is stored in your object and then how you reference it. There's
> another post about dates and objects that sounds on point with what you are
> doing.
> 
> 
> On Mon, Feb 25, 2019 at 7:37 AM Jeremy Roussak via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I have a form which shows a variable number of rows of numbers and text.
>> The rows are created using OBJECT DUPLICATE on each of the half-dozen items
>> in the row (yes, using a collection listbox might be a better way do to it,
>> but I wrote this code a while ago). If a row is deleted, I need to copy the
>> contents of the rows beneath it upwards.
>> 
>> 
>> So I have a method which creates an object and populates it with pointers
>> to the created variables. I call this to get a set of pointers to one row,
>> then again to get a set to the next row, and then I copy.
>> 
>> I start
>> 
>> C_OBJECT($from;$to)
>> $from:=TCMGetRow($start)
>> 
>> then in a loop,
>> 
>> $to:=$from
>> $from:=TCMGetRow($i)
>> 
>> $to.toDate:=$from.toDate
>> $to.toAge:=$from.toAge
>> etc.
>> 
>> 
>> 
>> TCMGetRow has
>> 
>> C_OBJECT($0;$o)
>> C_LONGINT($1;$row)
>> $row:=$1
>> 
>> C_TEXT($root)
>> 
>> $root:="vr"+String($row)+"c"
>> $o:=New object
>> 
>> $o.toDate:=OBJECT Get pointer(Object named;$root+"0")
>> $o.toAge:=OBJECT Get pointer(Object named;$root+"1")
>> etc
>> 
>> $0:=$o
>> 
>> I’m getting the message in the subject line in the main loop for each
>> assignment, but only when compiled; interpreted, it works fine. In the
>> debugger, the pointers in $to and $from point to variables of the same type.
>> 
>> I’m quite new to extensive use of objects. What am I missing?
>> 
>> Jeremy
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> What can be said, can be said clearly,
> and what you can’t say, you should shut up about
> 
> *Wittgenstein and the Computer *
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

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

Re: 4D JSON Date Bug

2019-02-25 Thread Keisuke Miyako via 4D_Tech
Note: variable names are not supported to start with a number ($4dDate)

the line

OB SET($obj;"apiDate";"2019-02-24")

does not set a date value.
it sets a string that looks like a date to some people.

try something like

$obj:=New object

OB SET($obj;"d1";Current date)
OB SET($obj;"d2";"2019-02-26")
OB SET($obj;"d3";!2019-02-26!)

inspect the object in the debugger,
turn on "display types"

you would see that

d1 looks like "2019-02-26T00:00:00.000Z" in the stringified preview, but 
"19/02/26" or equivalent in the detailed preview and "date" as type.
d2 looks like "2019-02-24" in the stringified and detailed preview and "text" 
as type.
d3 looks exactly like d1

the problem with

OB SET($obj;"apiDate";"2019-02-24")
$apiDate:=OB Get($obj;"apiDate";Is date)

is that you never stored a date or ISO date,
just a -mm-dd string (that has no special meaning in JSON or 4D object),
and the "Is date" coercion forces 4D to interpret it as "ISO date" because it 
is the only kind of date string expected in an object.

if you want to use date string in the -mm-dd (or your local equivalent) you 
need to

$apiDate:=Date(OB Get($obj;"apiDate"))

or

$apiDate:=Date($obj.apiDate)





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

Re: Current Time(*) timezone

2019-02-25 Thread Keisuke Miyako via 4D_Tech
Current time(*) and Current date(*) are returned the server's timezone.

if daylight saving ended on the server side, but not on the client side,
nothing is done to convert the value across timezones.

the advantage of using Timestamp (UTC) is that it is agnostic to timezones.

2019/02/26 6:21、Jim Crate via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
 time converted to the user’s timezone or will that be the time in the server’s 
timezone?



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

Current Time(*) timezone

2019-02-25 Thread Jim Crate via 4D_Tech
After messing around with timezone offset detection/conversion recently in 4D 
I’m curious if you use the * parameter to get the current time from the server, 
is that time converted to the user’s timezone or will that be the time in the 
server’s timezone?

Jim Crate

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

Re: Build Application “No License is Installed" and ...

2019-02-25 Thread John J Foster via 4D_Tech
Hi All,

Yea further success! Turns out the error was due to a form that had a dot as 
part of it’s name.

“thisFrom.d”

Changed the for to and underscore and passed that part and now on to 
learning/understanding the code signature process.

Error: “Code Signature Failed”

I know this was discussed in the NUG and I will search and locate the posts and 
see if I can figure things out.

If anyone wants to send me and shortcuts about “code signatures” I’ll gladly 
receive! 

I have zero experience with them as of today.

Appreciate,
John…



> On Feb 25, 2019, at 9:53 AM, John J Foster  wrote:
> 
> Hi Koen,
> 
> So looking at the "Licenses & Certificate” tab I would have to answer no.
> 
> Ahhh…
> 
> So I updated them and then clicked on the Build and I got an error “Unknown 
> error”. Very descriptive! 
> 
> So thank you Koen I am closer.
> 
> Now to figure out the next level of challenges. Might this error have 
> something to do wth the “OS X Signing Certificate”?
> 
> I’, pretty sure I am missing some steps here.
> 
> Appreciate,
> John…
> 
> 
>> Did you add/update your new licenses in the "Licenses & Certificate" tab of 
>> the Build Application dialog? 
> 

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

Re: Denver Area Developers

2019-02-25 Thread Steven via 4D_Tech
Hey, Tom.

I am down here in SF, with a couple of other 4D or ex-4D developers.  

Disappointed that 4D canceled the Denver stop on the World Tour this year.  
That was great fun last time.  And I heard from 4D that it was well attended 
and well received on both sides.  Perhaps if enough folks demonstrate interest 
on line we can get them to rethink their decision.  

Hope to see you in Denver later this spring.  

Steven Prins
Santa Fe, NM

> On Feb 23, 2019, at 5:22 AM, 4d_tech-requ...@lists.4d.com wrote:
> 
> Date: Fri, 22 Feb 2019 13:45:57 -0700
> From: "Tom Dillon"  >
> To: <4d_tech@lists.4d.com >
> Subject: Denver Area Developers
> Message-ID: <2019004557.1229705...@smtp.gmail.com 
> >
> Content-Type: text/plain; charset=US-ASCII
> 
> Are there still any 4D Developers in the Denver area?

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

Re: Build Application “No License is Installed" and ...

2019-02-25 Thread John J Foster via 4D_Tech
Hi Koen,

So looking at the "Licenses & Certificate” tab I would have to answer no.

Ahhh…

So I updated them and then clicked on the Build and I got an error “Unknown 
error”. Very descriptive! 

So thank you Koen I am closer.

Now to figure out the next level of challenges. Might this error have something 
to do wth the “OS X Signing Certificate”?

I’, pretty sure I am missing some steps here.

Appreciate,
John…


> Did you add/update your new licenses in the "Licenses & Certificate" tab of 
> the Build Application dialog? 

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

Re: Build Application “No License is Installed" and ...

2019-02-25 Thread John J Foster via 4D_Tech
Hi Steve,

I don’t think so? Running 4D Server or 4D Pro or 4D Standalone require 
different licenses.

I just updated recently and the 4D Pro seems to work fine.

John...

> Is it that you have two separate licences - should you not just have the 
> partner licence for both or the developer licence for both? 
> 
> Having said that my licence was incorrectly updated at maintenance renewal 
> recently and fixed very quickly by 4D in France. 



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

Re: "Attempting to retype using a pointer"

2019-02-25 Thread Kirk Brooks via 4D_Tech
Jeremy,
Since you are writing the data to an object what's the value of using the
pointer? Why not just write the data?

In fact, since TCMGetRow looks like it is simply holding the data for the
transfer you could make it a loop:

For($i;1;number of objects)

$o["_"+string($i)]:=Object get pointer(Object named;$root+string($i))->

End for

This way you don't need to care about the data type assuming the 2 objects
actually have the same typed objects for each index.

But to specifically answer your question I would take a look at the way the
date value is stored in your object and then how you reference it. There's
another post about dates and objects that sounds on point with what you are
doing.


On Mon, Feb 25, 2019 at 7:37 AM Jeremy Roussak via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I have a form which shows a variable number of rows of numbers and text.
> The rows are created using OBJECT DUPLICATE on each of the half-dozen items
> in the row (yes, using a collection listbox might be a better way do to it,
> but I wrote this code a while ago). If a row is deleted, I need to copy the
> contents of the rows beneath it upwards.
>
>
> So I have a method which creates an object and populates it with pointers
> to the created variables. I call this to get a set of pointers to one row,
> then again to get a set to the next row, and then I copy.
>
> I start
>
> C_OBJECT($from;$to)
> $from:=TCMGetRow($start)
>
> then in a loop,
>
> $to:=$from
> $from:=TCMGetRow($i)
>
> $to.toDate:=$from.toDate
> $to.toAge:=$from.toAge
> etc.
>
>
>
> TCMGetRow has
>
> C_OBJECT($0;$o)
> C_LONGINT($1;$row)
> $row:=$1
>
> C_TEXT($root)
>
> $root:="vr"+String($row)+"c"
> $o:=New object
>
> $o.toDate:=OBJECT Get pointer(Object named;$root+"0")
> $o.toAge:=OBJECT Get pointer(Object named;$root+"1")
> etc
>
> $0:=$o
>
> I’m getting the message in the subject line in the main loop for each
> assignment, but only when compiled; interpreted, it works fine. In the
> debugger, the pointers in $to and $from point to variables of the same type.
>
> I’m quite new to extensive use of objects. What am I missing?
>
> Jeremy
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

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

Re: Build Application “No License is Installed" and ...

2019-02-25 Thread Koen Van Hooreweghe via 4D_Tech
Hi John,

Did you add/update your new licenses in the "Licenses & Certificate" tab of the 
Build Application dialog?

HTH
Koen

> Op 25 feb. 2019, om 17:07 heeft John J Foster via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> I am using my 4D v17 Partner licenses which have been updated this February. 
> So I am current!
> 
> The License Manage reflects both:
> 
> 4D Developer Professional v17 R4 —> February 2020
> 4D Unlimited Desktop 4D v17 R4 - Partner Program
> 
> So looks good.
> 
> Now when I go into the Build Application Dialog -> Application Tab and…
> 
> Select Build stand-alone application
> 
> Point the 4D Volume Desktop Location by navigating to the folder and 
> selecting it.
> 
> The selection of Data Linking mode… doesn’t appear to make any difference.
> 
> What I get is “No License is Installed"




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Aalter
Belgium
tel +32 495 511.653

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

Re: Build Application “No License is Installed" and ...

2019-02-25 Thread UKVetDerm via 4D_Tech
Is it that you have two separate licences - should you not just have the 
partner licence for both or the developer licence for both?

Having said that my licence was incorrectly updated at maintenance renewal 
recently and fixed very quickly by 4D in France.

Steve



On 25/02/2019, 16:07, "4D_Tech on behalf of John J Foster via 4D_Tech" 
<4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote:

Hi All,

I know this has been discussed but I couldn’t anything but really old nug 
posts.

I am using my 4D v17 Partner licenses which have been updated this 
February. So I am current!

The License Manage reflects both:

4D Developer Professional v17 R4 —> February 2020
4D Unlimited Desktop 4D v17 R4 - Partner Program

So looks good.

Now when I go into the Build Application Dialog -> Application Tab and…

Select Build stand-alone application

Point the 4D Volume Desktop Location by navigating to the folder and 
selecting it.

The selection of Data Linking mode… doesn’t appear to make any difference.

What I get is “No License is Installed"

So not sure what I need to do.

I will be building for both Mac and Windows (separate partner licenses) so 
any tips and gotchas to look out for will be appreciated.

Thanks,
John…


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

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

Build Application “No License is Installed" and ...

2019-02-25 Thread John J Foster via 4D_Tech
Hi All,

I know this has been discussed but I couldn’t anything but really old nug posts.

I am using my 4D v17 Partner licenses which have been updated this February. So 
I am current!

The License Manage reflects both:

4D Developer Professional v17 R4 —> February 2020
4D Unlimited Desktop 4D v17 R4 - Partner Program

So looks good.

Now when I go into the Build Application Dialog -> Application Tab and…

Select Build stand-alone application

Point the 4D Volume Desktop Location by navigating to the folder and selecting 
it.

The selection of Data Linking mode… doesn’t appear to make any difference.

What I get is “No License is Installed"

So not sure what I need to do.

I will be building for both Mac and Windows (separate partner licenses) so any 
tips and gotchas to look out for will be appreciated.

Thanks,
John…


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

Re: 4D JSON Date Bug

2019-02-25 Thread Bart Davis via 4D_Tech
Thanks Jeremy,

I turned on the compatibility setting for "Use date type instead of ISO date 
format in objects" and restarted 4D, but still get the same results from the 
code below.  Even if the setting did result in the correct answer, I think that 
4D made a bad decision to make the default behavior change the date for a date 
string that doesn't include time (ie. no T00:00:00).

Bart

> On Feb 24, 2019, at 8:39 PM, Jeremy French  wrote:
> 
> Hi Bart,
> 
> If you store a date in an Object as a string, 4D interprets that date as a 
> UTF date.
> 
> So “2019-02-24” (giving only the date but not time) is interpreted as 
> midnight on the 24th. That is at the stroke of midnight when the 24th day 
> **starts**.
> 
> When you retrieve the value around 6:30 PST on the 24th, 4D is converting to 
> your local time — which is several hours **before** the 24th begins. Hence 
> you see the 23rd.
> 
> If you pass a 4D date, the problem won’t happen. That is replace the string 
> ("2019-02-24”) with a 4D date (#2019-02-24#).
> 
> There’s also a compatibility setting that where you can specify that string 
> dates are to be treated as 4D dates. That is, no time associated with the 
> date. Then your expression:
> 
>> OB SET($obj;"apiDate";"2019-02-24")
> 
> would always return the 24th
> 
> Best regards,
> Jeremy
> 
> 
>> On Feb 24, 2019, at 9:24 PM, Bart Davis via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> If you store a 4D date value in an object and retrieve it the value is 
>> correct.  However, if you retrieve a date that is stored in the format 
>> -MM-DD, the date returned is one day less that the date stored.
>> 
>> The code below illustrates the issue.  I have only tested this on Mac OS 
>> using 4D v17.1  (Note:  I tested this at 6:30 pm PST and am not sure if GMT 
>> offset has any effect)
>> 
>> Has anyone else experienced this issue?
>> 
>> Thanks,
>> Bart
>> 
>> C_DATE($4dDate;$apiDate)
>> C_OBJECT($obj)
>> 
>> $obj:=New object
>> $today:=Current date
>> 
>> OB SET($obj;"4Ddate";$today)
>> OB SET($obj;"apiDate";"2019-02-24")
>> 
>> $4dDate:=ob get($obj;"4Ddate";Is date)  // date returned is correct 
>> 2019-02-24
>> $apiDate:=ob get($obj;"apiDate";Is date) // ERROR: date returned is 
>> 2019-02-23
> 

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

"Attempting to retype using a pointer"

2019-02-25 Thread Jeremy Roussak via 4D_Tech
I have a form which shows a variable number of rows of numbers and text. The 
rows are created using OBJECT DUPLICATE on each of the half-dozen items in the 
row (yes, using a collection listbox might be a better way do to it, but I 
wrote this code a while ago). If a row is deleted, I need to copy the contents 
of the rows beneath it upwards.


So I have a method which creates an object and populates it with pointers to 
the created variables. I call this to get a set of pointers to one row, then 
again to get a set to the next row, and then I copy.

I start

C_OBJECT($from;$to)
$from:=TCMGetRow($start)

then in a loop,

$to:=$from
$from:=TCMGetRow($i)

$to.toDate:=$from.toDate
$to.toAge:=$from.toAge
etc.



TCMGetRow has

C_OBJECT($0;$o)
C_LONGINT($1;$row)
$row:=$1

C_TEXT($root)

$root:="vr"+String($row)+"c"
$o:=New object

$o.toDate:=OBJECT Get pointer(Object named;$root+"0")
$o.toAge:=OBJECT Get pointer(Object named;$root+"1")
etc

$0:=$o

I’m getting the message in the subject line in the main loop for each 
assignment, but only when compiled; interpreted, it works fine. In the 
debugger, the pointers in $to and $from point to variables of the same type.

I’m quite new to extensive use of objects. What am I missing?

Jeremy

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