Re: Server Process "Frozen"-ish

2017-09-14 Thread Cannon Smith via 4D_Tech
Hmm, v16.2 eh? There goes our hope that it was fixed in that version. Is anyone having this happen regularly enough that they can turn on some logging to see, for example, what the last command that ran was? -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On

Re: 4D v16.2 false record locks

2017-09-18 Thread Cannon Smith via 4D_Tech
Hi Jeff, Funny you should mention this. Just this morning I was thinking about the frozen process issue some of us have been experiencing and wondering if it could be a call to “Locked” that isn’t returning—just hanging. Does what you are seeing with record locks happen to line up with this pos

Re: 4D v16.2 false record locks

2017-09-18 Thread Cannon Smith via 4D_Tech
Good to know. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Sep 18, 2017, at 9:14 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Not in our case. The stored procedure that stopped running the other day > doesn't access or lock

Re: Form with Custom Grow Box

2017-09-19 Thread Cannon Smith via 4D_Tech
Here is a way for doing that: 1. Create a picture that looks like a window grabber and place it in the bottom right of the form. Put an invisible button over top of it. 2. In the invisible button, capture On Mouse Move and use "SET CURSOR(9005)” to change the mouse cursor to a resize icon. 3.

METHOD OPEN PATH Equivalent For Forms

2017-09-21 Thread Cannon Smith via 4D_Tech
It can be helpful to programmatically open a method editor window for a method using METHOD OPEN PATH. I’d like to do the same thing with forms. Is there a way to programmatically open a form in a form editing window? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 40

Re: METHOD OPEN PATH Equivalent For Forms

2017-09-21 Thread Cannon Smith via 4D_Tech
Ah yes, essentially what I’m trying to do. Thanks anyway. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Sep 21, 2017, at 1:52 PM, Douglas von Roeder via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Not that I've been able to figure out. > > I use MOP i

Re: 4D v16 issues

2017-09-22 Thread Cannon Smith via 4D_Tech
Hi Tim, If we encounter a server with a process that has “hung”, can we install ProcDump at that moment and get a capture? Or does ProcDump need to be installed and running before the server is launched? -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Se

Re: Listbox Column Font Color Change

2017-09-23 Thread Cannon Smith via 4D_Tech
Does this work for you? $lDesiredFontColor:=0x00CC //Or whatever grey you are after OBJECT GET RGB COLORS(*;Widget;$lForeground;$lBackground;$lAltBackground) OBJECT SET RGB COLORS(*;Widget;$lDesiredFontColor;$lBackground;$lAltBackground) Then you don’t have to guess what the background schem

Re: 4D v16 issues

2017-09-28 Thread Cannon Smith via 4D_Tech
Hi Tim, [Not sure if you missed this last week so I thought I’d ask again.] If we encounter a server with a process that has “hung”, can we install ProcDump at that moment and get a capture? Or does ProcDump need to be installed and running before the server is launched? -- Cannon.Smith Synerg

OBJ Module and 4D v16R4

2017-10-04 Thread Cannon Smith via 4D_Tech
If you are trying to use the OBJ module in 4D v16R4, you will encounter errors. The errors have to do with not recognizing the new collection type. The fix is easy, requiring two lines to be changed: In the OBJ_IsEqual method, line 47 should now be: : (($alFirstType{$x}=Object array) |

Print From Web Area

2017-10-11 Thread Cannon Smith via 4D_Tech
Hi All, If I generate a report in HTML and show it in a web area on a form, is there a way I can request that it be printed in exactly the same way as if it was in Safari or Firefox and printed from there? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Communicating With BLE Devices

2017-10-11 Thread Cannon Smith via 4D_Tech
Is anyone aware of a way to communicate with a Bluetooth Low Energy device from 4D? It needs to work on both platforms. Perhaps a plugin that I’m not aware of? (Note that BLE devices communicate in a completely different way than classic Bluetooth devices.) Thanks for any pointers. -- Cannon.S

Re: Print From Web Area

2017-10-12 Thread Cannon Smith via 4D_Tech
Hi Kirk, What command would I use to invoke the printing in the first place? -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 11, 2017, at 5:11 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > If the web area isn't using the WebKit it's

Re: Print From Web Area

2017-10-13 Thread Cannon Smith via 4D_Tech
Hi Ortwin, No, I haven’t tried that, but I’ll give it a shot. Thanks! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 12, 2017, at 11:06 AM, Ortwin Zillgen via 4D_Tech > <4d_tech@lists.4d.com> wrote: > >> What command would I use to invoke the print

Re: Print From Web Area

2017-10-13 Thread Cannon Smith via 4D_Tech
Hi Kirk, I didn’t realize printing was an option from there. Thanks! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 12, 2017, at 3:48 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I would enable the context menu and let the user in

Re: Communicating With BLE Devices

2017-10-13 Thread Cannon Smith via 4D_Tech
Hi Miyako, The specific device we are currently connecting to is a prototype RFID reader for cattle. We have it working correctly on iOS using CoreBluetooth. Basically, when we want to connect we create a central manager which looks for a certain peripheral name. The peripheral only has one ser

Re: Server Process "Frozen"-ish

2017-10-18 Thread Cannon Smith via 4D_Tech
Just an update on this issue. Last week I was able to release a new version of our software to all of our customers and I included some extra logging for this issue. Yesterday we had a customer report the problem. Here’s what I found. First, a bit about the process that I’ve seen freeze the most

Re: Server Process "Frozen"-ish

2017-10-18 Thread Cannon Smith via 4D_Tech
I _could_ try that. But my turn around time to send a new build to customers is measured in months. And if I only try this with one customer’s server, it may not happen for weeks. How would I know if it solved it? The trouble with this particular bug is that it has been very hard to reproduce.

Re: Server Process "Frozen"-ish

2017-10-19 Thread Cannon Smith via 4D_Tech
Thanks Jeff and Bernd. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 19, 2017, at 12:24 AM, Bernd Fröhlich via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Almost exactly the same setup over here.

Re: Server Process "Frozen"-ish

2017-10-25 Thread Cannon Smith via 4D_Tech
Hi David, Good to have more information—thanks! I’m curious, do you know what the machine up time was when it stalled? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 25, 2017, at 7:57 AM, BTB-David via 4D_Tech <4d_tech@lists.4d.com> > wrote

Re: Server Process "Frozen"-ish

2017-10-25 Thread Cannon Smith via 4D_Tech
Hi Keith, Yes, that’s why I was curious about the machine up time. It would be curious if it was close to 24.86 days, for example. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 25, 2017, at 8:34 AM, Keith White via 4D_Tech <4d_tech@lists.4d.com> >

Re: Server Process "Frozen"-ish

2017-10-27 Thread Cannon Smith via 4D_Tech
We had another server do this this morning. It had stopped on DELAY PROCESS again, so I tried the RESUME PROCESS idea. It did get the process going again. However, some of the Administration Window UI was not updating properly. After the process resumed, the UI still didn’t update properly so we

Re: Server Process "Frozen"-ish

2017-10-27 Thread Cannon Smith via 4D_Tech
For those that have experiences this issue, has anyone experienced it on a server that wasn’t a “built” server? All mine are built servers. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 ** 4D

Re: Server Process "Frozen"-ish

2017-10-27 Thread Cannon Smith via 4D_Tech
Thanks, Jeff. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 27, 2017, at 1:02 PM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Ours are normal, non-built servers. *

Re: [Warning] Settings properties values on object field by object notation

2017-10-31 Thread Cannon Smith via 4D_Tech
This bug was first discovered in July of 2016. See the NUG thread "Does 4D Support Dotted Notation in Object Fields?” if you are interested in how it was discovered (thanks to Douglas Von Roeder). ACI0095526. Even though I filed the bug report, I can think of at least twice since then that I’ve

Re: Counting occurrences of specific characters In a document

2017-11-08 Thread Cannon Smith via 4D_Tech
If the only reason you need to know the number of rows beforehand is to help in showing a progress indicator, you could use the file size and current parse position instead -- Cannon Smith > On Nov 8, 2017, at 6:42 PM, rooftop99--- via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > We are wo

Re: subforms and object focus

2017-11-15 Thread Cannon Smith via 4D_Tech
Hi Randy, You have to call the GOTO OBJECT in the next execution cycle of the form. One way to do this is call SET TIMER(-1) and then run the GOTO OBJECT in the On Timer event. HTH. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Nov 15, 2017, at 10:34

Re: subforms and object focus

2017-11-15 Thread Cannon Smith via 4D_Tech
OD IN SUBFORM(“SubformName";"MyGotoMethod”) I use this all the time and it works well. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Nov 15, 2017, at 10:52 AM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > You

Sending Email To FastMail

2017-12-06 Thread Cannon Smith via 4D_Tech
Is anyone using 4D to send email through a FastMail account? I just switched an email address to FastMail and think I have things set up in 4D to send to it through the smtp server, but it isn’t working. Using WireShark I can see it connects to the server on the TCP level, but that’s about all t

Re: Sending Email To FastMail

2017-12-07 Thread Cannon Smith via 4D_Tech
support case, but am wondering if anyone else has noticed this or figured out any workarounds. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 6, 2017, at 4:17 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Re: Sending Email To FastMail

2017-12-07 Thread Cannon Smith via 4D_Tech
Wow, I didn’t know that parameter existed! That does indeed solve the issue. Thanks, Tim! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 7, 2017, at 11:52 AM, Timothy Penner wrote: > > What are you issuing as the second parameter to SMTP_SEND? > If

HTTP Get and HTTP Request Blocking Server?

2017-12-14 Thread Cannon Smith via 4D_Tech
Hi All, I’m using 4D Server with the web server on. I want to have a stored procedure on it occasionally use HTTP Get or HTTP Request to fetch some information from a web service. The amount of data sent and received is very small (less than 1 KB), but the web service usually takes 2-3 seconds

Re: HTTP Get and HTTP Request Blocking Server?

2017-12-15 Thread Cannon Smith via 4D_Tech
Hi Miyako, Hmm, sounds like I should be able to make something work, then. Worth trying. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 14, 2017, at 5:45 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I have only started

Re: HTTP Get and HTTP Request Blocking Server?

2017-12-15 Thread Cannon Smith via 4D_Tech
Thanks, Arnaud. I was hoping to find someone that could say “Hey, we do that now and it isn’t a problem” to give me some confidence going forward. But you’re right, there are other possibilities if it doesn’t work. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: HTTP Get and HTTP Request Blocking Server?

2017-12-15 Thread Cannon Smith via 4D_Tech
Hi John Thanks for the confirmation. I appreciate it! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 15, 2017, at 9:40 AM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > The 4D HTTP commands are non-blocking. I claim this because I use t

SFTP and Internet Commands

2017-12-19 Thread Cannon Smith via 4D_Tech
Does anyone know of a way to use Internet Commands to login to an FTP site using SFTP? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 ** 4D Internet Users Group (4D iNUG) FAQ: http:/

Re: SFTP and Internet Commands

2017-12-19 Thread Cannon Smith via 4D_Tech
Thanks, everyone who responded about this. I didn’t realize there was a difference between FTP and SFTP other than the SSL part of things. I need it to work on both platforms, so I think I’ll start with Miyako’s plugin and see how that works. Thanks for the help! And Merry Christmas to everyone

Re: SFTP and Internet Commands

2017-12-19 Thread Cannon Smith via 4D_Tech
The more I look into this, the more I realize it isn’t even SFTP that I want. What I’m really trying to do is upload a file using FTPS. Apparently the placement of the “S” is kind of a big deal. So let me start the question again. Is there a way to use Internet Commands to send a file to an FTP

Re: SFTP and Internet Commands

2017-12-19 Thread Cannon Smith via 4D_Tech
Hi Miyako, Thanks for that. I was a bit confused when reading the documentation of your plugin. Although I had SFTP on my mind at the time. So it does handle FTPS, then? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 19, 2017, at 7:09 PM, K

Re: SFTP and Internet Commands

2017-12-19 Thread Cannon Smith via 4D_Tech
Thanks, Miyako. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 19, 2017, at 7:47 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > in fact, because the backend library is curl and it accepts a URL not a host > name, > you can pass h

Re: SFTP and Internet Commands

2017-12-20 Thread Cannon Smith via 4D_Tech
Hi Miyako, I’m really struggling to get the right syntax to upload a file with your plugin. I can get it to work fine on the command line: curl --ftp-ssl -T "/Users/Cannon/Desktop/test.zip" -u “install:redacted" "ftp://install.herdly.cloud/install/"; --connect-timeout 5 But can’t figure out th

Re: SFTP and Internet Commands

2017-12-20 Thread Cannon Smith via 4D_Tech
I did try to figure it out from the sample DB, but I guess I wasn’t smart enough. I’ve tried your example in the email alone, with SSL_VERIFYHOST set to 0, with SSL_VERIFYPEER set to 0, with both set to 0. I’ve also tried using the CAINFO option with the very you have in the Resources folder. So

Re: SFTP and Internet Commands

2017-12-21 Thread Cannon Smith via 4D_Tech
I’d like to thank Miyako for his help on this issue. It turned out that the plugin needed to be updated (twice!) to handle the type of FTP I was using and he did it all very quickly. If anyone else needs this, there is a version 1.2 of the plugin available now.

Re: DELAY PROCESS bug

2018-01-05 Thread Cannon Smith via 4D_Tech
Hi Drew, I wonder if this might be related to the Server Process Frozen issue lots of us have been experiencing. It sounds like the result is pretty much the same. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jan 5, 2018, at 11:24 AM, Drew Waddell via

Re: DELAY PROCESS bug

2018-01-05 Thread Cannon Smith via 4D_Tech
> That's not really a solution though, we'd have to write like a process > watching that would have to make a call that process needed to be revived. And then another process to watch the watch dog process in case it stops. And then another one to watch the one watching the watch dog. Etc. :-)

Re: BRING TO FRONT for process windows minimized

2018-01-10 Thread Cannon Smith via 4D_Tech
Hi John, This has been reported as ACI0096836. It isn’t fixed in v16.2, but I don’t know beyond that. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jan 10, 2018, at 8:18 AM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Not sure if this i

Re: Stored procedures not waking up?

2018-02-05 Thread Cannon Smith via 4D_Tech
Some tech support cases exist for this. As far as I know no bug has been filed, probably because no one, including tech support, has been able to reproduce it on demand. Very frustrating bug. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Feb 5, 2018, at

Detecting 64-bit OS

2018-04-23 Thread Cannon Smith via 4D_Tech
I’ve been using the following code to detect whether I’m running on a 64-bit Windows OS for some time now. I think the code came from a tech tip. Anyway, I just had a computer reported today where this code said the computer was 64-bit, but it was actually only 32-bit. LAUNCH EXTERNAL

Re: Detecting 64-bit OS

2018-04-23 Thread Cannon Smith via 4D_Tech
Thanks Julio, Jeff, and John. It was definitely an English computer with regular settings. From your answers, I gather that the way I was doing it was rather brittle. Registry settings sound like the best way to go forward (until v17, anyway). Thanks for your replies. I appreciate it. -- Canno

Re: Detecting 64-bit OS

2018-04-24 Thread Cannon Smith via 4D_Tech
Thanks Jorg and Jim. I appreciate the examples. It looks like there are lots of ways to accomplish this. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 24, 2018, at 9:09 AM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > sys_IsWow64Process

MSC Warnings

2018-04-24 Thread Cannon Smith via 4D_Tech
I have a few warnings when I verify my structure (v16r5). They are all basically the same: Referenced style sheet not found for this object: ProgressWin.Page1.vlProgress_Thermometer (vlProgress_Thermometer) Each object referenced is a thermometer widget. Since these kinds of widgets do

Re: MSC Warnings

2018-04-24 Thread Cannon Smith via 4D_Tech
Yes, it runs fine. I’d just like to get rid of the warnings. I’m wondering if there was a time (v15?) when the object properties allowed setting a stylesheet on thermometers. Now that’s been fixed, but my structure still has a stylesheet attached to the thermometer, so it throws an error. The p

Re: Macro to check that local variables are declared in a method?

2018-04-27 Thread Cannon Smith via 4D_Tech
Hi Bob, I don’t have a macro for you, but I’m curious to know why asking the compiler to check the syntax isn’t enough? -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 27, 2018, at 9:54 AM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Collection.orderBy()

2018-04-27 Thread Cannon Smith via 4D_Tech
I’m having trouble with the collection.orderBy() command working. Not sure if it is me or a bug. I’m using 4D v16r6, 64-bit, on macOS with this line of code: $cSortedFrames:=$oPage.frames.orderby("position.zIndex asc”) In the method editor everything colors correctly, including “orderBy”

Re: Collection.orderBy()

2018-04-27 Thread Cannon Smith via 4D_Tech
Hi Jeff, Yeah, the ending quote must have been converted by my mail app. It’s a proper quote in code. I _think_ the asc should be inside the double quotes. But I’m just going by the examples found at: http://doc.4d.com/4Dv16R6/4D/16-R6/collectionorderBy.301-3690504.en.html. I don’t r

Re: Collection.orderBy()

2018-04-27 Thread Cannon Smith via 4D_Tech
Thanks Jeff and Julio. Funny, I thought I’d double-checked case, but apparently not well enough! As soon as I changed it from “orderby” to “orderBy” it started working. BTW, I finally turned on object notation in my database and have started using object notation as well as collections directly

Re: Picture Madness

2018-04-30 Thread Cannon Smith via 4D_Tech
Hi Douglas, You can do this in code. For example, here is some code I use: GET PICTURE METADATA($gPicture;TIFF orientation;$lOrientation) Case of : ($lOrientation=1) //Normal, no rotation needed : ($lOrientation=8) //Left 90˚, so need to rotate ri

Re: Constants - Can I make a Date Constant?

2018-04-30 Thread Cannon Smith via 4D_Tech
Only longs, reals, and strings. Not even booleans are allowed. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 30, 2018, at 1:33 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > for example : !00/00/00! ***

64 vs 32 Bit 4D

2018-04-30 Thread Cannon Smith via 4D_Tech
I’m currently using 4D v16r5, Mac and Windows. I’m using the 64-bit versions across the board. I may need to drop back to 32-bit for clients and standalone for a little while. I can’t seem to remember or find if there are any features (besides the network settings) that are 64-bit only. Does an

Re: 64 vs 32 Bit 4D

2018-04-30 Thread Cannon Smith via 4D_Tech
t 4:34 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I’m currently using 4D v16r5, Mac and Windows. I’m using the 64-bit versions > across the board. I may need to drop back to 32-bit for clients and > standalone for a little while. > > I can’t seem

Re: 64 vs 32 Bit 4D

2018-04-30 Thread Cannon Smith via 4D_Tech
Thanks Miyako and Randy! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 30, 2018, at 4:43 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > also in language reference: > > http://doc.4d.com/4Dv16R6/4D/16-R6.1660/Not-for-32-bit-versi

Re: Image Madness

2018-05-01 Thread Cannon Smith via 4D_Tech
Hi Douglas, I’m not sure why that would be the case as it has worked for me. Perhaps a clue it that my code only handles the 4 common cases. Could your picture be one of the other four cases? Not sure. I can give you the site I found that helped me understand this (to the small degree that I un

Download 4Dv16R5

2018-05-10 Thread Cannon Smith via 4D_Tech
I can’t find a place to download the 32-bit version of 4Dv16R5 for Windows. Does anyone know how to find older R-releases? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 ** 4D Interne

Re: Download 4Dv16R5

2018-05-10 Thread Cannon Smith via 4D_Tech
ge- > From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Cannon Smith > via 4D_Tech > Sent: Thursday, May 10, 2018 12:55 PM > To: 4D iNug Technical > Cc: Cannon Smith > Subject: Download 4Dv16R5 > > I can’t find a place to download the 32-bit version of 4

Analyzing .4BL Files

2018-05-16 Thread Cannon Smith via 4D_Tech
You know how you can open the MSC, go to Activity Analysis, and the Analyze the current log file? And export it to text? I need to go through a similar process with some log files that were backed up, but without integrating them. In the MSC there is a Browse button, but it won’t let me choose a

Re: Analyzing .4BL Files

2018-05-17 Thread Cannon Smith via 4D_Tech
Thanks Chip, Randy, and Jeff. Thanks to your suggestions I was able to track down something that I should have know but did not. The RESTORE command will convert a .4BL to a .journal file. From there I can use the MSC to look at it or, even better, the LOG FILE TO JSON command which is nice for

OBJ Module and Date Issue

2018-05-24 Thread Cannon Smith via 4D_Tech
If anyone is using the OBJ module in v16r6 or v17, please be aware there is a bug in 4D (reported as ACI0098267) that causes problems with dates. The OBJ module stores dates in an object as a string in the format “2018-05-24” and handles the conversion back and forth as necessary. If the object

Re: Build with code signing

2018-06-11 Thread Cannon Smith via 4D_Tech
Hi Jeff, I can’t give you a step by step guide, especially including getting the signing certificate. But here is a code snippet which I use for signing my apps which works. The takeaways will be in the comments as well as the two commands that are run using LEP. Hopefully that is enough to ge

Re: Build with code signing

2018-06-11 Thread Cannon Smith via 4D_Tech
Hi Wayne, The point of that comment was that nothing should change during the build process after signing and before distributing to the user. Once macOS has checked the code signing before running on the user’s machine, it doesn’t seem to care if it changes again. Of course, it is only a matt

Re: Delay process bug

2018-06-12 Thread Cannon Smith via 4D_Tech
We just released a new version of our software a week and a half ago. In this version I added a palette window on the server which runs On Timer. I also added code to most every background process which updates some information every time it wakes up from a Delay Process call. The palette window

Re: Delay process bug

2018-06-12 Thread Cannon Smith via 4D_Tech
I’ve seen it happen in as little as a few hours of a machine restart or after it had been running for a >2 months. Same with when 4D Server itself was launched. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun 12, 2018, at 3:26 PM, Jim Crate via 4D_Tec

Re: Difference between OB Copy and :=

2018-06-12 Thread Cannon Smith via 4D_Tech
> [Letter Templates]WP_SeriesPictures:=oPictures Both [Letter Templates]WP_SeriesPictures and oPictures point to the same C_Object instance in memory. If you change either one, they are “both” changed. > [Letter Templates]WP_SeriesPictures:=OB Copy(oPictures) [Letter Templates]WP_SeriesPict

Re: Difference between OB Copy and :=

2018-06-12 Thread Cannon Smith via 4D_Tech
The neat thing about objects, in my opinion, is that they are reference based. I would try to stay away from using OB Copy unless it is warranted. For example, in your example you could just use the field directly or a reference to the field. Unless you save the record, changes won’t be put back

Re: Difference between OB Copy and :=

2018-06-13 Thread Cannon Smith via 4D_Tech
Hi Tim, I haven’t had time to try this myself today, but do you know off the top of your head if this is only fixed when using dot notation? Or is it fixed when for the old style of code as well (when we had to traverse the object tree to the children, getting a reference to the child and then

Re: Difference between OB Copy and :=

2018-06-14 Thread Cannon Smith via 4D_Tech
om> wrote: > > off the top of *my* head I understand the fix is not limited to object > notation. > > it was an optimisation made for wakanda server that somehow got lost on its > way to 4D object fields. > > so it's a fix at the database level. > >> 2018/0

Re: Delay process bug

2018-06-18 Thread Cannon Smith via 4D_Tech
I can’t answer this for Justin, but we have both kinds hitting this bug. Some are rather complicated methods that potentially do lots of things. But several are very simple—just a few lines of code to check whatever it needs to check and then go back to sleep. -- Cannon.Smith Synergy Farm Solut

Styled Text and QPDF Plugin

2018-06-18 Thread Cannon Smith via 4D_Tech
Hi Everyone, Has anyone written code that would take a 4D styled text variable, parse out the different styles in it, and convert them to tags that can be embedded into text to be used with Rob’s QPDF Draw Text plugin command? -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 4

Re: Styled Text and QPDF Plugin

2018-06-18 Thread Cannon Smith via 4D_Tech
Hi Kirk, Yes, I did talk to Rob. He was the one that directed me to the QPDF Draw Text command and the embedded possibilities. I was thinking the same as you—that it should be possible, but a lot of code. That’s why I was asking if anyone had already tackled it. I’d be willing to trade some cod

Fastest Feature Request Implementation Ever

2018-06-28 Thread Cannon Smith via 4D_Tech
Some of you may know that I use a mechanism in my windows where each window and widget on the window has its own “model” object. This can be passed into a window and then manipulated after the window closes. This logic applies to subforms as well and is set up so that when a subform is typed as

Moving Files With cURL FTP

2018-06-28 Thread Cannon Smith via 4D_Tech
Does anyone know if Miyako’s cURL FTP plugin can move files? I need to get a list of files in a directory and then move them all up into the parent folder and I’m not quite sure how to do that with his plugin. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-32

Re: Moving Files With cURL FTP

2018-06-28 Thread Cannon Smith via 4D_Tech
Hi Miyako, Thanks. I’ll go get the new version now and give it a try. From your example on github, is this how you would move “c” up a level? OB SET($options;\ "URL";"ftp://ftp.example.com/a/b/c";\ "USERNAME";"user";\ "PASSWORD";"pass") $name:="ftp://ftp.example.com/a/c” //A full path here???

Re: Fastest Feature Request Implementation Ever

2018-06-28 Thread Cannon Smith via 4D_Tech
Hi Kirk, Thanks for the heads up. I’ll look for it. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun 28, 2018, at 6:37 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > There's a blog post and demo that's worth a look if you haven't alre

Re: Moving Files With cURL FTP

2018-06-28 Thread Cannon Smith via 4D_Tech
Never mind, I have it figured out now. It would just be “/a/c” to get what I need. Thanks again! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun 28, 2018, at 5:33 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: >

Re: Converting pictures on 4D forms (Windows) to get transparency

2018-07-09 Thread Cannon Smith via 4D_Tech
Hi Bob, I haven’t tried this, but maybe this tip would do what you want? -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jul 9, 2018, at 9:20 AM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > anyone

SVG Shape With No Background

2018-07-20 Thread Cannon Smith via 4D_Tech
Hi All, What is the best way to draw a shape (circle, rectangle, etc.) without a background using the SVG component? I tried using a “transparent” color: $tRef:=SVG_New_circle ($tSVG;200;200;100;"red";"white:0";10) //“white:0” = transparent But it seems that if you pass a color like “w

Re: SVG Shape With No Background

2018-07-20 Thread Cannon Smith via 4D_Tech
t;none";10) gives me a circle with no background. So, never mind! :-) -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jul 20, 2018, at 8:59 AM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > $tRef:=SVG_New_circle

Re: SVG Shape With No Background

2018-07-20 Thread Cannon Smith via 4D_Tech
> some time ago, we received a similar question from a customer, > evidently it is intentional that opacity=0 is ignored (it is explicitly coded > that way). > the explanation from the developer was that opacity=0 makes no sense and > "none" should be used instead. I agree, it does make sense. I

POW Function

2018-07-24 Thread Cannon Smith via 4D_Tech
I’m looking for an equivalent function in 4D as the pow function in other languages. For example: Does anyone know how to do this? My math is really rusty. Thanks. -- Cannon.Smith Synergy Farm

Re: POW Function

2018-07-24 Thread Cannon Smith via 4D_Tech
Hi Spencer, Yes, it is! So simple. Thank you. Perhaps some more help from someone? I’m trying to translate some code on the web into 4D. Here are the lines of code along with an explanation: range = max - min; exponent = int(log(range)); magnitude = pow(10, exponent); //So, for example, if y

Re: POW Function

2018-07-25 Thread Cannon Smith via 4D_Tech
Hi Andrew, Thanks for the answer. Also, thanks to Miyako and Jeremy. Spencer actually helped me get this figured out offline, but I didn’t realize we’d gone offline. So its all taken care of. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jul 2

collection.min() Returns Null

2018-07-26 Thread Cannon Smith via 4D_Tech
I was surprised that the following code tries to return null instead of 80: $cTest:=New collection(100;200;Null;80) $lMin:=$cTest.min() I would have expected that a Null value in the collection would be ignored when looking for the minimum value. Is this what others are expecting or is this a b

Re: collection.min() Returns Null

2018-07-26 Thread Cannon Smith via 4D_Tech
("#null").min() //<—What should the query string be? Or should I be using a different function? Anyone know what I should be doing here? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jul 26, 2018, at 1:59 PM, Cannon Smith via 4D_Tec

Re: collection.min() Returns Null

2018-07-26 Thread Cannon Smith via 4D_Tech
Hi Christian, Thanks. The values are a series that need to be graphed. Some values in a series may be null, indicating that the graph line should be skipped at that point since we don’t know what the value is. That’s why I decided to use C_COLLECTION instead of ARRAY REAL to hold the values. As

Re: collection.min() Returns Null

2018-07-26 Thread Cannon Smith via 4D_Tech
Hi Miyako, Perfect! Thanks, that makes sense and works well. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jul 26, 2018, at 3:27 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > in your case, you could do something like > > $cTest:=$

Re: collection.min() Returns Null

2018-07-27 Thread Cannon Smith via 4D_Tech
Hi Steve, FWIW, I'm only getting one copy of each message. -- Cannon Smith > On Jul 27, 2018, at 5:51 AM, Stephen J. Orth via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > For the past few days I'm getting multiples of the same message, over and > over. Today I received like 15 copies of this

Re: height and width of a fixed prtinted object

2018-08-07 Thread Cannon Smith via 4D_Tech
Hi Chuck, If I’m understanding what you’re after, you just need to use the max width parameter with OBJECT GET BEST SIZE. HTH. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 7, 2018, at 8:58 AM, Charles Miller via 4D_Tech <4d_tech@lists.4d.com> > w

SVG IDs in Listbox Cells

2018-08-13 Thread Cannon Smith via 4D_Tech
You know how you can give SVG elements IDs and then use SVG Find element ID by coordinates during a click or mouse over event to figure out what element the mouse is over in an SVG picture? I’d like to do this, except that the SVG picture is in a list box. In fact, the list box has several of th

Re: SVG IDs in Listbox Cells

2018-08-14 Thread Cannon Smith via 4D_Tech
Thanks for everyone who commented on this. It is actually _almost_ doable. With some math it is possible to figure out where the cursor is over a particular picture cell and "SVG Find element ID by coordinates” works in this context. For example: $tID:=SVG Find element ID by coordinates

Re: SVG IDs in Listbox Cells

2018-08-14 Thread Cannon Smith via 4D_Tech
Hi Keith, I just tried a little test and, yes, it does seem to work. I’ll play with this some more and see if all the parts will come together. Thanks! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 14, 2018, at 8:52 AM, Keith Culotta via 4D_Tech <4

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Yes, this does work perfectly. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 14, 2018, at 6:15 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > the command > > http://doc.4d.com/4Dv17/4D/17/LISTBOX-GET-CELL-COORDINATES.301

  1   2   3   >