Re: SVG scale

2017-09-20 Thread Tom DeMeo via 4D_Tech
Hi Ortwin,



> On Sep 20, 2017, at 3:00 PM, 4d_tech-requ...@lists.4d.com wrote:
> 
>> 
>> SVG is a whole lot easier to manage in JavaScript.
> 
> I'm wondering about modern myths …


Perhaps you’ve primarily used SVG to render fixed images, or if the images do 
change, the triggers come from events in 4D, not on the SVG area. In that case, 
you probably don’t notice much difference. But the SVG spec creates objects 
just like HTML does, and just like HTML, you can bind events and attributes to 
those objects, and can do some very useful interactive stuff

The 4D SVG component and the 4D language don’t have any direct way to apply 
events to individual objects in an SVG area. With Javascript, this is easy. It 
is object oriented. Each SVG object can contain its own event handlers and 
attribute data. Objects can inherit prototype traits. Objects can nest inside 
each other. The language is built for this stuff.

An example of the difference would be in an implementation of drag and drop in 
SVG. You can do it with 4D, but it takes quite a few lines of code. Its pretty 
awkward, especially if there are a lot of objects. The same problem in 
javascript is simple and elegant and fast.



Tom DeMeo
**
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
**

Configure SSL Web Server on 4Dv15

2017-09-20 Thread Andrea Angeli via 4D_Tech
Hi,
It is the first time that I try to config https on 4D and I’m not able to it.
I generated the request from 4D and send the request to Godaddy in order to 
create the cert files. 
I got the cert files from GoDaddy.
Godaddy generated 2 files with extansion in .crt but the files are text files 
so I just change the extension from .cert to .pem.
I verify the files .pem using openssl and they are ok.
The file names are set in cert.pem and key.pem.
In the cert.pem file I append the second file that, I suppose is the 
intermediate file, it has 2 ——BEGIN CERTIFICATE—— ——END CERTIFICATE—— 
If I start 4D it gave me the alert: “The database cannot be published”.
I tried to put to files separately on cert.pem and the second intermediate.pem 
so I do not change any text inside the file but I got the same alert

Does any one know where I’m wrong?

Thanks in advance

Andrea
**
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
**

[OFF] 4D Developer position still available in Fort Lauderdale, FL

2017-09-20 Thread Floyd Zink via 4D_Tech
We hired a 4D Developer last year and are now looking for an additional 
developer to become the 4th member of our development team. We are looking for 
an experienced 4D Developer that can hit the ground running and make an 
immediate impact. Relocation assistance will be provided for the right 
candidate. This is a full-time, on location, position. A remote developer will 
not be considered.

Please submit salary history and requirements with your resume to 
human-resources(at)qmedcorp.com and copy me at fzink(at)qmedcorp.com.

Please do not reply to this list email as anything other than NUG messages are 
automatically deleted and I'll never see it.

Thanks!

Floyd Zink
Sr. Vice President, Information Technologies
QMed Corporation
fzink(at)qmedcorp.com

*

QMed Corporation, a wholesale distributer of disposable medical supplies, is an 
established and successful 27-yr old company headquartered in Fort Lauderdale, 
FL. We are seeking a talented and experienced full time 4D Developer in our 
Fort Lauderdale office. Job responsibilities include designing, developing, and 
maintaining our custom ERP system written in 4D, Warehouse Management System, 
and related business applications.

The successful candidate must have strong logical and analytical skills. Be 
highly motivated, independent, creative, a team player with a professional 
attitude. Possess the ability to communicate effectively through all levels of 
the organization, with strong presentation and interpersonal skills.

Requirements and Responsibilities:

- 3+ years experience with 4D database development
- 5+ years experience with relational database design, code and interface 
development
- 5+ years programming experience
- Proficiency with Mac OS X
- Experience working on software projects with a development team, but you 
should also be a self-starter and be able to work on your own
- Experience with business analysis and creating software solutions for 
workflow automation
- Good project management and estimating techniques
- Prepare detailed specifications from which systems are developed or modified 
that are used for the basis of the development
- Prepare detailed documentation in support of user training

Desired:

- Experience with ERP systems and business processes such as inventory 
management, order processing, and accounting
- Proficiency with multiple Operating Systems including Mac OS X, Windows, 
Windows Server
- Experience with SQL and Microsoft SQL Server
- Experience with Warehouse Management Systems

Degree in Computer Science or related is a plus.

Full benefit package including Medical, Dental, Life, Short Term Disability, 
Long Term Disability, 401(k) with company match, and paid vacation days.

Salary will be commensurate with experience. Relocation assistance will be 
provided for the right candidate. Please submit salary history and requirements 
with your resume to human-resources(at)qmedcorp.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: ODBC import from Access into v15

2017-09-20 Thread Charles Miller via 4D_Tech
OK what is really strange is that I restarted windows and used command import 
odbc and all worked as it should have.

Regards

Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
mailto:miller.cjaygmail.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  



> On Sep 19, 2017, at 12:46 PM, Charles Miller via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Hi all,
> 
> I have a db that is used to convert some data. When it was a v11 database,
> I had no trouble importing from access data file
> 
> Using same ODBC connection I can not import to v15. Anyone importing from
> access and if so how.
> 
> Regards
> 
> Chuck

**
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: SVG Scale

2017-09-20 Thread David Adams via 4D_Tech
> Regarding SVG scaling, I haven’t specifically used D3, but I’m sure it
makes scaling issues easier. However, scaling in SVG is still something
> that requires you to think through the relationships of your objects. It
isn’t magic, and it can’t guess what you have in mind.

Well said. Also, I should have made the point more clearly that you can get
the scaling library from D3 _without_ the rest of D3. No need to buy the
whole pig if you just want a pork chop.



On Wed, Sep 20, 2017 at 11:55 PM, Tom DeMeo via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi,
>
>
> > SVG is a whole lot easier to manage in JavaScript. If for no other
> reason,
> > you've got access to the D3 libraries.
>
> I would strongly concur with David Adams point that you want to manage SVG
> with javaScript instead of the 4D language. This is an object oriented
> scheme, and its pretty difficult to work with if you don’t have an object
> oriented language to work with it. The D3 libraries or some other library
> are important too, but the language itself is truly important.
>
>
> > * He's also pretty into that freight-car-function style from jQuery
> which I
> > hated on sight. But it does make it easier to set a ton of properties
> > legibly in a compact space. Virtually everything in D3 is set to return
> in
> > a way that supports this syntax so, yeah, be aware of that.
>
>
> This style is really just accepting a single hierarchical object of
> parameters. You can write code that defines attributes in objects in a lot
> of different ways in javaScript. I’d recommend to anyone that they spend
> some time considering a coding style that appeals to them and always try to
> do it the same way. The syntax the library’s examples shows you is not
> mandatory. Its just a javascript object, and as long as you respect the
> underlying architecture of that object, you can use whatever syntax you
> prefer.
>
>
> Regarding SVG scaling, I haven’t specifically used D3, but I’m sure it
> makes scaling issues easier. However, scaling in SVG is still something
> that requires you to think through the relationships of your objects. It
> isn’t magic, and it can’t guess what you have in mind.
>
> Consider the scheme on a 4D form. In 4D, the form itself and the objects
> have sizing parameters (none/move/grow). Splitters can provide additional
> control. Its a nice, simple scheme. However, if you don’t bother to set
> these parameters, you don’t get the scaling you want.
>
> A few years ago, I worked out an HTML layout scheme using a different
> javascript library, Raphael. I wrote a code library so that I could set
> move/grow parameters just like 4D provides in its forms, which I think is a
> pretty smart scheme. I haven’t done anything with it for quite a while, but
> I’m still hosting a demo, so you can check it out:
>
> http://www.svglayout.com/svglayout/index.html  svglayout/index.html>
>
> When you get there, click on the SL widget in the upper right corner to
> activate the editor. You will see object outlines and handles and can drag
> objects around. You can also double click on an object to see the sizing
> and scaling attribute dialog. The whole site you see is built using an SVG
> based layout scheme. Traditional HTML layout strategies are not used.
>
>
>
> Tom DeMeo
>
>
>
>
>
>
>
> > --
> >
> > Message: 5
> > Date: Wed, 20 Sep 2017 09:02:08 +1000
> > From: David Adams 
> > To: 4D iNug Technical <4d_tech@lists.4d.com>
> > Subject: Re: SVG Scale
> > Message-ID:
> >   

Re: SVG Scale

2017-09-20 Thread David Adams via 4D_Tech
> SVG is a whole lot easier to manage in JavaScript.

> I'm wondering about modern myths …

Hey Ortwin, you may not have had the same experience as me, but I find JS
easier for dealing with SVG. Just having foreach is a help, at a start. And
D3 is lightyears ahead, if you want to get that far into the weeds. To be
fair, I can't comment on the component as I haven't used it. I started out
doing SVG by hand to learn about SVG itself, From there I tried automating
it with 4D (hard) and then moved right into D3 (amazing.) But from the
comments and limits I see people running into, yeah, if you're planning on
doing a lot of work with SVG where you need the *full* feature set of SVG,
head to JavaScript.
**
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: SVG Scale

2017-09-20 Thread Tom DeMeo via 4D_Tech
Hi,


> SVG is a whole lot easier to manage in JavaScript. If for no other reason,
> you've got access to the D3 libraries. 

I would strongly concur with David Adams point that you want to manage SVG with 
javaScript instead of the 4D language. This is an object oriented scheme, and 
its pretty difficult to work with if you don’t have an object oriented language 
to work with it. The D3 libraries or some other library are important too, but 
the language itself is truly important.


> * He's also pretty into that freight-car-function style from jQuery which I
> hated on sight. But it does make it easier to set a ton of properties
> legibly in a compact space. Virtually everything in D3 is set to return in
> a way that supports this syntax so, yeah, be aware of that.


This style is really just accepting a single hierarchical object of parameters. 
You can write code that defines attributes in objects in a lot of different 
ways in javaScript. I’d recommend to anyone that they spend some time 
considering a coding style that appeals to them and always try to do it the 
same way. The syntax the library’s examples shows you is not mandatory. Its 
just a javascript object, and as long as you respect the underlying 
architecture of that object, you can use whatever syntax you prefer. 


Regarding SVG scaling, I haven’t specifically used D3, but I’m sure it makes 
scaling issues easier. However, scaling in SVG is still something that requires 
you to think through the relationships of your objects. It isn’t magic, and it 
can’t guess what you have in mind.

Consider the scheme on a 4D form. In 4D, the form itself and the objects have 
sizing parameters (none/move/grow). Splitters can provide additional control. 
Its a nice, simple scheme. However, if you don’t bother to set these 
parameters, you don’t get the scaling you want.

A few years ago, I worked out an HTML layout scheme using a different 
javascript library, Raphael. I wrote a code library so that I could set 
move/grow parameters just like 4D provides in its forms, which I think is a 
pretty smart scheme. I haven’t done anything with it for quite a while, but I’m 
still hosting a demo, so you can check it out:

http://www.svglayout.com/svglayout/index.html 


When you get there, click on the SL widget in the upper right corner to 
activate the editor. You will see object outlines and handles and can drag 
objects around. You can also double click on an object to see the sizing and 
scaling attribute dialog. The whole site you see is built using an SVG based 
layout scheme. Traditional HTML layout strategies are not used.



Tom DeMeo







> --
> 
> Message: 5
> Date: Wed, 20 Sep 2017 09:02:08 +1000
> From: David Adams 
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Subject: Re: SVG Scale
> Message-ID:
>   

Re: SVG Scale

2017-09-20 Thread Ortwin Zillgen via 4D_Tech
> SVG is a whole lot easier to manage in JavaScript.

I'm wondering about modern myths …

There is a wonderful component in every copy of 4D, which is called 4D SVG.

This is a gem of a component and makes working with SVGs in 4D so much easier. 
I see the diehards still trying to do the xml-plumbing themselves.

For my own convenience and sometimes to better understand how it's done I check 
the source of a 4D SVG-command

and then fix my code


Regards
O r t w i n  Z i l l g e n
-
   
 
member of developer-network 

**
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: 4D v16.2 false record locks

2017-09-20 Thread Alan Chan via 4D_Tech
Hi Koen,

I think your case is very different and might be v16 issue as user was still on 
server list and you couldn't disconnet it.

The trigger issue (not actually an issue) I mentioned was the record was locked 
and the related user wasn't even on the server list.

Alan Chan

4D iNug Technical <4d_tech@lists.4d.com> writes:
>In the case I mentioned, there were no triggers involved. No fancy stuff 
>either. Just a record which is being automatically locked because it was 
>opened in an input form.
>But I don’t know how the user left the building…
>
>Koen

**
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: 4D v16.2 false record locks

2017-09-20 Thread Koen Van Hooreweghe via 4D_Tech
In the case I mentioned, there were no triggers involved. No fancy stuff 
either. Just a record which is being automatically locked because it was opened 
in an input form.
But I don’t know how the user left the building…

Koen

> Op 19 sep. 2017, om 22:21 heeft Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
> het volgende geschreven:
> 
> This is a great point. I wonder if any of the users reporting this problem 
> have triggers that are doing some “fancy stuff” that could be causing this. 




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

**
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: Time stamp with milliseconds

2017-09-20 Thread Peter Bozek via 4D_Tech
On Wed, Sep 20, 2017 at 10:03 AM, Christian Sakowski <
christian.sakow...@heubach-media.de> wrote:

> Why not using the command „Timestamp“?
> It returns exactly what you need:
>
>
Because I did not know this command exists. Thanks for pointing out. I look
it is available from 16R2, project is not there yet, but will create
wrapper that will be replaced by actual command when the project is
upgraded.

--

Peter Bozek
**
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: Time stamp with milliseconds

2017-09-20 Thread Christian Sakowski via 4D_Tech
Why not using the command „Timestamp“?
It returns exactly what you need:

2016-12-12T13:31:29.477Z   Log with timestamp
--

Grüße/Regards,
[heubach-media] | Christian Sakowski
christian.sakow...@heubach-media.de
iChat/AIM: SakowskiF
Tel: +49/(0)40/52 10 59-23



> Am 20.09.2017 um 10:00 schrieb Peter Bozek via 4D_Tech <4d_tech@lists.4d.com>:
> 
> I would like to implement my own event logging with millisecond resolution
> - like 2017-05-12 20:52:50,147 to use for sorting of events. There is
> Milliseconds command, but thus provide information I need.
> 
> If it is not possible, did somebody tested single alternative like
> incrementing global variable that is reset each second? Something like
> 
> $currentTime:=Current time
> If($currentTime > <>fsLastTime)
>  <>fsCounter:=0
>  <>fsLastTime:= $currentTime
> End if
> <> fsCounter:=<> fsCounter +1
> $0:=<> fsCounter
> 
> --
> 
> Peter Bozek
> **
> 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
> **


--
heubach media
Osterfeldstr. 12-14 | Haus 1 | Eingang Nord
22529 Hamburg
tel: 040 / 52 10 59 - 10 | fax: -99
mail: i...@heubach-media.de
home: www.heubach-media.de
Geschäftsführer|CEO: Matthias Heubach

Mieten Sie Ihre Computer, iPads & Drucker für Ihre Events bei:
http://www.milo-rental.com

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
 
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
**
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
**

Time stamp with milliseconds

2017-09-20 Thread Peter Bozek via 4D_Tech
I would like to implement my own event logging with millisecond resolution
- like 2017-05-12 20:52:50,147 to use for sorting of events. There is
Milliseconds command, but thus provide information I need.

If it is not possible, did somebody tested single alternative like
incrementing global variable that is reset each second? Something like

$currentTime:=Current time
If($currentTime > <>fsLastTime)
  <>fsCounter:=0
  <>fsLastTime:= $currentTime
End if
<> fsCounter:=<> fsCounter +1
$0:=<> fsCounter

--

Peter Bozek
**
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: Form with Custom Grow Box

2017-09-20 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Cannon,

Thanks for the reply, I am certainly going to try it!

Do you perhaps know if there is a way to open a Movable form dialog box without 
title bar?
Because I didn't find how to do that, I want to create the grow box on a Modal 
form dialog box

Or is the reason you know how to create a custom grow box exactly for this 
reason?

Gr,

Piotr

> -Oorspronkelijk bericht-
> Van: Cannon Smith [mailto:can...@synergyfarmsolutions.com]
> Verzonden: dinsdag 19 september 2017 18:10
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> Onderwerp: Re: Form with Custom Grow Box
> 
> Here is a way for doing that:
> 
> 1. Create a picture that looks like a window grabber and place it in the 
> bottom
> right of the form. Put an invisible button over top of it.
> 
> 2. In the invisible button, capture On Mouse Move and use "SET
> CURSOR(9005)” to change the mouse cursor to a resize icon.
> 
> 3. In the On Clicked event of the invisible button, capture the mouse position
> (GET MOUSE) and window position and size (GET WINDOW RECT) and store
> that information somewhere (probably process variables). Then start timer
> (every 1 ticks works fine).
> 
> 4. Every time the timer runs, capture the current mouse position and
> compute the difference from the original position. From this you can figure
> out how large the window should be at the moment and you can change it
> using SET WINDOW RECT. You should also check to see if the mouse button
> has been released (GET MOUSE) and stop the timer if it has. In the timer you
> can do the math to make sure the window doesn’t get too small, etc. as well.
> 
> HTH.
> 
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> 
> 
> 
> 
> > On Sep 19, 2017, at 9:51 AM, Piotr Chabot Stadhouders via 4D_Tech
> <4d_tech@lists.4d.com> wrote:
> >
> > What I am actually want to do is create a form window without title bar, but
> that still is resizable.
> > Is there someone that knows how to accomplish this?
> 

**
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
**