Re: iNUG List "From" Change

2017-02-17 Thread Cannon Smith via 4D_Tech
I’d like to thank Tim for helping with this. I never would have thought it was a contact that needed to be deleted! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Feb 17, 2017, at 12:22 PM, Timothy Penner via 4D_Tech >

Detecting if 4D is Frontmost App

2017-02-17 Thread Cannon Smith via 4D_Tech
Is there a way to detect whether 4D is the frontmost application? I have a small status window that I show/hide from time to time and am finding that if 4D is hidden, when I call SHOW WINDOW, 4D comes becomes the frontmost application which is really annoying. I’m thinking that if I can detect

Re: Detecting if 4D is Frontmost App

2017-02-17 Thread Cannon Smith via 4D_Tech
Thanks to everyone who replied. I just remembered that 4D has an On System Event database method that fires whenever the application moves to the front or back. I think I’ll just track the changes here. Thanks again for all the ideas! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB

Re: Old doesn't work with object fields

2017-02-22 Thread Cannon Smith via 4D_Tech
Hi Jeff, > If ((JSON Stringify($fieldPtr->))#(JSON Stringify(Old($fieldPtr-> This only works if the order of the keys in the object stays the same which may not be true depending on how you change the object. I’ve pasted in a method below that you can use to compare two objects which

Re: Old doesn't work with object fields

2017-02-23 Thread Cannon Smith via 4D_Tech
Hi Arnaud, > On Feb 22, 2017, at 2:25 PM, Arnaud de Montard via 4D_Tech > <4d_tech@lists.4d.com> wrote: > >> : ($atFirstProperty{$x}#$atSecondProperty{$x}) //Check property name > > About the comparison above, json properties are case sensitive. > Things like: >

Re: iNUG List "From" Change

2017-02-17 Thread Cannon Smith via 4D_Tech
I’m using Apple Mail. I uploaded a screenshot showing what what I’m seeing: -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: LEP and Python Script

2017-02-15 Thread Cannon Smith via 4D_Tech
Thanks to everyone who responded about this. James gets the prize. Once I set the original script to be executable it worked as expected. Thanks again! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Feb 15, 2017, at 2:37

Re: Server Mirroring

2017-03-22 Thread Cannon Smith via 4D_Tech
Hi Jeff, Thanks for the advice. I appreciate it! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Mar 22, 2017, at 8:31 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > We run a mirror here -- soon to be

Server Mirroring

2017-03-20 Thread Cannon Smith via 4D_Tech
I’m looking into the idea of setting up a mirrored server. One one hand I want to be pretty aggressive about sending log files to the mirror—probably every couple of minutes. On the other hand, I don’t want to use “New log file” and then send the log file if nothing has changed. Has anyone

Re: Journaling Not Working

2017-03-21 Thread Cannon Smith via 4D_Tech
can...@synergyfarmsolutions.com> > On Mar 21, 2017, at 3:29 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > 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 >

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

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: Converting Little Endian Byte Representation To a String

2017-04-21 Thread Cannon Smith via 4D_Tech
Hi Arnaud, Interesting idea. In all actuality, even though we call the tag a “number", it is always treated as a string. This algorithm I needed help with was the first time in 10 years I needed to think of it as a number, and that was only a temporary step for the way the algorithm worked.

Re: Converting Little Endian Byte Representation To a String

2017-04-18 Thread Cannon Smith via 4D_Tech
Thanks, Miyako! That does indeed work and is plenty fast as well. I really appreciate the code! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 18, 2017, at 12:43 AM, Keisuke Miyako via 4D_Tech >

Re: "Placeholder" in property list

2017-04-22 Thread Cannon Smith via 4D_Tech
Yep, it's a very welcome feature. And you can set it programmatically! :-) -- Cannon Smith > On Apr 22, 2017, at 7:37 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Has anyone noticed that in 15.4 (HF2... maybe others) there's a new property > for fields and variables called

Re: Components and custom constants files

2017-04-22 Thread Cannon Smith via 4D_Tech
Hi David, I can see from your component naming that you used to live in Hawaii! :-) -- Cannon Smith > On Apr 22, 2017, at 12:12 AM, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > DaKine.4dbase ** 4D Internet

Re: Components: How do you reuse utility code?

2017-04-22 Thread Cannon Smith via 4D_Tech
James, I think you’ve expressed very well why more code in the 4D community isn’t shared. I know there have been many times when I wanted to share a bit of code that I thought would be helpful or in response to a question someone had. And then I realized how many “core” methods I would have to

Re: DebugLogReader

2017-03-06 Thread Cannon Smith via 4D_Tech
Hi Alex, I just wanted to say thank you for providing this tool. I haven’t had a need to use it since you released it, but I have had need of such a thing many times in the past and expect it will be very useful in the future. Thanks much! -- Cannon.Smith Synergy Farm Solutions Inc. Hill

Converting Little Endian Byte Representation To a String

2017-04-17 Thread Cannon Smith via 4D_Tech
I have a little problem I’m hoping someone can help me solve. First, a bit of background. Our application deals with RFID tags for animals. These are always 15 digit numbers like 124000123456789. Even though they are numbers, I never have to deal with them as numbers. Instead, I always treat

Re: Converting Little Endian Byte Representation To a String

2017-04-17 Thread Cannon Smith via 4D_Tech
Hi Julio, Not a stupid question at all! The hex string representation is simply the way this reader has decided to encode and transfer the RFID number. The actual RFID number has to be interoperable with other systems that expect it in the “regular” format. Also, users will sometimes hand

Re: Converting Little Endian Byte Representation To a String

2017-04-17 Thread Cannon Smith via 4D_Tech
Thanks, Tim! I’ll try that library out tomorrow and see how it goes. Much appreciated. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 17, 2017, at 5:03 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Re: Converting Little Endian Byte Representation To a String

2017-04-18 Thread Cannon Smith via 4D_Tech
Thanks again, Miyako! This is even more useful! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 18, 2017, at 3:39 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I think there was a bug in the

Re: revelation! - Choose

2017-07-10 Thread Cannon Smith via 4D_Tech
Hi Chip, You may want to vote for this feature request: -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jul 10, 2017, at 8:22 AM, Chip Scheide via 4D_Tech

Re: Best way to stash an object array into an object field

2017-07-08 Thread Cannon Smith via 4D_Tech
Hi David, I haven’t tried storing an object array as the top level in a field, but have done it a lot one level down. For example: C_OBJECT($oInfo) ARRAY OBJECT($aoFacts;0) //...Create facts and append them to $aoFacts... OBJ_Set_Array($oInfo;”Facts”;->$aoFacts) [Table] ObjectField:=$oInfo

Re: Thinking through object/text fields: Findings summarized, advice solicited

2017-07-15 Thread Cannon Smith via 4D_Tech
Although I use object extensively in code, I don’t use them in very many fields. I do have several “settings” fields and find object type fields very useful here. Being able to add settings in the future without changing the structure is great and it seems like less work to have an extensive,

Re: Getting Computer and OS Info

2017-07-15 Thread Cannon Smith via 4D_Tech
Hi Jeremy, Thanks for the code. I started out using system_profiler but found it was too slow for my purposes. I ended up using sysctl and sw_vers on the Mac side which got me what I wanted and it very fast. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada

OBJ Module Update

2017-07-19 Thread Cannon Smith via 4D_Tech
I had a suggestion from Douglas von Roeder to add a method that returns the size of an array inside an object to the OBJ Module. I’ve done this. If anyone is interested, the method added is named OBJ_Get_ArraySize and the updated module can be found here:

Re: Rotating Pictures

2017-08-08 Thread Cannon Smith via 4D_Tech
I should mention that the pictures are JPEGs, if it matters. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 <can...@synergyfarmsolutions.com> > On Aug 8, 2017, at 5:01 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: &g

Rotating Pictures

2017-08-08 Thread Cannon Smith via 4D_Tech
I was surprised that the TRANSFORM PICTURE doesn’t have the ability to rotate a picture. I have the need to programmatically rotate a picture before displaying it on a form based on the EXIF rotation data. I’d like to do this natively, if possible, and it needs to work on both Mac and Windows.

Re: JSON Tools Was: Re: C-objects and memory use

2017-08-09 Thread Cannon Smith via 4D_Tech
I can! :-) -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 9, 2017, at 1:34 PM, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Sorry, I don't have a

Re: What happens if 4D attempts to use a Web Service with an expired cert?

2017-08-17 Thread Cannon Smith via 4D_Tech
Ah, never mind then. Unless 4D uses the same underlying code for the SSL stuff. No idea, though. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 17, 2017, at 1:22 PM, Tony Ringsmuth wrote: > > This

Re: What happens if 4D attempts to use a Web Service with an expired cert?

2017-08-17 Thread Cannon Smith via 4D_Tech
Hi Tony, Do you mean with HTTP Get or HTTP Request? I ran into this a few weeks ago because my own cert hadn’t updated like I thought it did. It turns out that the HTTP Get/HTTP Request commands will simply hang. Forever. I probably should have filed a bug, but at the time I was _way_ more

Re: How to clear a webpage from a web area?

2017-05-10 Thread Cannon Smith via 4D_Tech
Hi Keith, No sure about using the variable, but I do this when I need to get a blank web area: WA OPEN URL(*;"vtWebArea";"about:blank") Maybe something similar for you? -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Option drag and drop vs Sierra

2017-05-15 Thread Cannon Smith via 4D_Tech
I just tried in v16.1 with Sierra 10.12.4. Options dragging some text around in the method editor copied the text to the new position just as I would expect. Regular drag and drop within the method editor also worked. FWIW. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada

Re: Generating Random Numbers

2017-06-26 Thread Cannon Smith via 4D_Tech
I can’t agree more with what David has said about passwords. Here is another article about it including a comic that I like: -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Favorite tricks and keystrokes: Please take one and leave on

2017-05-27 Thread Cannon Smith via 4D_Tech
One of my favorite new techniques is to use an object array as a hidden column in a listbox array. In the old days (before v15 r something or the other) I often had array based list boxes which had a bunch of hidden columns to store data that I wanted to do something with when the row was

Get table fragmentation

2017-05-29 Thread Cannon Smith via 4D_Tech
I’m working on some server health reporting. I can get the percentage of table fragmentation using "Get table fragmentation” for each table. I’m not quite sure what to do with it, though. I’d like to get a report when the overall fragmentation reaches some threshold where it might be worth

Web Areas On Form Page >1

2017-05-29 Thread Cannon Smith via 4D_Tech
Is there something different about web areas when they are on a form page > 1? I’ve used lots of web areas before and never run into my current problem and the only thing I can think of that is different is that it is on form page 3. Here is roughly what happens: FORM GOTO PAGE(3) //Set up the

Re: Web Areas On Form Page >1

2017-05-29 Thread Cannon Smith via 4D_Tech
Hi Kirk, It’s interesting that this works correctly for Steve. I’m wondering if it’s because I’ve only tried on the Mac so far and he’s using Windows. Do you know if you’ve tried it on both platforms? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Web Areas On Form Page >1

2017-05-29 Thread Cannon Smith via 4D_Tech
Hi Ingo, This is basically the workaround I’m using right now. Do you know if this is necessary on both Mac and Windows? I haven’t tested Windows yet, but I’m curious. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Include in Log File Scan

2017-05-19 Thread Cannon Smith via 4D_Tech
Hi Arnaud, That works like a charm! Thank you very much. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On May 19, 2017, at 2:44 PM, Arnaud de Montard via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > See here: >

Include in Log File Scan

2017-05-19 Thread Cannon Smith via 4D_Tech
I’d like to programmatically loop through all the tables in a database and see whether they have the “Include in Log File” property set. Does anyone know of a way to do this? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Get table fragmentation

2017-05-30 Thread Cannon Smith via 4D_Tech
Hi Doug, Thanks for the information. I can see that there probably isn’t an easy way to algorithmically have a server tell me when it needs to be compacted. I guess I’ll just have it report information to me, similar to what you are doing, and use my brain. Thanks! -- Cannon.Smith Synergy

Re: Get table fragmentation

2017-05-29 Thread Cannon Smith via 4D_Tech
Hi David, Thanks for chiming in on this. Your examples are exactly the kinds of things I’m checking for. I’m glad I’m not the only one who isn’t sure how to calculate a meaningful fragmentation threshold value. :-) -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada

Re: Web Areas On Form Page >1

2017-05-30 Thread Cannon Smith via 4D_Tech
Thanks, Kirk. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On May 29, 2017, at 7:52 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I know my solution works on both platforms but since I develop on a Mac I

Re: Web Areas On Form Page >1

2017-05-30 Thread Cannon Smith via 4D_Tech
Thanks, Ingo. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On May 29, 2017, at 4:09 PM, Ingo Wolf via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > This is needed and works on both Mac and Windows.

Re: Get table fragmentation

2017-05-30 Thread Cannon Smith via 4D_Tech
Hi Chuck, That’s a good question. I can remember hearing both ways on this at Summits. Definitely less of an issue with SSDs, but I think it still can be in some circumstances? Makes me wonder if there are any tech notes on this. I’ll have to take a look. Thanks. -- Cannon.Smith Synergy Farm

Re: Custom comments: Lots of tips, more wanted!

2017-06-05 Thread Cannon Smith via 4D_Tech
Hi Chip, That brings up a good question. A “static” variable doesn’t seem very much different from a constant on the surface. The only differences I can think of are (1) a constant is compiled into the raw binary and (2) because of that, a constant is the same across all instances of an app,

Re: Custom comments: Lots of tips, more wanted!

2017-06-05 Thread Cannon Smith via 4D_Tech
Not when you have a bunch of Find In Design windows open, several deeply nested Explorer folders expanded, and several non-developer related windows in some state that takes time to reproduce. Relaunching 4D then is a hassle. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada

Re: Custom comments: Lots of tips, more wanted!

2017-06-05 Thread Cannon Smith via 4D_Tech
> Define(Theme;Label;Value) // Value can be Long, String, Real, or Boolean BTW, one nice thing about creating constants directly in code, if we had a 4D command to do it, is that it would be easier to give away code. For example, I’ve started to use constants extensively in the last year or

Re:

2017-06-06 Thread Cannon Smith via 4D_Tech
Never mind. All I had to do was post and then I figured it out. Just a typo. :-) -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 <can...@synergyfarmsolutions.com> > On Jun 6, 2017, at 11:10 AM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> &g

Re: 4D World Tour - Denver

2017-05-04 Thread Cannon Smith via 4D_Tech
Well, I thought I was talking about workers in general, but that was under the assumption that all processes have some kind of execution cycle. Are you saying that a non-UI process (ex. pre-emptive thread) won’t have an execution cycle? In either case, the only place I can think of where this

Re: 4D World Tour - Denver

2017-05-04 Thread Cannon Smith via 4D_Tech
I also just got back from the World Tour. It was great to see some of you again and the information was very helpful. Add had some great demos and JPR shared a lot of great information. One thing JPR helped me understand better is that a worker is basically just a process ready to do things.

Re:

2017-06-06 Thread Cannon Smith via 4D_Tech
Hi Add, I just got done testing compiled and it works there as well. This is in v16.1. I hope it is just a documentation issue as I really want it to work! :-) Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun

4d_tech@lists.4d.com

2017-06-06 Thread Cannon Smith via 4D_Tech
I’m passing a local boolean as the fifth parameter to PROCESS 4D TAGS (well, seventh, actually, but the fifth one that the HTML will see). In the HTML document I’m trying to do something like this:

Re:

2017-06-06 Thread Cannon Smith via 4D_Tech
Thanks, Add. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun 6, 2017, at 11:52 AM, Add Komoncharoensiri via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I confirmed that it works in compiled mode as well. I¹ll report

Re:

2017-06-06 Thread Cannon Smith via 4D_Tech
Hi Add, I have it working now, although I haven’t tried compiled yet. Are you referring to compiled only? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Jun 6, 2017, at 11:19 AM, Add Komoncharoensiri via 4D_Tech

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

Re: Server Process "Frozen"-ish

2017-09-13 Thread Cannon Smith via 4D_Tech
Hi Nigel, Thanks for the idea. I did try that before to see if I could jumpstart the process, but unfortunately it doesn’t work. 4D thinks the process is already there. And it it there. It just doesn’t seem to be executing. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada

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

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

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

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

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

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

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.

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

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

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

Re: Server Process "Frozen"-ish

2017-09-08 Thread Cannon Smith via 4D_Tech
I jumped from v15.x where it was working fine to v16.1. Since you’re at v15 r5, maybe it was something that was introduced in one of the v15 R releases. I haven’t posted anything before because I don’t have much that is concrete, but it has happened enough to know something is going on.

Re: Server Process "Frozen"-ish

2017-09-08 Thread Cannon Smith via 4D_Tech
Okay. I guess it’s nice to know I’m not the only one seeing this. Sorry for you guys, though! :-) -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Sep 8, 2017, at 3:33 PM, BTB-David wrote: > > I would

Re: Server Process "Frozen"-ish

2017-09-08 Thread Cannon Smith via 4D_Tech
Hi David, How about timing? Just once every two-three months per server like us? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Sep 8, 2017, at 3:19 PM, BTB-David via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

TEXT TO DOCUMENT With Special Characters

2017-08-30 Thread Cannon Smith via 4D_Tech
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 folder(Desktop)+"test.txt" TEXT TO DOCUMENT($tFilepath;$tText;UTF8 text without length) When I open the

Re: Server Process "Frozen"-ish

2017-09-11 Thread Cannon Smith via 4D_Tech
Old network layer on the Windows platform. That’s where most of it is happening. There is about 35 servers involved. New network layer on the Mac platform (different product). Just one server—it’s just an in house database. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada

Re: Server Process "Frozen"-ish

2017-09-09 Thread Cannon Smith via 4D_Tech
Hi Milan, Thanks for the idea, but no, I’m not using GRAPH anywhere. It isn’t just one particular process that does this, either. I’ve seen three different processes do it—all three different code paths. One just updates a bunch of records, one checks with a web service for a small piece of

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

Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Cannon Smith via 4D_Tech
Thanks to everyone who responded. My first problem was using the UTF8 text without length constant instead of “UTF-8”. Who knew they would be different! Thanks for pointing that out, Justin. The main reason I didn’t want to have a BOM character was that JSON Parse chokes on such documents.

Re: TEXT TO DOCUMENT With Special Characters

2017-09-01 Thread Cannon Smith via 4D_Tech
I just tried receiving it as an object, but that didn’t work either. It’s okay, I have a workaround created now. Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Aug 31, 2017, at 5:07 PM, Keisuke Miyako via 4D_Tech

Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Cannon Smith via 4D_Tech
s are removed anyway, so I can't see how the existence of a BOM could be > such a big problem. > > 2017/08/31 23:25、Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> のメッセージ: > > The main reason I didn’t want to have a BOM character was

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

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

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

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

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

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

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 <can...@synergyfarmsolutions.com> > On Nov 15, 2017, at 10:52 AM, Cannon Smith via 4D_Tech <4d_tech@li

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

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

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

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 >

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

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

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

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

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

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 <can...@synergyfarmsolutions.com> > On Dec 6, 2017, at 4:17 PM, Cannon Smith via 4D_Tech <4d_tech@

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

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

  1   2   3   >