Re: iNUG Messages — Is it time for it to be more than just 'plain text' ???

2020-05-01 Thread Cannon Smith via 4D_Tech
Hi Chris, Have you seen the new forums? https://discuss.4d.com They should do what you’re after. -- Cannon Smith Synergy Farm Solutions Inc. > On May 1, 2020, at 5:41 PM, Chris Belanger via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Do you think the iNUG would be so much more

Re: Backup Settings Not Saving

2020-04-10 Thread Cannon Smith via 4D_Tech
Thanks, Pat. I’ll report it again today. -- Cannon Smith Synergy Farm Solutions Inc. > On Apr 9, 2020, at 5:25 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I'm sure I reported this as a bug some time ago, and I'm sure I was > notified that it was fixed :) But I can't find

Re: Backup Settings Not Saving

2020-04-09 Thread Cannon Smith via 4D_Tech
Hi Tom, Thanks for confirming. Yeah, it seems the other settings save correctly. Just this one. Interestingly, I found the following bug fix for v17.3: ACI0098925: "Backup settings do not save “Repeat after X seconds/minutes/hours” option: on Windows it is always 60 mn, on macOS it is always

Re: Backup Settings Not Saving

2020-04-09 Thread Cannon Smith via 4D_Tech
Sorry, that should have been 4D v17.3 HF3. -- Cannon Smith Synergy Farm Solutions Inc. > On Apr 9, 2020, at 3:32 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Anyone else seen this? Mac o

Backup Settings Not Saving

2020-04-09 Thread Cannon Smith via 4D_Tech
I just noticed that the “If backup fails… Retry after x [units]” backup setting is set to 0 Seconds on all my servers. It used to be 5 minutes. So I tried changing it back to 5 minutes and save. If I reopen the settings dialog, I see that it is still set to 0 seconds. The setting change isn’t

Re: Image Export Issues

2020-04-03 Thread Cannon Smith via 4D_Tech
So sorry to hear about your wife, Robert. I can’t imagine how tough that is for you. -- Cannon Smith > On Apr 2, 2020, at 10:56 PM, Robert McKeever via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > So, to all, thank you. I needed a success - my wife of almost 39 years passed > away from a

Re: Another Signing/Notarization Question

2020-03-07 Thread Cannon Smith via 4D_Tech
Hi Jim, Thanks for the ideas. I tried to codesign the file as part of the app’s signing process, but haven’t had any luck with that working. The alias idea is intriguing. I’m going to look into that. Thanks. -- Cannon Smith Synergy Farm Solutions Inc. > On Mar 7, 2020, at 8:17 AM, James

Another Signing/Notarization Question

2020-03-06 Thread Cannon Smith via 4D_Tech
Hi All, Thanks to Miyako and Rob Laveaux updating some plugins I use, and other help, I now have all but one of my applications notarizing again since the recent Apple changes. The problem with the last application is that some years ago I started placing a small blob file (compressed XML, not

Re: New Notarization Issues

2020-02-12 Thread Cannon Smith via 4D_Tech
Hi Miyako, I have all my applications except one notarizing again since Apple’s recent changes. I appreciate you updating the cURL FTP and System Notification plugins. The application that isn’t notarizing has some other plugins that I’m hoping can be updated by their authors. I’m not sure

Re: New Notarization Issues

2020-02-12 Thread Cannon Smith via 4D_Tech
Hi Miyako, I just tried and 3.9.v18 is successfully signed with the official shell script. Thank you for the changes! I now have one application successfully notarizing again. Now I need to check my other applications to make sure they will still notarize. :-) -- Cannon Smith Synergy Farm

Re: New Notarization Issues

2020-02-12 Thread Cannon Smith via 4D_Tech
Hi Jim, Thanks. I’m now using the v18 Internet Commands and it is notarization correctly. -- Cannon Smith Synergy Farm Solutions Inc. > On Feb 11, 2020, at 5:40 PM, James Crate via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I didn’t verify that the v18 4DIC is on a newer SDK, I replaced a

Re: New Notarization Issues

2020-02-11 Thread Cannon Smith via 4D_Tech
Hi Erick and Jim, Thanks for your thoughts. I’ve taken another approach which has solved most of my issues. Instead of navigating the package and calling LEP commands myself on each component, I’m now just using 4D’s SignApp.sh shell script. This handles all the general cases just fine. I do

New Notarization Issues

2020-02-10 Thread Cannon Smith via 4D_Tech
Hi Everyone, A couple months ago I finally got my applications to notarize correctly. I’m in 4D v17.3 HF3, but using the PHP libraries from v18. As you probably know, Apple made changes last week and my notarization code has stopped working. Here is one example of the errors I’m getting back

Re: catalina and 4D

2020-01-13 Thread Cannon Smith via 4D_Tech
Hi Chunk, Make sure you are using at least v17.3 HF1. Anything prior to that is rather fruitless on a new machine. HTH. -- Cannon Smith Synergy Farm Solutions Inc. > On Jan 13, 2020, at 3:03 PM, Chuck Miller via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have new laptop that I bought

Re: v17.3 on Mac OS 10.15.2 Plugins "cannot be opened because the developer cannot be verified"

2019-12-12 Thread Cannon Smith via 4D_Tech
Hi Ken, It is because the plugins aren’t notarized by 4D. If you move to at least v17.3 HF1, you shouldn’t have a problem. HTH. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Dec 12, 2019, at 11:20 AM, Ken Eyring via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > So far

Re: Constants in code.

2019-12-09 Thread Cannon Smith via 4D_Tech
Hi Eric, There is also a way to create constants in your code if you want. There is a tech note about it here: HTH. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Dec 9, 2019, at 8:09 AM, Eric Naujock via 4D_Tech

Re: Doing a GOTO (widget) in the On Load event - stumped

2019-12-02 Thread Cannon Smith via 4D_Tech
No worries! :-) -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Dec 2, 2019, at 6:01 PM, Peter Jakobsson via 4D_Tech > <4d_tech@lists.4d.com> wrote: > >> Thanks Canon > > …sorry, I mean “Cannon” of course ;)

Re: Doing a GOTO (widget) in the On Load event - stumped

2019-12-02 Thread Cannon Smith via 4D_Tech
You’re welcome. Glad it worked. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Dec 2, 2019, at 5:58 PM, Peter Jakobsson wrote: > > Works a dream. > > Thanks Canon. I had forgotten about SET TIMER. Suddenly these query forms are > perfectly user-intuitive. Start off in

Re: Doing a GOTO (widget) in the On Load event - stumped

2019-12-02 Thread Cannon Smith via 4D_Tech
Hi Peter, Depending on how the subform is set up, it may not be loaded by then. But it should work if you use SET TIMER(-1) and then call EXECUTE IN SUBFORM($subform;”ACTION”) in the timer. HTH. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Dec 2, 2019, at 5:32 PM,

Re: Create SQL DB ERD from 4D Export Structure XML File?

2019-11-25 Thread Cannon Smith via 4D_Tech
Hi Tom, As for Alexander’s code, I noticed the following sometime ago. Maybe something this simple is causing the blackness as well? > Just a heads up on a bit of code that won’t work in countries that use a > decimal place instead of a comma. In the method xml_atts2ob, lines 50, 54, > 58,

Re: ORDA/Collections

2019-10-30 Thread Cannon Smith via 4D_Tech
Hi Justin, Have you taken a look at the extract function on collections? I think it would do what you want. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Oct 30, 2019, at 2:45 PM, Justin Will via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Re: Using Github to Manage Distributed Development

2019-10-10 Thread Cannon Smith via 4D_Tech
I can’t think of any reason one would want to go back, either. Splitting the structure into files is something we’ve wanted for _so_ long and opens so many opportunities. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Oct 10, 2019, at 4:38 PM, Tim Nevels via 4D_Tech

More Errors With RECEIVE BUFFER In v17

2019-10-01 Thread Cannon Smith via 4D_Tech
I’m wondering if anyone else has noticed an uptick in errors when using the RECEIVE BUFFER command to read from a serial port? Our application does a lot of serial port communication. We also log all errors. There has been a _significant_ uptick in errors that occur on the following line of

Re: Rotate Picture

2019-06-22 Thread Cannon Smith via 4D_Tech
For all I remember you gave it to me! :-) Glad it works. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Jun 22, 2019, at 6:28 PM, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Your code looked vaguely familiar to me. I had not thought to look and see if

Re: Rotate Picture

2019-06-22 Thread Cannon Smith via 4D_Tech
Hi John, Here is the code from a method I use called Photo_Rotate: //This method rotates a picture. While it will rotate the picture to //any angle, this method is really expecting it to rotate 90˚, 180˚, //or 270˚. C_PICTURE($1;$gPicture) C_REAL($2;$rDegrees) //Expects 90, 180, or 270

Re: Printing structures

2019-05-08 Thread Cannon Smith via 4D_Tech
Hi Alexander, This is great! Thank you for sharing. Just a heads up on a bit of code that won’t work in countries that use a decimal place instead of a comma. In the method xml_atts2ob, lines 50, 54, 58, and 62 convert the decimal point in the height, left, top, and width of the XML values to

Re: Collections and Entity Selections Cheat Sheets

2019-05-07 Thread Cannon Smith via 4D_Tech
I made a small update to both cheat sheets, adding the syntax for the new "For each” command. I seem to get it mixed up a lot. :-) Update is here if anyone wants it: -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada

Collections and Entity Selections Cheat Sheets

2019-04-30 Thread Cannon Smith via 4D_Tech
I’ve been using collections and entity selections more lately and notice I spend a lot of time in the docs trying to remember what function does what. Some of them aren’t named very intuitively (at least to me). And I keep forgetting which ones return a deep or shallow copy or use a query

Re: Checking If Methods Are Preemptive Ready

2019-04-12 Thread Cannon Smith via 4D_Tech
Hi Wayne, Thanks for the idea. So far the symbols files has provided what I need. Not as simple to parse as if it had been spit out in JSON, but okay. Mostly I’m trying to get an idea of which of my “foundation” modules are not thread safe, but could be. Thanks. -- Cannon.Smith Synergy Farm

Re: Checking If Methods Are Preemptive Ready

2019-04-11 Thread Cannon Smith via 4D_Tech
Hi Dani, I believe that preemptive capable in that context just means that you’ve set the method properties that way. I don’t think it means that if you tried to compile the code would actually work in a preemptive context. I’d be happy to be corrected if I’m wrong? Thanks. -- Cannon.Smith

Re: Checking If Methods Are Preemptive Ready

2019-04-11 Thread Cannon Smith via 4D_Tech
Hi Vincent, Perfect. Thank you very much! -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Apr 11, 2019, at 11:10 AM, Vincent de Lachaux via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > If you activate the generation of the symbol file in the compilation > preferences,

Checking If Methods Are Preemptive Ready

2019-04-11 Thread Cannon Smith via 4D_Tech
Does anyone know if there is a way to get a list of methods that are (or are not) preemptive ready? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada ** 4D Internet Users Group (4D iNUG) Archive:

Re: Auto Updating 4D Not Working

2019-04-08 Thread Cannon Smith via 4D_Tech
Hi John, Thanks for the suggestion. I actually use a temporary folder to place the “new” version before calling SET UPDATE FOLDER. But I use the same one for all my applications and it works for all the rest, so I doubt security issues on the folder is the issue. Thanks anyway. --

Re: Auto Updating 4D Not Working

2019-04-05 Thread Cannon Smith via 4D_Tech
Hi Lutz, Thanks for replying. I’ve been using this mechanism in several applications for a few years now. No problems with any of them except this specific instance. I can’t see that I’m doing anything different in my code than with the other applications. Wondering if you can remember more

Auto Updating 4D Not Working

2019-04-04 Thread Cannon Smith via 4D_Tech
I’m having trouble with one particular app auto updating. When it should be quitting, it just hangs forever. 4D v17.1HF1, macOS only. (It works fine on Windows). I’m using essentially the same code as in several other applications, also on v17.1HF1, but this is the only application that

Re: Apple Notary Service

2019-03-16 Thread Cannon Smith via 4D_Tech
Hi Miyako, I do have the yearly membership and find it important to get our application to behave as closely as possible to what users expect. I often don’t have any contact with someone who downloads our software and if they see any kind of warning that looks fishy they won’t even try it out

Re: Apple Notary Service

2019-03-15 Thread Cannon Smith via 4D_Tech
Hi David, Thanks! I’m glad to know that it works. I wouldn’t be surprised if we need it this fall. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Mar 15, 2019, at 12:39 PM, David Ringsmuth wrote: > > I helped my client do this. >

Re: Apple Notary Service

2019-03-15 Thread Cannon Smith via 4D_Tech
Hi Jeff, That’s a pretty safe statement to make! :-) I’ll take a look. Thanks much. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Mar 15, 2019, at 12:57 PM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I think Miyako has something on his github

Apple Notary Service

2019-03-15 Thread Cannon Smith via 4D_Tech
Has anyone tried to notarize a built 4D application with Apple yet? Is it possible with 4D? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada ** 4D Internet Users Group (4D iNUG) Archive:

Re: Delay Worker Process

2019-03-14 Thread Cannon Smith via 4D_Tech
Hi Gabriel, Part of what gets logged isn’t know at the time I know something needs to be logged. The code is easiest if I can say, “Hey, please log this situation” and have the actual logging happen a few seconds later. As I said, this is a quick a dirty injection of some logging code to track

Delay Worker Process

2019-03-13 Thread Cannon Smith via 4D_Tech
Hi Everyone, I’m trying to do some quick and dirty logging to track down an issue at a customer’s site. As part of that I need to log some information to a file, always on the server. I figured the simplest would be to call a method each time I need to log some information and pass the info to

Re: 4D Server v17.1 and time change

2019-03-11 Thread Cannon Smith via 4D_Tech
Thanks, Jeff. I’ll be sending out 1 v17.1 build next month and hope to see the same thing. I still have the issue several times a week in v16r6. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Mar 11, 2019, at 5:19 PM, Jeffrey Kain wrote: > > No, not at all since

Re: 4D Server v17.1 and time change

2019-03-11 Thread Cannon Smith via 4D_Tech
Thanks. Good to know it has been solid otherwise. P.S. Have you seen the delayed process not waking up issue since moving to v17.1? -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Mar 11, 2019, at 4:47 PM, Jeffrey Kain wrote: > > Nobody else has responded... so I guess

Re: 4D Server v17.1 and time change

2019-03-11 Thread Cannon Smith via 4D_Tech
Hi Jeff, We had to relaunch all our servers for them to get the time update, but they are still on v16r6. I thought the daylight saving bug had been fixed in v17.1 so I’m curious to know what you find if you get more information. Good luck. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna,

Re: Denver Area Developers

2019-02-22 Thread Cannon Smith via 4D_Tech
I’m even closer that Steve in Alberta. I had no idea Denver was so big! :-) -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada > On Feb 22, 2019, at 1:49 PM, Stephen J. Orth via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > If you count Madison, WI as part of Denver, then yes there

Re: Mojave

2018-12-04 Thread Cannon Smith via 4D_Tech
Hi Jim, Thank you very much. That gives me some direction on what I’ll need to look for. Much obliged! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 4, 2018, at 8:26 AM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Good graphics - 32 bit

Re: Mojave

2018-12-04 Thread Cannon Smith via 4D_Tech
Thanks for the list, Miyako. Very helpful. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 3, 2018, at 5:16 PM, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > ACI0098799On macOS 10.14.x (Mojave), unexpected white vertical line is >

Re: Mojave

2018-12-03 Thread Cannon Smith via 4D_Tech
Hi Jim, Do you have more specific information about this issue? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Dec 3, 2018, at 2:54 PM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> wrote: > > We had a problem with SVG graphics in v17.0 on Mojave

Re: Mojave

2018-11-30 Thread Cannon Smith via 4D_Tech
Thanks John and Kirk. I appreciate the feedback. If anyone else has more information, feel free to chime in. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Nov 30, 2018, at 9:59 AM, John Baughman via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Mojave

2018-11-30 Thread Cannon Smith via 4D_Tech
I don’t believe 4D has released a version that is fully compatible with Mojave, unless I missed an announcement. But I’m getting outside pressure to upgrade from Sierra to Mojave and may have to do it anyway. From what I’ve heard, v17 seems to work good enough for development at least in

Re: Current time (*) incorrect today on v17?

2018-11-05 Thread Cannon Smith via 4D_Tech
All of our customers also had to relaunch their servers yesterday. They are all on v16r6. Must be a new bug as I don’t remember this happening in the past. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Nov 4, 2018, at 12:01 PM, Jeffrey Kain via 4D_Tech

Re: Longing IDs or UUIDs as primary key?

2018-10-24 Thread Cannon Smith via 4D_Tech
I've heard lots of comments over the years talking about how hard it is to work with UUIDs. I’d like to offer a different perspective. I switched to UUIDs from longints for primary keys 7 or 8 years ago. It took some careful programming to migrate the datafiles in place, but it was _so_ worth

Re: Creating Windows Taskbar Icons with 4D Version Numbers

2018-08-16 Thread Cannon Smith via 4D_Tech
Thank, Tim. This is a great tip! In fact, it would make a good Tech Tip. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 15, 2018, at 8:47 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Shortcuts for all the pinned taskbar items are

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Hi Arnaud, No, I’m manipulating the picture directly inside the list box. Not as efficient as I like and I haven’t tried Miyako’s latest suggestion which might be more efficient, but the whole process only takes 1-2 milliseconds interpreted, so fast enough. Here is more of the code (I’ve left

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Hi Arnaud, Thanks for those. I ended up doing it in a pretty simple way. Basically, in the list box On Mouse Move event: GET MOUSE($lMouseX;$lMouseY;$lMouseButton) LISTBOX GET CELL POSITION(lbRanchMetrics;$lMouseX;$lMouseY;$lCol;$lRow) If ($lRow>0) LISTBOX GET CELL

Re: SVG IDs in Listbox Cells

2018-08-15 Thread Cannon Smith via 4D_Tech
Thanks, Jim. I have this working now, basically doing what you described. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 15, 2018, at 3:36 AM, jim.dorrance--- via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I think there is an example of that on my

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 > >

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

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

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

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> >

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: 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 > >

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.

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

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

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

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

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: 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.

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

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

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

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: 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

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???

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

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

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

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

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/06/14

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-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

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

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

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

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: 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

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

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

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

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: > >

Re: 64 vs 32 Bit 4D

2018-04-30 Thread Cannon Smith via 4D_Tech
tions.com> > On Apr 30, 2018, at 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 f

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

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 :

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

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

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

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

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

  1   2   3   >