Re: DOCUMENT LIST : how do I know the documents are valid

2019-11-21 Thread Patrick Emanuel via 4D_Tech
Just an idea I set once on a project: check the size of the document. Until size is changing, consider that the copy/move is not finish and wait 1 second more. - Patrick EMANUEL Administrator www.association-qualisoft.eu (Soft1002

Re: DOCUMENT LIST : how do I know the documents are valid

2019-11-21 Thread Chip Scheide via 4D_Tech
try testing for a locked file. something like this: Repeat on err call ("If_File_Locked_Return_True") $Doc_Ref := Open document(New_Scan_Document_Path) on err call("") if (not(On_Err_call_File_Locked_Variable = true)) | ($Doc_Ref # † 00:00:00†) close document($Doc_Ref) File_Cop

Re: DOCUMENT LIST : how do I know the documents are valid

2019-11-21 Thread Narinder Chandi via 4D_Tech
t; on behalf of 4D Tech Mailing List <4d_tech@lists.4d.com> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> Date: Thursday, 21 November 2019 at 15:03 To: 4D Tech Mailing List <4d_tech@lists.4d.com> Cc: Piotr Chabot Stadhouders Subject: Re: DOCUMENT LIST : how do I know the documents

Re: DOCUMENT LIST : how do I know the documents are valid

2019-11-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Dear Alexander, Unfortunately, I believe the “locked” attribute doesn’t return true when copying is in progress But thanks for your tip. Gr, Piotr could this help? GET DOCUMENT PROPERTIES ( document ; locked ; invisible ; created on ; created at ; modified on ; modified at ) > Am 21.11.201

Re: DOCUMENT LIST : how do I know the documents are valid

2019-11-21 Thread Herr Alexander Heintz via 4D_Tech
could this help? GET DOCUMENT PROPERTIES ( document ; locked ; invisible ; created on ; created at ; modified on ; modified at ) > Am 21.11.2019 um 11:20 schrieb Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com>: > > Hi, > > We use DOCUMENT LIST and COPY DOCUMENT to handle scans

DOCUMENT LIST : how do I know the documents are valid

2019-11-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, We use DOCUMENT LIST and COPY DOCUMENT to handle scans The documents are copied by a scanner to a certain folder on a Windows server, where we are picking them up and process them It seems that because of slow copying the documents are picked up too early by us How can I ensure that the docu