Re: Drag & drop a file - what am I missing?

2019-06-21 Thread Jeremy French via 4D_Tech
Hi Pat, Take a look at the documentation for "Get file from pasteboard” at: https://doc.4d.com/4Dv17/4D/17.2/Get-file-from-pasteboard.301-4387094.en.html Put the following in the object method of a text variable and

Re: Drag & drop a file - what am I missing?

2019-06-21 Thread Chip Scheide via 4D_Tech
Pat, not using v17 - but yes. I have never tried picture dropping, but I was unable to get Drag N drop to function to a field. I work around this (and it makes the target easier for the user) by using an invisible button which covers a section of the screen so that the user can drag n drop

Drag & drop a file - what am I missing?

2019-06-21 Thread Pat Bensky via 4D_Tech
Using v17 - Until now I've implemented drag & drop between objects, for example list boxes. No problem. But now I want to allow the user to drop a file onto a field and save the file's pathname in the field. I cannot get this to work and indeed the docs imply that this should only work with

Re: [Tip]Set Query Destination

2019-06-21 Thread JOHN BAUGHMAN via 4D_Tech
I use a macro whenever I call SET QUERY DESTINATION… SET QUERY DESTINATION(;) SET QUERY DESTINATION(Into current selection) So if I write… Query([Patient];[Patient]Dentist_Name="John Baughman") Then realize I need to a query destination other than the current selection I highlight the

Re: 'Clairvoyance' in listBox (v17r5)

2019-06-21 Thread John DeSoi via 4D_Tech
This was just discussed and requested on the Forums. Some examples were posted on how it can be done. http://forums.4d.com/Post/EN/30170877/1/30278226 Vote for the feature request here http://forums.4d.com/Post/EN/15446498/1/30188166 John DeSoi, Ph.D. > On Jun 21, 2019, at 12:00 PM, Chris

'Clairvoyance' in listBox (v17r5)

2019-06-21 Thread Chris Belanger via 4D_Tech
I would to: • click a listbox (to ‘focus’ on it) • type - and have it automatically search in the list and highlight the closest match. Of course, this is common in ’traditional’ apps. For many years, I have jury-rigged this by using a ‘quick scroll’ var on a form. The user clicks into this

WP EXPORT VARIABLE does not work Windows Server.

2019-06-21 Thread Luc Devar via 4D_Tech
4D Server V15.5 I am sending email created in a 4D writes zone that contains images and text. wpArea:=WP New([EMAIL_TEMPLATE]TEMPLATE_) ST SET OPTIONS(wpArea;ST Expressions display mode;ST Values) WP EXPORT VARIABLE(wpArea;$str;wk mime html) This worked fine on my Mac ( OSX.13.6), but fail on

Re: [Tip]Set Query Destination

2019-06-21 Thread Charles Miller via 4D_Tech
Also I would bet crash wa due to undefined variable and not set query destination. Regards Chuck On Fri, Jun 21, 2019 at 10:38 AM Douglas von Roeder via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Chip: > > When Set query limit and Set query destination came out, I ran into the > situation where

Re: [Tip]Set Query Destination

2019-06-21 Thread Jody Bevan via 4D_Tech
Doug: Good practice. I always have the set and reset code within the same method. Then when we run our QA method, if one is missing it records the error, and places the method with the error description in our listbox to fix. Good structured coding practices, also makes it much easier to write

Re: [Tip]Set Query Destination

2019-06-21 Thread Douglas von Roeder via 4D_Tech
Chip: When Set query limit and Set query destination came out, I ran into the situation where queries “stopped working” because I had forgotten to add the code to reset them. To avoid that, I made it a practice to type the “reset” code *before* I type the code to change the destination or limit

[Tip]Set Query Destination

2019-06-21 Thread Chip Scheide via 4D_Tech
[Tl;DR] at end This command is your friend - and - your foe! :) Yesterday I spent a significant amount of time trying to track down a compiled/built app crash, but did/does not happen interpretedly. The crash happened only occasionally, after placing alerts and asserts, I determined that the

Re: Username/password dialog timeout in v17

2019-06-21 Thread Jeremy French via 4D_Tech
Perhaps in "Database Settings -> Client-server -> Client-Server Connections Timeout”. > On Jun 20, 2019, at 9:14 PM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > if the timeout that 4D Server will allow 4D Remote to stay at the > username/password dialog can be adjusted?

RE: Dot Notation in Legacy 4D Code

2019-06-21 Thread Epperlein, Lutz (agendo) via 4D_Tech
If you deal with variables you can use "Rename..." in the context menu of the method editor too. Regards Lutz ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: