Re: New Mail Command 17r6

2020-04-03 Thread Keisuke Miyako via 4D_Tech
what if you login to livedoc?

https://livedoc.4d.com/

do you still not see extra tabs? 

> 2020/04/04 6:45、UKVetDerm via 4D_Tech <4d_tech@lists.4d.com>のメール:
> v17v6 docs are not available on line.

**
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: New Mail Command 17r6

2020-04-03 Thread Keisuke Miyako via 4D_Tech
this is one of those situations where the code is absolutely platform specific.

$file:=$1

  //target pdf
If (Is Windows)
SET CURRENT PRINTER(Generic PDF driver)
SET PRINT OPTION(Destination option;2;$file.platformPath)
Else 
SET PRINT OPTION(Destination option;3;$file.platformPath)
End if 

2 on windows, 3 on mac.

> 2020/04/04 6:45、UKVetDerm via 4D_Tech <4d_tech@lists.4d.com>のメール:
> 
> SET PRINT OPTION(Destination option;2;$longDocName)
> 
> However I only get valid PDFs for EMAIL using the older code for MAC
> SET PRINT OPTION(Destination option;3;$longDocName)

**
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: New Mail Command 17r6

2020-04-03 Thread UKVetDerm via 4D_Tech
I hope this helps someone. I have solved my problem -  a couple of hours taken 
however!

The following command will create PDFs on both platforms (as shown by the most 
recent language reference)
These are readable and printable
SET PRINT OPTION(Destination option;2;$longDocName)

However I only get valid PDFs for EMAIL using the older code for MAC
SET PRINT OPTION(Destination option;3;$longDocName)

I feel SO in need of a good set of printed reference documents for use when 
things are changing quite rapidly and now that V18 has come out v17v6 docs are 
not available on line.
I suspect this is a version difference.

Kind regards and thank you for all the suggestions

Steve

On 03/04/2020, 18:25, "4D_Tech on behalf of UKVetDerm via 4D_Tech" 
<4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote:


The files won't open on Mac OS or Windows and the applications tried 
include Preview, PDF Expert and Adobe Acrobat

The header information looks good to me
%!PS-Adobe-3.0
%APL_DSC_Encoding: UTF8
%APLProducer: (Version 10.14.6 (Build 18G4032) Quartz PS Context)

Thanks

Steve

On 03/04/2020, 18:15, "4D_Tech on behalf of JBellos via 4D_Tech" 
<4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote:

More along the lines of Tim - we had a problem recently where there was 
some
'stuff' being inserted into the header of the PDF. Mac Preview seems to 
do a
great job at ignoring this, but most Windows based PDF readers don't
(including Acrobat), probably for security reasons. If you save the 
received
PDF to disk and examine it in some kind of raw text editor, do you see
garbage before the PDF or does it look OK?



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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
**

**
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: Image Export Issues

2020-04-03 Thread Douglas von Roeder via 4D_Tech
Robert:

Agreed. My condolences, Robert.

--
Douglas von Roeder
949-910-4084


On Fri, Apr 3, 2020 at 6:29 AM Cannon Smith via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> So sorry to hear about your wife, Robert. I can’t imagine how tough that
> is for you.
>
> --
> Cannon Smith
>
> > On Apr 2, 2020, at 10:56 PM, Robert McKeever via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > So, to all, thank you. I needed a success - my wife of almost 39 years
> passed away from a long battle (10 years or more) with Vascular Dementia.
> My soulmate.
>
> **
> 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: New Mail Command 17r6

2020-04-03 Thread UKVetDerm via 4D_Tech

The files won't open on Mac OS or Windows and the applications tried include 
Preview, PDF Expert and Adobe Acrobat

The header information looks good to me
%!PS-Adobe-3.0
%APL_DSC_Encoding: UTF8
%APLProducer: (Version 10.14.6 (Build 18G4032) Quartz PS Context)

Thanks

Steve

On 03/04/2020, 18:15, "4D_Tech on behalf of JBellos via 4D_Tech" 
<4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote:

More along the lines of Tim - we had a problem recently where there was some
'stuff' being inserted into the header of the PDF. Mac Preview seems to do a
great job at ignoring this, but most Windows based PDF readers don't
(including Acrobat), probably for security reasons. If you save the received
PDF to disk and examine it in some kind of raw text editor, do you see
garbage before the PDF or does it look OK?



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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
**

FW: New Mail Command 17r6

2020-04-03 Thread UKVetDerm via 4D_Tech

Thanks Tim this is the situation. Very little has changed

Original Environment:
-
Program creating the PDF: 4D 
OS creating the PDF: macOS 
Printer driver used: macOS built in ( we can still produce PDFs using 
the code to put the PDF into the temporary folder for sending)
OS 4D is running on that sends the email with PDF: macOS 10.14.6
4D Version sending the PDF via email: 17r6.243856 (client) / 
17r6.243856 (server) - MAC OS not working
4D Version sending the PDF via email: 17r6.243856 (client) / 
17r6.243856 (server) - Windows 10 for workstation/default PDF driver working 
fine!

 Thanks

Steve


**
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: New Mail Command 17r6

2020-04-03 Thread UKVetDerm via 4D_Tech

Original Environment:
-
Program creating the PDF: 4D 
OS creating the PDF: macOS 
Printer driver used: macOS built in ( we can still produce PDFs using the 
code to put the PDF into the temporary folder for sending)
OS 4D is running on that sends the email with PDF: macOS 10.14.6
4D Version sending the PDF via email: 17r6.243856 (client) / 17r6.243856 
(server) - MAC OS not working
4D Version sending the PDF via email: 17r6.243856 (client) / 17r6.243856 
(server) - Windows 10 for workstation/default PDF driver working fine!

Fill in the above blanks so we know exactly what changed. 

A change to any one of these could case a PDF problem — particularly when 
you mix macOS and Windows. 

I have dealt with a case where using certain versions of Microsoft Print to 
PDF driver in Windows 10 will create a PDF that will not open with Acrobat 
Reader on Windows 10, but it opens fine on macOS. Exact same code and 4D 
version running on a different Windows 10 machine with a different version of 
Microsoft Print to PDF driver did not have the problem.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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
**

**
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: New Mail Command 17r6

2020-04-03 Thread JBellos via 4D_Tech
More along the lines of Tim - we had a problem recently where there was some
'stuff' being inserted into the header of the PDF. Mac Preview seems to do a
great job at ignoring this, but most Windows based PDF readers don't
(including Acrobat), probably for security reasons. If you save the received
PDF to disk and examine it in some kind of raw text editor, do you see
garbage before the PDF or does it look OK?



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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
**

Bootstrap page links from Active4D

2020-04-03 Thread Doug Hall via 4D_Tech
Active4D's Batch.makeFuseboxLinks is a little limiting, if you're trying to
create pagination links that are embedded within an  tag, like the kind
Bootstrap recommends. <
https://getbootstrap.com/docs/3.3/components/#pagination>. Has anyone else
here that uses Active4D run across this, and already solved this issue? I'd
hate to reinvent the wheel, as it is not trivial to parse this code.

Thanks,
Doug
**
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: New Mail Command 17r6

2020-04-03 Thread Tim Nevels via 4D_Tech
On Apr 3, 2020, at 11:49 AM, Steve wrote:

> The following code has been working really well, much faster than the old IC 
> methods, but from today the PDFs are arriving corrupted if sent from a MAC 
> client, but not from a PC client. We have not used PC clients before, but 
> because of bandwidth issues I have just set one up as a RDC client for one 
> worker stuck at the end of a very long telephone line in the hills. Has using 
> these commands on the PC inadvertently changed a default on the MAC. We use a 
> MAC server and I am feeling bamboozled. The code is pretty vanilla from the 
> reference. We use default encoding.
> 
> Any suggestions most welcome
> 
> Thanks and hope you and yours are staying safe

Not sure I’m clear on the environment you were operating in and the one that is 
now delivering corrupted PDFs. Can you clarify.

Original Environment:
-
Program creating the PDF: 4D or what?
OS creating the PDF: macOS or Windows
Printer driver used: macOS built in, Microsoft Print to PDF or PDF Creator 1.7.3
OS 4D is running on that sends the email with PDF: macOS or Windows
4D Version sending the PDF via email: 17r6 or ?

New Environment (that results in corrupt PDFs received via email):
---
Program creating the PDF: 
OS creating the PDF: 
Printer driver used: 
OS 4D is running on that sends the email with PDF: 
4D Version sending the PDF via email: 

Fill in the above blanks so we know exactly what changed. 

A change to any one of these could case a PDF problem — particularly when you 
mix macOS and Windows. 

I have dealt with a case where using certain versions of Microsoft Print to PDF 
driver in Windows 10 will create a PDF that will not open with Acrobat Reader 
on Windows 10, but it opens fine on macOS. Exact same code and 4D version 
running on a different Windows 10 machine with a different version of Microsoft 
Print to PDF driver did not have the problem.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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: entitySelection.add and USE ENTITY SELECTION

2020-04-03 Thread Matt Bollwitt via 4D_Tech
Sorry – in my effort to “simplify the code” for posting to a public list, I put 
in ALERT vs. REQUEST and I cut out other/unnecessary code. The actual code is a 
bit more extensive on what it is requesting and comparing.

I’m currently working on upgrading our setup to v17.4 since this is a known bug 
in the Server/Client setting. This is the only instance that I have run into so 
far where USE ENTITY SELECTION isn’t working. I’ll post back with results once 
I get the update in place.

Thanks!

From: Jeremy French 
Date: Thursday, April 2, 2020 at 11:32 PM
To: 4D iNUG Technical <4d_tech@lists.4d.com>
Cc: Matt Bollwitt 
Subject: Re: entitySelection.add and USE ENTITY SELECTION

Are you actually able to enter a date?

Try replacing the “ALERT" command with the “Request" command.

See: https://doc.4d.com/4Dv17/4D/17.4/Request.301-4883122.en.html


On Apr 2, 2020, at 9:14 PM, Matt Bollwitt via 4D_Tech 
<4d_tech@lists.4d.com> wrote:

C_Object($sel;$sel_d;$sel_find)
C_Date(vFindDate)
vFindDate:=Date(ALERT("Enter date:"))
$sel_d:=ds.People.query("Receive_Mail = :1";True)   //all records to be 
compared
$sel_find:=ds.People.newSelection()  //empty entity
For each ($item;$sel_d)
   $sel:=ds.Entries.query("People_ID = :1 order by Entry_Date 
desc";$item.LinkID)
   If ($sel.length#0)  //anything found?
   If ($sel[0].Entry_Date<=vFindDate)   
//compare date of first entry
   $sel_find.add($item)
   End if
   End if
End for each
USE ENTITY SELECTION($sel_find)


**
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: New Mail Command 17r6

2020-04-03 Thread Keisuke Miyako via 4D_Tech
probably not related, but...shouldn't attachments be a collection?

https://doc.4d.com/4Dv18/4D/18/SMTP-transportersend.305-4505974.en.html

2020/04/03 20:32、UKVetDerm via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
$email.attachments:=MAIL New 
attachment($Fullpath;$Name;"";"application/pdf";"attachment")

**
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: New Mail Command 17r6

2020-04-03 Thread UKVetDerm via 4D_Tech
Thanks, that looks like a good reason to upgrade, but it was working! I will 
need to update hm_Cal before going on so not a quick process, but there are 
definitely a few other improvements worth having

Steve

On 03/04/2020, 14:16, "4D_Tech on behalf of John DeSoi via 4D_Tech" 
<4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote:

It looks like several attachment related bugs have been fixed after 17r6.

https://bugs.4d.fr/fixedbugslist?branch=18_R2

John DeSoi, Ph.D.


> On Apr 3, 2020, at 6:32 AM, UKVetDerm via 4D_Tech <4d_tech@lists.4d.com> 
wrote:
> 
> The following code has been working really well, much faster than the old 
IC methods, but from today the PDFs are arriving corrupted if sent from a MAC 
client, but not from a PC client. We have not used PC clients before, but 
because of bandwidth issues I have just set one up as a RDC client for one 
worker stuck at the end of a very long telephone line in the hills. Has using 
these commands on the PC inadvertently changed a default on the MAC. We use a 
MAC server and I am feeling bamboozled. The code is pretty vanilla from the 
reference. We use default encoding.

**
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: Image Export Issues

2020-04-03 Thread Cannon Smith via 4D_Tech
So sorry to hear about your wife, Robert. I can’t imagine how tough that is for 
you. 

--
Cannon Smith

> On Apr 2, 2020, at 10:56 PM, Robert McKeever via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> So, to all, thank you. I needed a success - my wife of almost 39 years passed 
> away from a long battle (10 years or more) with Vascular Dementia. My 
> soulmate.

**
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: New Mail Command 17r6

2020-04-03 Thread John DeSoi via 4D_Tech
It looks like several attachment related bugs have been fixed after 17r6.

https://bugs.4d.fr/fixedbugslist?branch=18_R2

John DeSoi, Ph.D.


> On Apr 3, 2020, at 6:32 AM, UKVetDerm via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> The following code has been working really well, much faster than the old IC 
> methods, but from today the PDFs are arriving corrupted if sent from a MAC 
> client, but not from a PC client. We have not used PC clients before, but 
> because of bandwidth issues I have just set one up as a RDC client for one 
> worker stuck at the end of a very long telephone line in the hills. Has using 
> these commands on the PC inadvertently changed a default on the MAC. We use a 
> MAC server and I am feeling bamboozled. The code is pretty vanilla from the 
> reference. We use default encoding.

**
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: Mac LAUNCH EXTERNAL PROCESS permissions issue

2020-04-03 Thread John DeSoi via 4D_Tech
Same error. Thanks for the idea.

John DeSoi, Ph.D.


> On Apr 2, 2020, at 11:55 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> just guessing, but what if you add /usr/bin/tmutil to full disk access?

**
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: Image Export Issues

2020-04-03 Thread Chip Scheide via 4D_Tech
to better mange the files you should (have)created a bunch of folders.
alphabetically, or every 1000 images, or whatever criteria make(ed) sense.

> OK. I applied this technique, along with WRITE PICTURE FILE. A single 
> pass for all images took about 3 hours (about 1/3 the time it took 
> before it would crash), and completely successful. I’m just waiting 
> on finder to display the list of 151,814 image files. It does take 
> awhile. 114.58Gb worth - previous versions of the extract using blobs 
> ended up well over 1,2Tb.
> 
> So, to all, thank you. I needed a success - my wife of almost 39 
> years passed away from a long battle (10 years or more) with Vascular 
> Dementia. My soulmate.
> 
>> On Apr 2, 2020, at 9:25 AM, Chuck Miller via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> Remember why was stated. Launch a process. Do something like this
>> $CurrentNumber_L:=start
>> repeat
>> 
>> Launch new process($CurrentNumber_L)
>> wait til  new process completes
>> $CurrentNumber_L:=$CurrentNumber_L+50
>> 
>> 
>> 
>> until (end)
>> 
>> The new process will export 50 pictures_
>> 
>> This method probably will clear memory issues when new process ends
>> 
>> Regards
>> 
>> 
>> Chuck
>> 
>> Chuck Miller Voice: (617) 739-0306
>> Informed Solutions, Inc. Fax: (617) 232-1064   
>> mailto:cjmillerinformed-solutions.com 
>> Brookline, MA 02446 USA Registered 4D Developer
>>   Providers of 4D and Sybase connectivity
>>  http://www.informed-solutions.com  
>> 
>> This message and any attached documents contain information which 
>> may be confidential, subject to privilege or exempt from disclosure 
>> under applicable law.  These materials are intended only for the use 
>> of the intended recipient. If you are not the intended recipient of 
>> this transmission, you are hereby notified that any distribution, 
>> disclosure, printing, copying, storage, modification or the taking 
>> of any action in reliance upon this transmission is strictly 
>> prohibited.  Delivery of this message to any person other than the 
>> intended recipient shall not compromise or waive such 
>> confidentiality, privilege or exemption from disclosure as to this 
>> communication. 
>> 
>>> On Apr 2, 2020, at 11:54 AM, Robert McKeever via 4D_Tech 
>>> <4d_tech@lists.4d.com> wrote:
>>> 
>>> So, I modified the code to use WRITE PICTURE FILE. Nice. Runs much 
>>> faster. It did quit late last night. And again this morning when I 
>>> was also reading email, this time with a system crash message - 
>>> unable to grow buffer.
>>> 
>>> Once I finish with email, and the web, I’ll restart the machine and 
>>> restart the export from where it left off. It is having its 
>>> problems when it goes to export a series of 40Mb retinal scans.
>> 
>> **
>> 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
>> **
> 
> _
> Bob McKeever  http://www.mswl.com 
> McKeever's Software Wizardry
> Port Coquitlam, B.C.
> bobmckee...@mac.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
> **

Hell is other people 
 Jean-Paul Sartre
**
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: Multiple instances of 4D Client

2020-04-03 Thread Ken Geiger Gmail via 4D_Tech
Hial,

 Thank you all!! I went with duplicating the 4D folder. 

 Be safe and healthy!!

Ken Geiger

Sent from my iPhone

> On Apr 3, 2020, at 3:01 AM, Paul Dennis via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Unfortunately the client local folder option no longer works with version
> 17R6 onwards there are some posts from me on the 4D forums about this.  
> 
> 4D client now automatically creates a folder within the users profile
> utilising the IP address and then ID.  
> 
> Is a real nuisance if you're doing web development on the client as very
> easy to get mixed up.
> 
> Paul
> 
> 
> 
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 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
**

New Mail Command 17r6

2020-04-03 Thread UKVetDerm via 4D_Tech
Hi 4D experts

The following code has been working really well, much faster than the old IC 
methods, but from today the PDFs are arriving corrupted if sent from a MAC 
client, but not from a PC client. We have not used PC clients before, but 
because of bandwidth issues I have just set one up as a RDC client for one 
worker stuck at the end of a very long telephone line in the hills. Has using 
these commands on the PC inadvertently changed a default on the MAC. We use a 
MAC server and I am feeling bamboozled. The code is pretty vanilla from the 
reference. We use default encoding.

Any suggestions most welcome

Thanks and hope you and yours are staying safe

Steve 
UK Vet Derm Ltd

$transporter:=SMTP New transporter($server)

C_COLLECTION($headers)  //add user-defined headers
$headers:=New collection
$headers.push(New object("name";"X-MAILER";"value";"UK 
Vet Derm Ltd"))
$headers.push(New 
object("name";"X-4D-VERSION";"value";"17R6"))

C_OBJECT($email)
$email:=New object
$email.subject:=$Subject
$email.to:=vToAddresses
$email.cc:=vCCAddresses
$email.bcc:=vBCCAddresses
$email.from:="email>"
$email.textBody:=$text
$email.attachments:=MAIL New 
attachment($Fullpath;$Name;"";"application/pdf";"attachment")
$email.headers:=$headers
$email.keywords:=New object("Veterinary 
report";True;"Urgent";True)

$status:=$transporter.send($email)
If (Not($status.success))
ALERT("An error occurred sending the mail: 
"+$status.statusText)
End if


**
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: Multiple instances of 4D Client

2020-04-03 Thread Paul Dennis via 4D_Tech
Unfortunately the client local folder option no longer works with version
17R6 onwards there are some posts from me on the 4D forums about this.  

4D client now automatically creates a folder within the users profile
utilising the IP address and then ID.  

Is a real nuisance if you're doing web development on the client as very
easy to get mixed up.

Paul



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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: entitySelection.add and USE ENTITY SELECTION

2020-04-03 Thread Keisuke Miyako via 4D_Tech
further information on ACI0100101

17.3 HF2
https://bugs.4d.fr/fixedbugslist?version=17.3_HF2

17.4
https://bugs.4d.fr/fixedbugslist?version=17.4

18 R2
https://bugs.4d.fr/fixedbugslist?branch=18_R2

the build quoted below is from the beta test, the fix was already made in ".0"

https://bugs.4d.fr/fixedbugslist?version=18

2020/04/03 15:23、Christian Sakowski via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
Problem normally fixed with the Version : 18 build : 243746

**
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: entitySelection.add and USE ENTITY SELECTION

2020-04-03 Thread Christian Sakowski via 4D_Tech
Hi,

i discovered this bug last year. It was registered under:

UID13 - ACI0100101: USE ENTITY SELECTION does not return the correct record in 
selection in C/S-mode if the entity has been added with the method 
'$selection.add'

Answer was:

Problem normally fixed with the Version : 18 build : 243746


Bug Number: ACI0100101

This bug is reproducible with the following 4 versions:

- DEV (243285)
- 18 (243340)
- 17 R6 (243126)
- 17.3 (243342)

ONLY IN CLIENT/SERVER MODE

When creating an entitySelection with newSelection(), USE ENTITY SELECTION does 
not work in C/S-mode. Example:

- Launch the database attached in Client/server mode
-Execute the methode 'P1'

C_OBJECT($selection)
$selection:=ds.T1.newSelection()
$selection.add(ds.T1.get(1))
USE ENTITY SELECTION($selection)

ALERT(String(Records in selection([T1])))

ACTUAL RESULT: 
--> Records in selection([T1]) return 0

EXPECTED RESULT: entitySelection should not change
--> Records in selection([T1]) should return 1

--

Grüße/Regards,
[heubach-media] | Christian Sakowski
christian.sakow...@heubach-media.de
Tel: +49/(0)40/41 455 455





> Am 03.04.2020 um 03:14 schrieb Matt Bollwitt via 4D_Tech 
> <4d_tech@lists.4d.com>:
> 
> Hello –
> 
> I’m running into a condition where USE ENTITY SELECTION is not working with 
> an entity selection that is built with entitySeletion.add() command. I’m 
> wondering if I’m using it correctly. I’m running 4Dv17r6. Here is a 
> simplified version of what I’m trying to do:
> 
> C_Object($sel;$sel_d;$sel_find)
> C_Date(vFindDate)
> vFindDate:=Date(ALERT("Enter date:"))
> $sel_d:=ds.People.query("Receive_Mail = :1";True)   //all records to 
> be compared
> $sel_find:=ds.People.newSelection()  //empty entity
> For each ($item;$sel_d)
>$sel:=ds.Entries.query("People_ID = :1 order by Entry_Date 
> desc";$item.LinkID)
>If ($sel.length#0)  //anything found?
>If ($sel[0].Entry_Date<=vFindDate)   
> //compare date of first entry
>$sel_find.add($item)
>End if
>End if
> End for each
> USE ENTITY SELECTION($sel_find)
> 
> I can trace this and see that the $sel_find is a selection of entities from 
> People. However, when I try to pull that entity selection back into a normal 
> selection it does nothing. The selection of records in the People table is 
> the same selection as it was before the method was ran.
> 
> Can you use the entitySelection.add command  to build the entity and then 
> later use the USE ENTITY SELECTION command? I had this working using classic 
> 4D commands and thought I’d convert it to ORDA. I’m wondering if I’m 
> understanding the .add command correctly or if something else needs to be 
> done with that object before I call the USE ENTITY SELECTION.
> 
> Thanks!
> 
> Matt Bollwitt
> 
> **
> 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
**