Re: CALL FORM: Some notes on a command that's easy to misunderstand

2017-03-17 Thread Justin Carr via 4D_Tech
OK, so it's Friday afternoon and I've got a few moments while I sup on a cold bevvy. David & I kind of got the fervour about CALL FORM/WORKER at the same time and this is one of the things about them that really captured our imagination. We are using CALL FORM and CALL WORKER to automate unit

Re: Set_Exists() function: Simple version

2017-07-17 Thread Justin Carr via 4D_Tech
On 17 Jul 2017, at 5:03 pm, Robert Livingston <rlivings...@me.com> wrote: > > >> On Jul 16, 2017, at 9:09 PM, Justin Carr via 4D_Tech <4d_tech@lists.4d.com >> <mailto:4d_tech@lists.4d.com>> wrote: >> >> Are you able to provide a link to where t

Re: Set_Exists() function: Simple version

2017-07-16 Thread Justin Carr via 4D_Tech
On 17 Jul 2017, at 5:07 am, Robert Livingston via 4D_Tech <4d_tech@lists.4d.com> wrote: > > On Jul 14, 2017, at 5:10 PM, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: >> >> I was just consolidating some old code and ran across something that I >> wrote some time back called

Re: Array Range Check Issue

2017-07-02 Thread Justin Carr via 4D_Tech
On 1 Jul 2017, at 12:12 am, Stephen J. Orth via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I am getting an array range check error on the following line: > > If (Size of array(as_function)>=1) > > This is a compiled application, so how does this type of error even exist > for this line? >

Re: How do you force resources to download these days?

2017-06-04 Thread Justin Carr via 4D_Tech
On 5 Jun 2017, at 9:50 am, David Adams via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Grrr. Didn't figure out how to find this in the docs. There used to be a > tickbox. Could be but I don't think I ever used it. We just run a method with the EOS bit checked which contains the NOTIFY RESOURCES

Re: How do you force resources to download these days?

2017-06-04 Thread Justin Carr via 4D_Tech
On 5 Jun 2017, at 12:32 pm, David Adams via 4D_Tech <4d_tech@lists.4d.com> wrote: > > On Mon, Jun 5, 2017 at 10:22 AM, Justin Carr via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> NOTIFY RESOURCES FOLDER MODIFICATION > > Thanks J. Hmmm. Added in V1

Re: Programmatically scroll a web area

2017-06-11 Thread Justin Carr via 4D_Tech
We do this all the time and don't see this issue. Mind you we never deployed with v15. What works for us with at least v12-14 and v16R2 is to use an internal webarea and open a blank URL first before opening the path to the PDF, i.e. WA OPEN URL(*;"webarea_name";"about:blank") WA OPEN

Re: Automatic type-ahead on single-column listbox?

2017-06-27 Thread Justin Carr via 4D_Tech
On 28 Jun 2017, at 12:01 pm, David Adams via 4D_Tech <4d_tech@lists.4d.com> wrote: > > On Wed, Jun 28, 2017 at 11:54 AM, Wayne Stewart via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> Hi, >> >> I did it with help from Dave Batton (so you can imagine how fresh this >> solution is)! >> >> The

Re: TEXT TO DOCUMENT With Special Characters

2017-08-30 Thread Justin Carr via 4D_Tech
On 31 Aug 2017, at 8:53 am, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I’m having trouble with saving Unicode characters to a file. For example, the > following code saves a file to disk: > > C_TEXT($tText;$tFilepath) > > $tText:=“©” //Copyright symbol > $tFilepath:=System

Re: 4D Write PRO how to ...

2017-08-21 Thread Justin Carr via 4D_Tech
On 21 Aug 2017, at 9:55 pm, Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Using the old 4D Write, I loop through all the frames (frames 1-> 7), using > ‘WR SET FRAME’ . Then I resolve the expressions. > This way, all the references in the headers, text frames and footers

Re: 4D Debug Log Reader - Plugin Commands

2017-11-29 Thread Justin Carr via 4D_Tech
On 30 Nov 2017, at 10:41 am, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> wrote: > > to clarify: > > - command number > > the command number explained in this example corresponds to the right side of > e.g. "3;1" > and it can be derived from manifest.json inside the plugin bundle (v14

Re: 4D Debug Log Reader - Plugin Commands

2017-11-30 Thread Justin Carr via 4D_Tech
On 1 Dec 2017, at 11:28 am, Allan Udy via 4D_Tech <4d_tech@lists.4d.com> wrote: > >> Justin previously determined that this is the case, and in his Log Parsing >> database that we're using, the plugin command ID's are assumed to start with >> 3;YYY. > > Through a bit of trial and error I can

Re: New Log Parser says : this doesnt make sense

2017-12-01 Thread Justin Carr via 4D_Tech
On 1 Dec 2017, at 5:44 pm, Piotr Chabot Stadhouders via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi, > > I am trying to use the new Log Parser, but without success > > First of all, when I start logging I have 10 files of 10MB each within 1 > minute, but that's not the problem (or is it) >

Re: LEP - and Batch files

2017-11-08 Thread Justin Carr via 4D_Tech
On 9 Nov 2017, at 4:44 am, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I have tried all of the offered suggestions: > Start ?b > running without a call to cmd > \batchfilename\ > extended this to cover the file paths in the batch file > > none of these result in file copying

Re: Symlinks in Windows

2017-11-08 Thread Justin Carr via 4D_Tech
On 9 Nov 2017, at 10:19 am, Lee Hinde via 4D_Tech <4d_tech@lists.4d.com> wrote: > > On a Mac, when I want apache to front my 4D web server, I create a symlink > in the Apache document directory to my web folder in the database directory. > > That way, I only have to install and maintain the web

Re: procedurally delete anchored image in 4D Write Pro

2018-05-23 Thread Justin Carr via 4D_Tech
On 24 May 2018, at 10:01 am, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I think you need to first change the layout to inline (by UI or code), in > order to delete an image. > > but the attribute "wk anchor layout" is not settable with WP SET ATTRIBUTES >

Re: procedurally delete anchored image in 4D Write Pro

2018-05-23 Thread Justin Carr via 4D_Tech
> On 18 May 2018, at 11:21 pm, Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > How can I procedurally delete an anchored image in a 4D Write Pro document? > > I know how to select the image with > WP SELECT(*;"WParea";$image_object) > > But then what? Try: INVOKE

Re: Build with code signing

2018-06-11 Thread Justin Carr via 4D_Tech
Building on Cannon's code, rather than calling codesign directly with the --deep flag we use the shell script that is distributed in the 4D app bundle, which takes care of the signing of all of the subcomponents for you. You still need to remove the extended attributes first (with xattr -cr) as

Re: Delay process bug

2018-06-18 Thread Justin Carr via 4D_Tech
On 19 Jun 2018, at 1:32 am, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I bet the bug is actually someplace else and is manifesting in this DELAY > PROCESS bit. Which doesn't help you find it at the moment, though. Is the > method running this process one of those big, complicated,

Re: Delay process bug

2018-06-17 Thread Justin Carr via 4D_Tech
On 16 Jun 2018, at 12:20 am, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I have never had an issue with DELAY PROCESS. Maybe I'm lucky. I don't > think I've ever used it to delay something more than a matter of seconds, > though. It would never have occurred to me to DELAY PROCESS

Re: Write Pro: programmatically manipulate text expertise needed

2018-06-17 Thread Justin Carr via 4D_Tech
On 15 Jun 2018, at 10:01 pm, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi Piotr, > I think you can use WP SELECT to do this - > WP SELECT ( {* ;} wpArea {; targetObj} | {; startRange ; endRange} ) > > Let me know if you can't get that to work and I'll take a closer look at it. >

Re: Delay process bug

2018-06-17 Thread Justin Carr via 4D_Tech
On 18 Jun 2018, at 1:31 pm, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> wrote: > > according to the bug description for ACI0098368 ("Delayed processes do not > wake up if paused/resumed while already delayed"), > > it's not that the DELAY P. has a problem resuming, > the problem

Re: Delay process bug

2018-06-18 Thread Justin Carr via 4D_Tech
On 18 Jun 2018, at 4:39 pm, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Justin, > I do use DELAY PROCESS but as I said it's only for a minute or two. > And like I said maybe I've simply been lucky. As my business mentor used to > say, "sometimes it's better to be lucky than smart."

Re: 4D Write, pictures in page, frozen document, to 4D Write Pro

2018-06-24 Thread Justin Carr via 4D_Tech
Just a a guess John, but is it possible the pictures that don't convert were inserted in PICT format? Maybe you could select one of the letters with troublesome images and convert one of those images in place to PNG (using CONVERT PICTURE). Then try opening that letter again in 4D Write Pro.

Re: Write Pro: programmatically manipulate text expertise needed

2018-06-21 Thread Justin Carr via 4D_Tech
On 21 Jun 2018, at 4:49 pm, Piotr Chabot Stadhouders via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi Justin, Pat, > > Using WP SELECT that is called in a method via CALL FORM seems to work, > thanks for that! > > I must say, I can't believe it's 4D's intention that we constantly have to >

Re: v17.0 HF1 Bug Fix delayed process not waking fix

2018-08-13 Thread Justin Carr via 4D_Tech
On 14 Aug 2018, at 2:18 am, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Got an email about v17.0 HF1 being released. This fixed bug caught my eye: > > > ACI0098368 A delayed processes do not wake up if paused and then resumed: > it stays in pause mode. > > Could this be a fix

Re: New record numbering system and CALL WORKER

2018-08-27 Thread Justin Carr via 4D_Tech
On 28 Aug 2018, at 11:52 am, Chuck Miller via 4D_Tech <4d_tech@lists.4d.com> wrote: > > It does, but remember if you already have multiple transactions, you will > have to keep track and may have to suspend that many times I don't think that is true. When you SUSPEND TRANSACTION, the effective

Re: New record numbering system and CALL WORKER

2018-08-27 Thread Justin Carr via 4D_Tech
On 28 Aug 2018, at 6:08 am, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hey guys - the very issue with the record counter is sketched out in the > discussion about Suspending Transactions: > > http://doc.4d.com/4Dv16/4D/16.3/Suspending-transactions.300-3652126.en.html > > > I

Re: Find and Replace Component for 4D Write Pro

2018-03-07 Thread Justin Carr via 4D_Tech
On 8 Mar 2018, at 1:46 am, Jeff Grann via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I had the need to add find and replace to my 4D Write Pro areas. So I created > a generic component. It easily shows and hides itself at the top of a Write > Pro area and can resize itself automatically. You can

Re: 4D 15R5 Feedback

2018-02-27 Thread Justin Carr via 4D_Tech
om> wrote: > > Justin, > > Was it the volume of SOAP calls or the frequency that caused the crashes? > > We are clocking around 400 per minute at peak times. > > > > On Wed, Feb 28, 2018 at 9:39 AM, Justin Carr via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >

Re: 4Dv15 applications as a Service in Windows Server 2012

2018-09-13 Thread Justin Carr via 4D_Tech
On 13 Sep 2018, at 5:14 pm, Ronnie Teo via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi David, > > Thanks for your tip. > I have conducted the test as per your suggestion and from the results of the > test, it does not appear to be a firewall problem. > > a) 4Dv15.5 (32-bit) - server app

Re: Write Hex Bytes

2019-02-21 Thread Justin Carr via 4D_Tech
On 22 Feb 2019, at 10:30 am, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> wrote: > > it sounds like you are over-thinking :) > > you could just do > > SET BLOB SIZE($bytes;4) > > $bytes{0}:=78 > $bytes{1}:=48 > $bytes{2}:=75 > $bytes{3}:=00 > > then BLOB TO DOCUMENT. > > not need to go

Re: Set Time question

2019-02-14 Thread Justin Carr via 4D_Tech
On 14 Feb 2019, at 10:18 pm, Arnaud de Montard via 4D_Tech <4d_tech@lists.4d.com> wrote: > > >> Le 10 févr. 2019 à 18:41, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> a >> écrit : >> >> Just to add a little more to this. > > Me too, forgot to mention CALL FORM: has a message queue, can

Re: Fast way to highlight a listbox entity selection

2019-04-15 Thread Justin Carr via 4D_Tech
On 16 Apr 2019, at 5:04 am, Keith Culotta via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hello, > > I'm looking for a fast way to highlight a selection of rows in an entity > selection listbox. The way I am aware of works OK unless the listbox gets a > large number of rows. > > Adding

[ANN] 4D Developer Position Available

2019-04-16 Thread Justin Carr via 4D_Tech
Hey Everyone Ever dreamed of living and working in Australia? Better yet, in Australia's sunshine capital Brisbane? If so, this may be the oppourtunity you've been waiting for! We are looking for an experienced and passionate 4D developer to join our great team here in a full time permanent

Re: Form and DIALOG

2019-04-29 Thread Justin Carr via 4D_Tech
Jeremy, That's definitely one of the supported/encouraged behaviours as far as I am aware. cheers J > On 29 Apr 2019, at 6:05 pm, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Is it safe to use the object returned by the Form command as a means of > passing data back to the

Re: Custom Form Events

2019-04-23 Thread Justin Carr via 4D_Tech
Hi Chris We use SET TIMER(-1) a lot for this purpose. It is ideal when you want to do something as part of On Load but you need the On Load execution cycle to finish first before you do the next thing, e.g. you need to know the size and position of an object on a form before you take some