Re: How to show / hide all on Property List in v16?

2017-08-14 Thread Kirk Brooks via 4D_Tech
Um - does this mean no one else is seeing this behavior? Any thoughts about why it is happening on my machines? On Thu, Aug 10, 2017 at 3:34 PM, Kirk Brooks wrote: > In prior versions when working with a form and the Property List is > displayed I could show/hide all

Re: Get Info from a 4D Client - aka Interclient communication

2017-08-14 Thread Kirk Brooks via 4D_Tech
Randy, You could have a background process on 4D server that periodically pings the web server. Or makes an http call to it. I use a service to monitor server status that relies on this approach. This will also raise a flag if the server is un-available for some reason even if it is running. ​But

How to show / hide all on Property List in v16?

2017-08-10 Thread Kirk Brooks via 4D_Tech
In prior versions when working with a form and the Property List is displayed I could show/hide all panes on the list by holding the Control (not the Command) key and clicking on one of the pane triangles. This doesn't work for me in v16. I've tried on two different Macs, one running Sierra and

Re: SEND / RECEIVE RECORD questions

2017-08-10 Thread Kirk Brooks via 4D_Tech
, > it looks at the header and converts ANSI to Unicode text as necessary. > > > 2017/08/11 5:51、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール: > > And what about changes across 4D versions? Like attempting to RECEIVE > > RECORD i

SEND / RECEIVE RECORD questions

2017-08-10 Thread Kirk Brooks via 4D_Tech
Hi folks, I have never really used SEND RECORD and RECEIVE RECORD. I get the theory of it and the docs explain the mechanism. I'm wondering what happens when you attempt to use them and the structures have changed? Or tables or fields were re-named? And what about changes across 4D versions? Like

Re: Method Header Strategies

2017-08-09 Thread Kirk Brooks via 4D_Tech
I tried using that SQL trick for a while and ultimately abandoned it. I really rely on the headers I create to remind me of what the method does and what the params are at the top. All the long discussion, if any, comes after that. I've always heard it is all stripped out when compiled so I just

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

2017-08-08 Thread Kirk Brooks via 4D_Tech
Rick, You have to use the JSON PARSE ARRAY command. http://doc.4d.com/4Dv15/4D/15.4/JSON-PARSE-ARRAY.301-3274446.en.html I wrote a wrapper for JSON strings to look at the first char and then use the appropriate method. This is one place where NTK is more convenient since it makes that

Re: External data storage question

2017-08-04 Thread Kirk Brooks via 4D_Tech
John, On Fri, Aug 4, 2017 at 1:36 AM, John Baughman via 4D_Tech < 4d_tech@lists.4d.com> wrote: > 3. Click the save button. The table trigger’s on saving new record event > does the following... > a. Saves the picture to my documents folder with WRITE PICTURE FILE > b. Sets the

Re: UUID vs Longint primary key

2017-08-04 Thread Kirk Brooks via 4D_Tech
I'll add my vote to Jody's approach. I prefer UUIDs for primary keys for all the reasons mentioned. Having a longint index field is useful as well but for different reasons as Jody explains. My most common use is to be able to quickly sort a table in the order records were created. And it is

Re: Is there a way to put a separator line in a macro list?

2017-08-02 Thread Kirk Brooks via 4D_Tech
I've never tested it but has never failed to reload for me - or throw an error. On Wed, Aug 2, 2017 at 3:04 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > On more macro question, it seems that the file reloads after editing as > soon as you switch back to 4D. Is this a reliable

Re: Is there a way to put a separator line in a macro list?

2017-08-02 Thread Kirk Brooks via 4D_Tech
On Wed, Aug 2, 2017 at 3:02 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Just learned by example about how cool it is to call a custom method from a > macro. So cool. > > Anyway, now that I've got religion about macros, I'd also like to get > organized. With that in mind, I'd

Re: Restricting a query

2017-07-31 Thread Kirk Brooks via 4D_Tech
Jarosz, For that you'll want to build your own query editor. To achieve that sort of separation of data you'll need to be careful that all queries and selections created by relations are segregated by client. On Mon, Jul 31, 2017 at 11:34 AM, jarosz via 4D_Tech <4d_tech@lists.4d.com> wrote: > I

Re: Recommendations?

2017-07-30 Thread Kirk Brooks via 4D_Tech
immensely! Time to start prototyping. > > Thanks, > > Ken > > On Sun, Jul 30, 2017 at 4:41 PM, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > Hi Ken, > > I've got some experience with this sort of thing and have a number of > > th

Re: Recommendations?

2017-07-30 Thread Kirk Brooks via 4D_Tech
Hi Ken, I've got some experience with this sort of thing and have a number of thoughts and suggestions - in no particular order. Before starting I'm assuming we can be certain all invoices to be processed are already reviewed and OKed by a human somewhere. #1) the PDFs. Potential for huge

Re: "Inspect Element" in 4D web area

2017-07-28 Thread Kirk Brooks via 4D_Tech
Jeff, Web area set preference is what you want - http://doc.4d.com/4Dv16R4/4D/16-R4/WA-SET-PREFERENCE.301-3317027.en.html On Fri, Jul 28, 2017 at 8:12 AM, Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Is there a way to turn off the "Inspect Element" contextual menu item in a > 4D

Re: 4D Forums no longer accessible -- too many redirects

2017-07-27 Thread Kirk Brooks via 4D_Tech
I was just able to get in and 'migrate' my account by following a link to an old post which took me in without trying to login. Then I read the banner and took the suggestion to click the LogIn link which redirected me to the Partner Login screen. After that I was redirected to a simple little

Re: C-objects and memory use

2017-07-26 Thread Kirk Brooks via 4D_Tech
David, First off I hadn't seen this when I posted on the other thread so thanks for giving me something specific. On Wed, Jul 26, 2017 at 10:24 AM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Anyway, to your question. Check out JSON libraries in any other language > you like, you'll

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

2017-07-26 Thread Kirk Brooks via 4D_Tech
David, On Wed, Jul 26, 2017 at 10:14 AM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hey, I'm fine that 4D does whatever it wants in C_OBJECTs however they want > to. Their program, their rules. What I was responding to was Kirk's point > about JSON per se. If you want to use JSON as

Question about building an installer

2017-07-25 Thread Kirk Brooks via 4D_Tech
So I'm getting around to building an installer for 4D on client machines. we're talking windows here. I just want to verify that there's not fancy registry magic that's required if I unzip the 4D app into the programs file. I know 4D has always just configured itself in the past - is that still

Re: C-objects and memory use

2017-07-25 Thread Kirk Brooks via 4D_Tech
On Tue, Jul 25, 2017 at 4:54 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hmmm. Well, 4D's tools for manipulating JSON are sub-standard, if your goal > is to parse/produce JSON freely. In this respect, the XML tools (external > libraries built into 4D) are far more standard and

Re: C-objects and memory use

2017-07-25 Thread Kirk Brooks via 4D_Tech
On Tue, Jul 25, 2017 at 4:02 PM, Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > So why not BLOBs? Why not pictures, or text variables? Why does C_OBJECT > flaunt the limited scoping abilities we have in 4D? ​ I think it has to do with the c-object being brought about ​from figuring

Listbox entry gotcha

2017-07-25 Thread Kirk Brooks via 4D_Tech
Open a form with a listbox. I am looking at an array based listbox, don't know if this is true for selection based but I suspect so. Make an edit in a cell but DO NOT press tab, or enter or click anywhere else in the form. Now add something to the listbox via drag and drop (or perhaps some other

v13 Execute Immediate causing 'Remote SQL server' error

2017-07-25 Thread Kirk Brooks via 4D_Tech
Hi folks, A v13 server db is throwing a "Remote SQL Server not available" error when running this code: __statement:="SELECT _SuperUser, "+$field+" FROM Agents WHERE _Agent_ID = "+String($agent_id)+" INTO :__superUser, :__Access" Begin SQL EXECUTE IMMEDIATE :__statement; End SQL

Re: C-objects and memory use

2017-07-25 Thread Kirk Brooks via 4D_Tech
Jeff, On Tue, Jul 25, 2017 at 8:53 AM, Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > You can start in, say, method A with a line like > > $obj:=[Table]objectField > > ... and pass $obj through any number of methods as a local variable, or a > pointer, or a process object variable.

Re: C-objects and memory use

2017-07-25 Thread Kirk Brooks via 4D_Tech
Hi Peter, Great reply. You helped my understanding of the way ref-counting functions with respect to c-objects a lot. The concept of the memory heap has only mattered to me peripherally and so ref-counting was a similarly hazy idea. The result of mainly dealing in 4GL languages. Anyway now I get

C-objects and memory use

2017-07-24 Thread Kirk Brooks via 4D_Tech
I want to make sure my understanding about how c-objects are handled in 4D memory. Mainly because it seems this understanding is cobbled together from a number of different sources few of which I can easily find again. So... 1) c-objects are created within the 3 4D scopes: IP, process or local.

Re: Need help identifying a crash source

2017-07-22 Thread Kirk Brooks via 4D_Tech
Sannyasin, I took Bruno's suggestion and deleted the composite index for these two fields. After that I was still getting a crash but it had moved further down the execution chain. So I just deleted all the composite indexes. That seemed to fix the problem. On Sat, Jul 22, 2017 at 2:20 PM,

Re: Need help identifying a crash source

2017-07-22 Thread Kirk Brooks via 4D_Tech
Bruno, That seems to be the issue. I say 'seems' because I could run the same method with the same parameters in a different context and not have a problem. And like I said this method is called very frequently. None the less when I took out the composite index the problem shifted further down the

Re: Need help identifying a crash source

2017-07-22 Thread Kirk Brooks via 4D_Tech
Oh yeah, the composite index thing. I'd forgotten that one and this is 15.4. Good suggestion, I'll have to look at that. On Sat, Jul 22, 2017 at 1:23 AM, Bruno LEGAY via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Kirk, > > We recently encountered a crash on a QUERY after adding a composite >

Need help identifying a crash source

2017-07-21 Thread Kirk Brooks via 4D_Tech
I need some ideas on a problem. I'm getting a crash when a method runs. The method itself isn't the issue, I think, because it gets called literally hundreds of times in a given session. Here it is: C_TEXT($1;$2;$dir;$key) $key:=$1 $dir:="" If (Count parameters=2) $dir:=$2 End if

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Kirk Brooks via 4D_Tech
Nigel, Nice post. I very much agree with pretty much all your points. A few things I'll add: Functions: yes! A lot of IP vars I see in old code are used to make values available that used to take measurable time to derive. Lots of them can be replaced with a short function to just go get the

Re: [off] Age bracket of this group (USA) :)

2017-07-21 Thread Kirk Brooks via 4D_Tech
Some friends saw them here recently and said the show was very good. The album they are supporting is on iTunes - you can stream it with a subscription. Esp. interesting as I'm reading Weigel's book, "the Show That Never Ends." Cranky, perfectionistic old bastard Fripp - would fit right in here.

Re: Collections in v16R4

2017-07-19 Thread Kirk Brooks via 4D_Tech
Yea! Does SDI provide the same flexibility we have on Macs when working with multiple monitors? It's a real pain getting multiple monitors configured to "see" the MDI on more than one at a time. On Wed, Jul 19, 2017 at 2:03 AM, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > you can

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

2017-07-14 Thread Kirk Brooks via 4D_Tech
Julio, I don't think 'variable structure' is necessarily the defining element. It's certainly good for that but now that we can search on these fields they're also good for situations where you want to allow each record to have some large number of fields most of which won't ever be used but need

Re: ​Someone help me out, how do you get good information out of 4D

2017-07-11 Thread Kirk Brooks via 4D_Tech
David, Interesting initial post - like marmalade on a flakey croissant, a little sweet and a little bitter. I've hammered a similar nail before: what is 4D's vision of itself? What is the target market? Why does such a fabulous product remain so unknown? Why isn't there better documentation? Let's

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Kirk Brooks via 4D_Tech
Hi Ben, On Fri, Jul 7, 2017 at 5:15 PM, Ben Kershaw via 4D_Tech < 4d_tech@lists.4d.com> wrote: > When a method with this property checked is executed, it runs in the > context of the servers “twin” process (which isn’t really a twin, since it > doesn’t really share anything with the client

Any issues with running v13.6 server and 13.5 clients?

2017-07-07 Thread Kirk Brooks via 4D_Tech
Just wondering. Thanks -- Kirk Brooks San Francisco, CA === *The only thing necessary for the triumph of evil is for good men to do nothing.* *- Edmund Burke* ** 4D Internet Users Group (4D iNUG) FAQ:

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Kirk Brooks via 4D_Tech
David, I was hoping you might weigh in here. Yeah, so I'm talking about a method with the Execute on server attribute (or property - whatever) checked. So the situation is a client process is churning away and passes some arrays off to the EOS method for processing on the server (looking things

Re: What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Kirk Brooks via 4D_Tech
Jody, Right, but what I'm seeing is a client side process which has an error handler installed. Running a method with EOS an error is blocking the server with the 4D native error handler. Even though the server has an error handler installed. This is following the what's in the docs: "ON ERR

What exactly is the scope of the On err call between 4D server & Client?

2017-07-07 Thread Kirk Brooks via 4D_Tech
I think I know the answer to this but think I'll ask anyway. When my server starts up in installs an error handler, ON ERR CALL("err_log_only"). As the name implies it simply logs errors and keeps churning. It doesn't seem to be called when a method called by Execute on server is running. At

Re: Triggers and modified by fields in roll-your-own user

2017-07-05 Thread Kirk Brooks via 4D_Tech
Chuck, Always an option. But managing IP arrays require local semaphores to manage read/write. On a local machine that's not too bad but on a busy server it could get to be a noticeable issue where you could conceivably have dozens if not hundreds of records being affected in a very close period

Re: Triggers and modified by fields in roll-your-own user schemes

2017-07-03 Thread Kirk Brooks via 4D_Tech
Joaquin, Great suggestion. I'm not going to use it in this case because we don't currently have a session tracking system. But the tip about On server open connection is great. I missed that it fires each time a new process begins. I thought it only ran when initially connecting to the server. I

Re: Is there a JSON handling component for v13?

2017-07-02 Thread Kirk Brooks via 4D_Tech
Michael, The best I've found is the JSON functionality in Rob Laveaux's NTK plug in: http://www.pluggers.nl/product/ntk-plugin/ Miyako also has a plugin on github: https://github.com/miyako/4d-plugin-json I've used them both. Miyako's is fully capable and if you can't justify the cost of NTK you

Re: Nested transactions - most appreciated feature

2017-07-02 Thread Kirk Brooks via 4D_Tech
Alan, I have a slightly different take from Peter's - consider attempting to make changes in a database with many users who may or may not be 'touching' or accessing data involved in the chain of updating. Inventory updates are a classic example. Pricing can be another. Ideally these sorts of

Re: Nested transactions - most appreciated feature

2017-07-01 Thread Kirk Brooks via 4D_Tech
Peter, For me it's just been the obvious ones - be sure to close each one you open and remember that during development it's easy to cancel out of one. I find writing methods that require transactions should always start & close the transaction inside that method. Consequently I make most of

Re: Triggers and modified by fields in roll-your-own user schemes

2017-06-30 Thread Kirk Brooks via 4D_Tech
Arnaud, Yeah, I considered that direction too. I ruled it out because it's introducing a lot of moving parts for the sake of being able to run some code in a trigger. Since triggers aren't used so far that would be a pretty big change. Making the modified field updates into a separate method

Re: Triggers and modified by fields in roll-your-own user schemes

2017-06-30 Thread Kirk Brooks via 4D_Tech
Alan, Not a bad approach. In this case the MODIFY RECORD commands appear in an otherwise generic EDIT RECORD method so there are numerous forms involved - and they are constructed such that there are multiple ways the record may be caused to be saved. Theoretically they should all funnel back to

Triggers and modified by fields in roll-your-own user schemes

2017-06-30 Thread Kirk Brooks via 4D_Tech
Hi folks, I'm working on an old db. Like begun in v3/pre 4D server old. It has its own user scheme built in, no 4D users at all (or that matter here). The issue is recognizing and tracking modified by/when data. Typically I'd use a trigger for this but the db runs on 4D server and triggers, as

Re: An efficient printing approach...

2017-06-30 Thread Kirk Brooks via 4D_Tech
Robert, Is the intent to replicate the look and format of the document or simply report the data? To replicate the look of the form will take longer (for conversation I'd say at least 2 - 3 times longer). As for assembling the data that will depend on whether it's readily available already or not.

Re: Set Print Option clarity needed

2017-06-30 Thread Kirk Brooks via 4D_Tech
This is also a confounding issue if you even tried to use "printing" on 4D server to create PDFs. On Thu, Jun 29, 2017 at 10:26 PM, Keith Goebel via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > Sounds like I have just been incredibly lucky so far that print settings > have not been messed up by a

Re: How to close a modal window if user clicks outside of it?

2017-06-29 Thread Kirk Brooks via 4D_Tech
Keith, You and Chuck put me on the right track - ie. RTFM. What I want is specifically what a modal is trying to prevent. It looks like a popup window (#32) is exactly what I want because, well, that's exactly what I'm doing... - The window is automatically closed and the "cancel" event is

Re: How to close a modal window if user clicks outside of it?

2017-06-29 Thread Kirk Brooks via 4D_Tech
Chuck, I think you are right. On Thu, Jun 29, 2017 at 11:04 AM, Charles Miller via 4D_Tech < 4d_tech@lists.4d.com> wrote: > On Thu, Jun 29, 2017 at 2:02 PM, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > > I open a modal dialog wit

How to close a modal window if user clicks outside of it?

2017-06-29 Thread Kirk Brooks via 4D_Tech
Hi folks, I open a modal dialog within another form. I want to close this if the user moused to or clicks on something outside the form. Since I'm working with a modal dialog it just beeps. I tried using the On mouse leaving form event. It fires when the mouse leaves any object on the form but

Re: Automatic type-ahead on single-column listbox?

2017-06-28 Thread Kirk Brooks via 4D_Tech
David, Oh, that. Makes me realize how fast you must type to get more than a couple of letters deep. Not really great for lists with a few thousand rows I don't think. Is that actually type-ahead or simply setting the scroll on the edited text with a wildcard? On Wed, Jun 28, 2017 at 5:53 AM,

Re: Automatic type-ahead on single-column listbox?

2017-06-28 Thread Kirk Brooks via 4D_Tech
David, On Wed, Jun 28, 2017 at 3:04 AM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > It does if it’s only a single column. You don’t use a listbox, you use a > hierarchical list. > > ​... > Hlists don't have all of the nice style > ​ ​ > features of a listbox, but they do have

Re: Contextual Cut, Copy & Paste...?

2017-06-26 Thread Kirk Brooks via 4D_Tech
Robert, I second Tim's approach - just build your own menu based on the On clicked event with Contextual Click. I don't think a user could tell the difference between it being a '4D menu' and an 'OS menu'. I'm not even sure there is any. The only thing I'd do differently is not bother with an IP

Re: Is there a way to get a list of set semaphores?

2017-06-26 Thread Kirk Brooks via 4D_Tech
Okey dokey - here's the list to my feature request: http://forums.4d.fr/Post//19605563/1/ On Mon, Jun 26, 2017 at 11:23 AM, Kirk Brooks wrote: > Just wondering. > > -- > Kirk Brooks > San Francisco, CA > === > > *The only thing necessary for the

Is there a way to get a list of set semaphores?

2017-06-26 Thread Kirk Brooks via 4D_Tech
Just wondering. -- Kirk Brooks San Francisco, CA === *The only thing necessary for the triumph of evil is for good men to do nothing.* *- Edmund Burke* ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Array Summary Sum Utility Method

2017-06-22 Thread Kirk Brooks via 4D_Tech
gt; Sannyasin Siddhanathaswami > > On Jun 20, 2017, 4:33 PM -1000, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com>, wrote: > 1) make an object array of each record. -- Kirk Brooks San Francisco, CA === *The only thing necessary for the triumph of evil

Re: Array Summary Sum Utility Method

2017-06-20 Thread Kirk Brooks via 4D_Tech
Sannyasin, The simple answer to the situation you describe is to loop through the records and build the arrays. I seem to recall you're working with v15+, so with that in mind here's how I'm handling these sorts of situations these days. 1) make an object array of each record. Depending on your

About omitted params in 4D commands...

2017-06-19 Thread Kirk Brooks via 4D_Tech
I was just reading a KB tech tip on OBJECT DUPLICATE. I started using OD in v13 and really hadn't looked at the docs for a while. The tech tip is showing how to control the level (or z-axis) of a duplicated object. Handy, but not my point here. The thing I was how

Re: Modal dialog dilemma

2017-06-18 Thread Kirk Brooks via 4D_Tech
Jody, ​Nice post. I've also implemented several of these ​ideas but you're really going more deeply than I have. My motivation didn't have anything to do with bleed through. They came about as I was working more and more with objects and dynamic variables. On Sat, Jun 17, 2017 at 2:35 PM, Jody

Re: What are some causes of Plugin and Component folder synchronization errors?

2017-06-15 Thread Kirk Brooks via 4D_Tech
d to > that IP and nothing would happen! > > Good luck with network… > > Nigel Greenlee > > > > On 15 Jun 2017, at 16:29, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > > Nigel, > > I've narrowed it down to some issue with the network

Re: What are some causes of Plugin and Component folder synchronization errors?

2017-06-15 Thread Kirk Brooks via 4D_Tech
Nigel, I've narrowed it down to some issue with the network. There isn't anything particularly huge in the plugin or network folders. But watching the actual data transfer (that is, watching the graph on Little Snitch) I see that the download just stops and then 4D times out and puts up the

Re: .ExternalData folder outside of the database folder?

2017-06-12 Thread Kirk Brooks via 4D_Tech
John, I was initially excited about this external storage option for the same reasons: lots and lots of image files I needed to store and index and maybe have the option to edit via external programs (Photoshop or Pixels). This is not the real intent of the design though. I think the goal for

Re: Desktop DBMS engines

2017-06-11 Thread Kirk Brooks via 4D_Tech
David, Have you had a look at this site: https://db-engines.com/en/ranking/relational+dbms On Sun, Jun 11, 2017 at 11:37 AM, David Eddy via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Folks - > > Can anyone extend this list with additional desktop DBMS engines they’ve > encountered… known to be

Vote for improving the folder management in Home on Explorer

2017-06-07 Thread Kirk Brooks via 4D_Tech
Hi folks, I just posted a featReq (I'm calling them that now) on the forums for improving the folder management in Home. Take a look and vote it up. http://forums.4d.fr/Post//19529057/1/ -- Kirk Brooks San Francisco, CA === *The only thing necessary for the triumph of evil

Re: Dynamic Process Variables???

2017-06-06 Thread Kirk Brooks via 4D_Tech
Neil, That's pretty cool. It never would have occurred to me to use Get pointer that way. I've only used dynamic vars on forms. 4D's ability to handle them is pretty good as you discovered. As far as how long we've been able to do that I think it's v13 at least. It's been hard for a lot of us to

Re: How do you force resources to download these days?

2017-06-04 Thread Kirk Brooks via 4D_Tech
David, I tried using this most recently when I was building some html templates for display in web areas. I found it problematic but couldn't really understand why. Simple setup - 4D server running on one machine, update the resources folder with things like html pages, css, js, etc. On dev

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

2017-06-04 Thread Kirk Brooks via 4D_Tech
David, On Sat, Jun 3, 2017 at 11:40 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > On Sun, Jun 4, 2017 at 2:40 PM, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > You know what else would be good is if constants weren't stored in > &g

Re: v16 Component Compiler error

2017-06-04 Thread Kirk Brooks via 4D_Tech
Nigel, On Sun, Jun 4, 2017 at 6:15 AM, Nigel Greenlee via 4D_Tech < 4d_tech@lists.4d.com> wrote: > ​... > so it seems someone at 4D needs to pop in to the pop plugs and fix some > things. > ​Nice. ​But seriously - why would you ​build an app with 4DPOP in it? -- Kirk Brooks San Francisco, CA

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

2017-06-03 Thread Kirk Brooks via 4D_Tech
David, On Sat, Jun 3, 2017 at 10:30 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > * Constants for strings as they make @$%@#$%@#% stupid errors from typos a > thing of the past, well, at least where they use them. This is super > helpful when working with property names in

Re: Empty 2D arrays - how to determine type

2017-06-01 Thread Kirk Brooks via 4D_Tech
Chip, I believe you can use the Type function on the zero array. Given ARRAY LONGINT($aArray;0;0) you could call: Type($array{0}) ​and it will return Array longint. ​ On Thu, Jun 1, 2017 at 3:14 PM, Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I need to determine the type of a 2D

Re: Procedural Splitter Movement

2017-05-30 Thread Kirk Brooks via 4D_Tech
Wait a minute... On Tue, May 30, 2017 at 10:55 PM, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > say you have a splitter (which has a numeric data source) > ​It does?​ assigning a value like > Splitter:=Splitter-10 > will move it to the left (or up) and other objects will follow

Re: Procedural Splitter Movement

2017-05-30 Thread Kirk Brooks via 4D_Tech
​Steve, I don't think so - at least I haven't been able to see that happen. Whenever I do that I also resize the affected objects. ​ On Tue, May 30, 2017 at 8:49 AM, Stephen J. Orth via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Either I’m having a brain-fart, or just not remembering correctly on

Re: Web Areas On Form Page >1

2017-05-29 Thread Kirk Brooks via 4D_Tech
Cannon, I know my solution works on both platforms but since I develop on a Mac I don't know if it even showed up on the Windows side. I seem to recall coming to the same conclusion Ingo mentioned - that the web area isn't instantiated until it's actually displayed. This is all in v15 , BTW. And

Re: Please give us a split-pane in the Method Editor

2017-05-29 Thread Kirk Brooks via 4D_Tech
You know if every method really on did one thing, and only had a few params that never changed and ... well then the split screen really wouldn't be necessary. But here are the places I really miss it. 1) when I'm passing parameters to a method in a c-obj. After I'm more than about 15 lines down

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

2017-05-29 Thread Kirk Brooks via 4D_Tech
On Mon, May 29, 2017 at 3:16 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > On Mon, May 29, 2017 at 11:11 PM, Tim Nevels via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > I miss the split pane feature too. So useful in long methods. Wish they > > would bring it back. > > > I also

Re: Web Areas On Form Page >1

2017-05-29 Thread Kirk Brooks via 4D_Tech
Cannon, I had the same problem. I just looked to see how I resolved it. Turns out I just brute-forced the matter and put that second 'page' onto a separate form and open it into the window. Looks & behaves just like 'page 2' but it's not. I'm actually using multiple pages more conservatively -

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

2017-05-28 Thread Kirk Brooks via 4D_Tech
Cannon, Yes! Big plus 1 on this. I discovered it last year. It's really a huge boon to using array based listboxes especially if you've also developed a schema for representing the data objects the listbox displays. Like you say in the past if I wanted to allow a user to do data entry that was

Re: v13 crashes compiled and freezes

2017-05-23 Thread Kirk Brooks via 4D_Tech
Lutz, Agreed. This is a db that started back in the '90s and has an extremely complicated scheme of arrays to handle the menus. Then over the years other devs needed to change or add some functionality and, I think, rather than try to unravel what was existing added on more menu management for

Re: ImageMagick

2017-05-22 Thread Kirk Brooks via 4D_Tech
Good catch Tim. On Mon, May 22, 2017 at 1:57 PM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> wrote: > In case anyone is using ImageMagick these days - something to be aware of. > I don't use it but I've seen it discussed on the NUG. > > https://arstechnica.com/security/2017/05/yahoobleed- >

Re: v13 crashes compiled and freezes

2017-05-22 Thread Kirk Brooks via 4D_Tech
OK, I resolved the freezing part - turns out there was an event handler installed that was filtering keystrokes. On Mon, May 22, 2017 at 8:19 AM, Kirk Brooks wrote: > > 1) why does 4D freeze completely? I've never seen this before. The error > dialog is shown but 4D is

v13 crashes compiled and freezes

2017-05-22 Thread Kirk Brooks via 4D_Tech
This is my weekend for perplexing 4D issues. v13.6: crashes and freezes compiled but not a hint of a problem running interpreted. The exact point of the crash is not even clear. Here is the snippet of code where the crash is reported: If (<>vt_CurrProc#ProcType ) <>vt_CurrProc:=ProcType If

Re: Corrupted index that won't fix

2017-05-21 Thread Kirk Brooks via 4D_Tech
Tim and all, Good suggestions. I'm working on something else at the moment and actually try any of these yet. I did run the standard repair on the data as well. The issues seems to have to do with the composite index made up of the record id and table name. As I think about it I decided using

Corrupted index that won't fix

2017-05-20 Thread Kirk Brooks via 4D_Tech
I verified a data file and MSC reported the data were fine but the indexes had some errors. No problem, I think, I'll just trash the index files, restart and let them rebuild. After doing this twice the indexes are still showing as : Cluster Index 167 on DOX_ATTACH._data , DOX_ATTACH.record_id

Re: Exploring CALL WORKER vs New process

2017-05-20 Thread Kirk Brooks via 4D_Tech
Tim, I'm glad you reminded me of this one. I don't have problems with sending emails so much but the process for downloading them caused problems. I actually split that process off into a separate database - the downloads get processed into a watched folder. One of my first thoughts was to split

Re: Tags in record on 4d.

2017-05-19 Thread Kirk Brooks via 4D_Tech
I'll just add you don't actually need to put the keywords in a separate table anymore. You can add a text field to your table. Populate the field with the keywords (or tags) using a space as the delimiter. Then set that field to have a keyword index and query it using the keyword operator. I've

Re: How to trap a form save keystroke in an object method ?

2017-05-18 Thread Kirk Brooks via 4D_Tech
Peter, How about adding a hidden button to trap for Enter key strokes? I run all my active objects into a single project method (the 'form controller' I like to talk about). So I'd have that button call the form controller and handle the save code the same way the normal save event would process.

Re: Exploring CALL WORKER vs New process

2017-05-18 Thread Kirk Brooks via 4D_Tech
Keith, First off I'm not clear what the intent of wOpen is - are we modifying the record or simply displaying it? If it's only being displayed you don't need CALL WORKER to change it - any process that can load it can change it. The issue becomes notifying the display process to refresh itself -

Re: Can't delete methods

2017-05-17 Thread Kirk Brooks via 4D_Tech
@lists.4d.com > wrote: > I'm just clicking the minus sign below the project methods list. Is there > another way? > > On Wed, May 17, 2017 at 9:39 AM, Doug Hall <doughall...@gmail.com> wrote: > > > Nothing but a system alert sound. > > > > On Wed, May 17,

Re: Can't delete methods

2017-05-17 Thread Kirk Brooks via 4D_Tech
Doug, How are you trying to delete them and what happens when you do? On Wed, May 17, 2017 at 7:07 AM, Doug Hall via 4D_Tech <4d_tech@lists.4d.com > wrote: > I have a few methods that I can't delete. I looked in the method properties > and can find nothing out of the ordinary, which might be

Re: Schemes for record level access control

2017-05-15 Thread Kirk Brooks via 4D_Tech
David, Thanks for throwing this in. It really does make more sense to use a longint even if it is (currently) only a binary choice. On Fri, May 12, 2017 at 6:03 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Just as a simple point, it's nice to have access values as a number: > > 1

Re: Schemes for record level access control

2017-05-15 Thread Kirk Brooks via 4D_Tech
g my initial take. On Fri, May 12, 2017 at 5:51 PM, Jörg Knebel via 4D_Tech < 4d_tech@lists.4d.com> wrote: > G’day Kirk, > > > On 13 May 2017, at 05:42 AEST, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > I'd like to hear from some of

Re: Schemes for record level access control

2017-05-12 Thread Kirk Brooks via 4D_Tech
Right - so the ultimate permission is the most permissive of all available. On Fri, May 12, 2017 at 4:56 PM, Alan Chan via 4D_Tech <4d_tech@lists.4d.com > wrote: > I assume a member might belongs to multiple teams but will a member > belongs to multiple clubs? > > Alan Chan > > 4D iNug Technical

Re: Schemes for record level access control

2017-05-12 Thread Kirk Brooks via 4D_Tech
Hi Alan, Those are the go-to solutions. In my case we aren't using the 4D password system so I can't rely on that. Plus I need actual record level restriction. So to follow your example, I may want a Team to be able to see themselves and other teams in their Club (just making this up) but not

Schemes for record level access control

2017-05-12 Thread Kirk Brooks via 4D_Tech
Hi folks, I'd like to hear from some of you who have implemented systems that allow for record-level access control in a 4D database. This is the sort of thing where we want to prevent unauthorized users from seeing or inferring the 'restricted' records. Theoretically it's pretty easy - include a

Re: Problems with LISTBOX SET FOOTER CALCULATION and dynamic columns (v15)

2017-05-12 Thread Kirk Brooks via 4D_Tech
Hey Lahav, You are correct - thanks for saying something. It prompted me to go look at my actual code which is pretty similar: get the current doc values obj $obj:=JSON Parse("{}") $obj:=IG_get_curDocValues ($igPtr) For ($i;1;Size of array(aIG_ftrVars)) OBJECT SET RGB

Re: Problems with LISTBOX SET FOOTER CALCULATION and dynamic columns (v15)

2017-05-11 Thread Kirk Brooks via 4D_Tech
Hi Olivier, It's so interesting when someone follows up on a post from a year and a half ago. I haven't used this code in v16 yet. But in general what I've found most reliable when fiddling with dynamic variables and listboxes is to let 4D tell you what it did by using the LISTBOX GET ARRAYS

[OFF] I need an OAuth tutor

2017-05-11 Thread Kirk Brooks via 4D_Tech
I have a project that requires having 4D connect via OAuth. I know this totally doable but I just keep getting stuck. So, I'd like to hire someone who knows this stuff to tutor me for an hour or two. I'm thinking we do a Teamviewer session or similar. Contact me off line if you're interested.

<    1   2   3   4   5   6   7   >