Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-26 Thread Douglas von Roeder via 4D_Tech
A recent discovery for me was a quick way to open the explorer.

Put the insertion point in the method editor on an empty line and press
Ctrl-k.



--
Douglas von Roeder
949-336-2902

On Fri, May 26, 2017 at 6:06 PM, Chip Scheide via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> @
>
> [t@1]f@1:=seq@n@
> can result in:
> [table_1]Field_1 := Sequence Number
>
> it is amazing how short a line of code can be, before it is expanded
> - then you have to go back and ad the '\' to make it readable.  :)
>
> You can use the @ to shortcut any tokenizable item. Commands, tables,
> fields, (your) method names. Any line of code as it is typed can include
> any number of @s, sometimes I have as many @s as other characters.
>
> Chip
>
>
>
> > In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would
> be
> > nice to start a thread to collect people's favorite 4D tricks and
> keystroke
> > combos. How this came up is that Wayne Stewart and I recently joined
> Damon
> > Carley in giving some presentations in Sydney and New Zealand. One of the
> > biggest crowed pleasers?
> >
> > SELECTION TO ARRAY(\
> >   [Customer]ID;$customer_ids_at;\
> >   [Customer]LastName;$last_names_at)
> >
> > The "\" line break/continuation character. It's been out there for about
> 10
> > years, but not everyone knows about it. It's great! It's great for array
> > sort, selection to array/array to selection, and a lot of OB SET kind of
> > stuff. Great!
> >
> > Someone said "I'm sure that's in the docs somewhere, but how would you
> find
> > it?" Good point, I guess you just look for / ;-) Quite a few people
> started
> > sharing their favorite tips and it turns out that there are *tons* of
> them.
> >
> > So, here's mine:
> >
> > -
> > Code Line Break Character
> > -
> > You can break a single line of code into multiple lines to simplify
> reading
> > and editing using the / character.
> >
> > So, if you found that useful or if it reminds you of one of your
> favorites,
> > please post another one. I'm sure no one knows all of the good ones but
> > everyone must know a few.
> >
> > If anyone wants to post links to the docs, that's more than welcome.
> (Tim &
> > Miyako, we're looking at you because you've each spoiled us with good
> links
> > down the years),
> > **
> > 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
> > **
> 
> Hell is other people
>  Jean-Paul Sartre
> **
> 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: Favorite tricks and keystrokes: Please take one and leave on

2017-05-26 Thread Chip Scheide via 4D_Tech
@

[t@1]f@1:=seq@n@
can result in:
[table_1]Field_1 := Sequence Number

it is amazing how short a line of code can be, before it is expanded 
- then you have to go back and ad the '\' to make it readable.  :)

You can use the @ to shortcut any tokenizable item. Commands, tables, fields, 
(your) method names. Any line of code as it is typed can include any number of 
@s, sometimes I have as many @s as other characters.

Chip



> In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would be
> nice to start a thread to collect people's favorite 4D tricks and keystroke
> combos. How this came up is that Wayne Stewart and I recently joined Damon
> Carley in giving some presentations in Sydney and New Zealand. One of the
> biggest crowed pleasers?
> 
> SELECTION TO ARRAY(\
>   [Customer]ID;$customer_ids_at;\
>   [Customer]LastName;$last_names_at)
> 
> The "\" line break/continuation character. It's been out there for about 10
> years, but not everyone knows about it. It's great! It's great for array
> sort, selection to array/array to selection, and a lot of OB SET kind of
> stuff. Great!
> 
> Someone said "I'm sure that's in the docs somewhere, but how would you find
> it?" Good point, I guess you just look for / ;-) Quite a few people started
> sharing their favorite tips and it turns out that there are *tons* of them.
> 
> So, here's mine:
> 
> -
> Code Line Break Character
> -
> You can break a single line of code into multiple lines to simplify reading
> and editing using the / character.
> 
> So, if you found that useful or if it reminds you of one of your favorites,
> please post another one. I'm sure no one knows all of the good ones but
> everyone must know a few.
> 
> If anyone wants to post links to the docs, that's more than welcome. (Tim &
> Miyako, we're looking at you because you've each spoiled us with good links
> down the years),
> **
> 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
> **

Hell is other people 
 Jean-Paul Sartre
**
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
**

Favorite tricks and keystrokes: Please take one and leave on

2017-05-26 Thread David Adams via 4D_Tech
In honor of National Take-a-Penny/Leave-a-Penny Day, I thought it would be
nice to start a thread to collect people's favorite 4D tricks and keystroke
combos. How this came up is that Wayne Stewart and I recently joined Damon
Carley in giving some presentations in Sydney and New Zealand. One of the
biggest crowed pleasers?

SELECTION TO ARRAY(\
  [Customer]ID;$customer_ids_at;\
  [Customer]LastName;$last_names_at)

The "\" line break/continuation character. It's been out there for about 10
years, but not everyone knows about it. It's great! It's great for array
sort, selection to array/array to selection, and a lot of OB SET kind of
stuff. Great!

Someone said "I'm sure that's in the docs somewhere, but how would you find
it?" Good point, I guess you just look for / ;-) Quite a few people started
sharing their favorite tips and it turns out that there are *tons* of them.

So, here's mine:

-
Code Line Break Character
-
You can break a single line of code into multiple lines to simplify reading
and editing using the / character.

So, if you found that useful or if it reminds you of one of your favorites,
please post another one. I'm sure no one knows all of the good ones but
everyone must know a few.

If anyone wants to post links to the docs, that's more than welcome. (Tim &
Miyako, we're looking at you because you've each spoiled us with good links
down the years),
**
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: https not working

2017-05-26 Thread Keisuke Miyako via 4D_Tech
is the file in pem format?
some agencies issue p12 or even der certificates.

c.f.
https://github.com/miyako/4d-plugin-convert-certificate

> 2017/05/27 3:07、David Ringsmuth via 4D_Tech <4d_tech@lists.4d.com> のメール:
> We just installed a new cert.pem from QualitySSL.
> I’ve evaluated the cert.pem with my openSSL tools and verified its good, and 
> the modulus matches the key.pem.
> 4D Server is showing 443 open, active, but is not responding to any requests.
> I’ve given the cert/key.pem to Pascal, and am waiting for a response from him.




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

https not working

2017-05-26 Thread David Ringsmuth via 4D_Tech
4D Server v15.4
Windows Server 2016
Active4D

We just installed a new cert.pem from QualitySSL.

I’ve evaluated the cert.pem with my openSSL tools and verified its good, and 
the modulus matches the key.pem.

4D Server is showing 443 open, active, but is not responding to any requests.

I’ve given the cert/key.pem to Pascal, and am waiting for a response from him.

I need ideas please!

Thanks!

David Ringsmuth

**
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: Write.4dbase Component ???

2017-05-26 Thread Randy Engle via 4D_Tech
Miyako,

Much appreciated!

Randy Engle
XC2 Software LLC

-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Keisuke Miyako 
via 4D_Tech
Sent: Friday, May 26, 2017 12:08 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Keisuke Miyako 
Subject: Re: Write.4dbase Component ???

Hello,

it might be an early edition of this component:

https://github.com/miyako/4d-component-write-converter

originally a 2011 Summit presentation

http://kb.4d.com/assetid=76535

> 2017/05/26 10:05、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール:
> Write.4dbase


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

Restart Client Under Program Control

2017-05-26 Thread Benedict, Tom via 4D_Tech
In v 13.x, when a client 'loses a connection' to 4D Server due to a network 
interruption of some sort, 4D.exe will display and dialog which includes a 
"Restart" button. When "Restart" is clicked 4D.exe relaunches and auto-logs in 
using the same credentials (or maybe it is just using the 4DLink file which I 
created?). Anyhow, what I'd like to do is call this 'feature' from 4D code to 
re-launch 4D.exe on demand.  Is this possible?

Thanks,

Tom Benedict
Optum
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
**
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: Write.4dbase Component ???

2017-05-26 Thread Keisuke Miyako via 4D_Tech
Hello,

it might be an early edition of this component:

https://github.com/miyako/4d-component-write-converter

originally a 2011 Summit presentation

http://kb.4d.com/assetid=76535

> 2017/05/26 10:05、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール:
> Write.4dbase



**
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: OB Get on Time Field

2017-05-26 Thread info--- via 4D_Tech
> I suppose I'm missing something obvious...
>
> Within an object "created":"2014-02-01T09:28:56"
>
> OB Get is returning the correct date with:
>
> OB Get($OBGenInfo;"created";Is date) with
>
> But, time always returns ?00:00:02? using:
>
> OB Get($OBGenInfo;"created";Is time)
>
> Or is the time a count down 'till an IPA or maybe steamer lager?

I was wondering about that unexpected behaviour when parsing a JSON-feed


Suppose the library 4D uses to parse JSON is less flexible, than the formatting 
of date/time as JSON-object is. Helped myself and cut the time out of the 
received text-representation.


Grüße/regards
Ortwin Zillgen
**
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
**