Entry Field questions

2017-03-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I have 2 questions about entry fields : 1. Although I know the best answer on forehand (Use system behavior), is there an (easy) way to customize entry fields (fields and variables). For example rounded borders, yellow background when having focus instead of blue border? 2. What is

RE: Entry Field questions

2017-03-21 Thread Randy Engle via 4D_Tech
Piotr, I don't know if it's the "Easy" way, but I use On Getting/On Losing Focus to change backgrounds, etc during data entry. e.g. Pseudo Code Case of : (Form event=On Getting Focus) $foregroundColor:=00x00FF // Blue $backgroundColor:=00x0000` Yellow OBJECT SET RGB

RE: Entry Field questions

2017-03-21 Thread Dennis, Neil via 4D_Tech
> 2. What is the best way to prevent users to copy / paste values with crlf in > it? You can either put a filter method on the on data changed event to strip them out, or create an entry filter to remove them on input. I find both acceptable, but I lean more towards the a cleans method that I

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

2017-03-21 Thread Flury Olivier via 4D_Tech
Hi, Regarding check of method name as string, e.g. for New Process: you could check the name using METHOD GET NAMES. It's not perfect, but better than nothing. My recommendation regarding project method organization: prefix your method names (and form names) for each "module" with 3 or 4

Re: Re:Server Mirroring

2017-03-21 Thread Paul Dennis via 4D_Tech
I am interested in this. Are both servers on local network ? I am thinking of live server in cloud and backup mirror on premises. Paul -- View this message in context: http://4d.1045681.n5.nabble.com/Re-Server-Mirroring-tp5750849p5750852.html Sent from the 4D Tech mailing list archive at

Re: 4D V16 fails to launch external programs asynchronously

2017-03-21 Thread Keisuke Miyako via 4D_Tech
it (ACI0096092) is also fixed in 16.0 Hotfix 1 (16.0 Hotfix 2 is the latest) > 2017/03/22 5:16、Julio Carneiro via 4D_Tech <4d_tech@lists.4d.com> のメール: > Downloading V16R2 to confirm that it is fixed. ** 4D Internet Users Group

4D V16 fails to launch external programs asynchronously

2017-03-21 Thread Julio Carneiro via 4D_Tech
Running 4D v16, on Windows 10, and running a converted application. That 4D app relies on a bunch of external apps that are launched asynchronously, but I cannot get anyone of those to start! The following code fails (not exactly the app I need to launch, but just an illustration): > SET

Re: 4D V16 fails to launch external programs asynchronously

2017-03-21 Thread Julio Carneiro via 4D_Tech
Aha, I am not the only one. Checking V16R2 release notes there is a bug fix for that same issue: ACI0096092 'LAUNCH EXTERNAL PROCESS' doesn't work correctly if using the environment variable '4D_OPTION_BLOCKING_EXTERNAL_PROCESS'. Downloading V16R2 to confirm that it is fixed. On Tue, Mar 21, 2017

Re: Server Mirroring

2017-03-21 Thread G-Mail via 4D_Tech
Cannon: We used mirroring extensively last with version 12 (before I ‘retired’). We used it at many of our sites since mirroring was first available (can’t remember which version that was). Of course now we are on v16 so things will likely have changed. We will be implementing mirroring with

Re: Journaling Not Working

2017-03-21 Thread Cannon Smith via 4D_Tech
Um, never mind. I think the Finder isn’t updating the file size in the UI as often as I thought it would. I’ll do some more testing, but I think it is working correctly. Sorry for the noise. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Server Mirroring

2017-03-21 Thread Cannon Smith via 4D_Tech
Hi Paul, I’m just working out how to do this theoretically at the moment. But, no, they won’t be on the same local network. I want them geographically diverse. And I think I want an additional place (FTP site) that is away from both of them to keep a copy of each log file in case the mirror

4D freezing on print preview

2017-03-21 Thread Keith Goebel via 4D_Tech
Hi all. We are using 4D v15.2 on Win7, Win10, Win Server 2012 (or similar). All good. We have just tested 4D v15.4 and v15.4 HF1 and found both to freeze whenever we print preview a report. All seems to work fine until about the point where 4D would hand off control to XPS Viewer, and then 4D

Journaling Not Working

2017-03-21 Thread Cannon Smith via 4D_Tech
I have a structure where I just realized that every table was set to NOT be included in the journal file. Oops! So I selected all tables and checked the “Include in Log File” option in the structure Inspector. So far so good. Next I created some records and expected them to show up in the

Re: Server Mirroring

2017-03-21 Thread Cannon Smith via 4D_Tech
Hi Jody, Good to hear from you! It doesn’t sound like you are very retired. :-) Thanks for sharing your experiences. I know mirroring changed significantly in v14, but I’ll definitely be working directly on the server’s drives and then transporting them after the writing is done. Thanks. --

Re: Using a worker as an alternative to recursion

2017-03-21 Thread Chip Scheide via 4D_Tech
I believe - I am not in a version where workers are available - that workers have to be 'thread safe'. As such, you can use a worker to do parallel processing. Given that I am correct about being 'thread safe' the following works. I think that by combining the 2 ideas you have outlined here

RE: Journaling Not Working

2017-03-21 Thread Timothy Penner via 4D_Tech
As far as I know Finder has always been bad about updating the file properties of a file being active changed. The suggestion on Apple's site has been to relaunch finder: https://discussions.apple.com/thread/3466184?start=0=0 I used to have an applescript in my finder toolbar to refresh the

RE: Keeping method calls 'private' in a worker

2017-03-21 Thread Timothy Penner via 4D_Tech
I am not sure if checking the Process Name to detect if it is a worker or not is the best approach. I mean, both a process and a worker could be named the same thing you may be better off using PROCESS PROPERTIES and checking the process type for "worker process":

Re: Keeping method calls 'private' in a worker

2017-03-21 Thread David Adams via 4D_Tech
Hey, great suggestion! I'd been wondering what to do about the obvious weak spot that you've pointed out. I might use both attributes but, for sure, your technique makes the approach a whole lot more reliable. Thanks! ** 4D