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 a

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 machine

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 C_OBJE

Re: v16 Component Compiler error

2017-06-03 Thread Kirk Brooks via 4D_Tech
Bob, I'm betting that one of the components has the offending culprit in it - either a variable name or method name. And the method may be invisible which makes it even more challenging to identify. On Sat, Jun 3, 2017 at 8:41 PM, Bob Finnerty via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Well, ye

Re: v16 Component Compiler error

2017-06-03 Thread Kirk Brooks via 4D_Tech
Bob, Does the component you are compiling call any other components? On Sat, Jun 3, 2017 at 12:31 PM, Bob Finnerty via 4D_Tech < 4d_tech@lists.4d.com> wrote: > So, trying to compile a component in v16 and getting repeated error: > > 0: A method and a variable have the same name: ? > > I generally

Re: Exodus utilities live?

2017-06-03 Thread Kirk Brooks via 4D_Tech
I suggest github as well. Like Lee said you can look at Miyako's account and see how to do it. On Sat, Jun 3, 2017 at 10:08 AM, Bob Finnerty via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi David, > > Thanks for asking about my old components - good timing. All my components > (including ones neve

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 t

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 I

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 miss

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

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 goi

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 the

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

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

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 tabl

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

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 th

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 us

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
g Hall via 4D_Tech <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 wrote: > > > Nothing but a system alert sound. > > > > On Wed

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 prev

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
them. Your experience is confirming 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&#

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
oups they were in. > We used the record keys (Primary Key) to search for each record to see if > the current user was restricted in regard to the record. > > Of course this could be much easier if there are less possibilities. > > Jody > > > > On 05/12/2017, at 1:42

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 teams

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-11 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 COLORS(aIG_ftrVars{

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 comma

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

Re: Button Variables

2017-05-11 Thread Kirk Brooks via 4D_Tech
Peter, A couple of thoughts. On Thu, May 11, 2017 at 11:05 AM, Peter Mew via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi > I have a form with 4 pages. > each page has a button to create a new record. > Each button also does some slightly different stuff depending which page > its on. > Which is w

Re: Bar code

2017-05-03 Thread Kirk Brooks via 4D_Tech
Ferdinando, This looks interesting: https://serratus.github.io/quaggaJS/ Barcode reading with javascript and the camera on your phone or laptop. I downloaded it and was able to read barcodes with my laptop camera into input fields on a web page in the demo. Haven't played with putting it into a

Re: Webserver and semi-static pages

2017-05-02 Thread Kirk Brooks via 4D_Tech
On Mon, May 1, 2017 at 9:34 PM, Kirk Brooks wrote: > Now the issue seems to be you can't open a web area to a link from the web > server of the 4D server. I knew you couldn't (or shouldn't) try that with a > web area on the same machine as the web server but I didn't expect it would > be an issue

Re: Is 'DB4D Index builder' process is running on server

2017-05-02 Thread Kirk Brooks via 4D_Tech
Allan, I haven't tried to get that process name specifically but you can make a function that uses Count tasks to loop through all processes and return $0=true if it's there. If you set the Execute on server attribute (property?) for the method then you're looking at the processes on the server. O

Re: Webserver and semi-static pages

2017-05-01 Thread Kirk Brooks via 4D_Tech
David, I think you're right. I've been playing with this in my sandbox of 2 computers and a 4D server. Even with an ABORT command the web process seems to die but then, Hydra like, spring back into existence. What I'm trying to do is implement a new chat module I've made. Since the actual chat mec

Webserver and semi-static pages

2017-05-01 Thread Kirk Brooks via 4D_Tech
Hi folks, So, let's imagine a web page being served by 4D web server. The page is a .shtml template that will get populated with some values parsed out of the query string that will be the URL. Parse the query string and serve up the page. This page will refer to some .css and .js files also locat

Selection to JSON and Record Number

2017-05-01 Thread Kirk Brooks via 4D_Tech
Is there a way to include Record number as part of a c-obj template to use with Selection to JSON? -- Kirk Brooks San Francisco, CA === *The only thing necessary for the triumph of evil is for good men to do nothing.* *- Edmund Burke*

Re: Need some guidance on testing LDAP

2017-05-01 Thread Kirk Brooks via 4D_Tech
Thanks Milan. This LDAP stuff is really a lot of fun... On Sat, Apr 29, 2017 at 2:56 PM, Milan Adamov via 4D_Tech < 4d_tech@lists.4d.com> wrote: > http://directory.apache.org/ > > Regards, > > Milan > > Sent from my iPad > > > On Apr 29, 2017, at 21:22, Ki

Need some guidance on testing LDAP

2017-04-29 Thread Kirk Brooks via 4D_Tech
I have no real experience with LDAP and a need to test some existing code to see if it still works. Can someone give me a suggestion of a test node or other way to go about testing this stuff in one doesn't have an actual LDAP server to log onto? Thanks -- Kirk Brooks San Francisco, CA =

Re: compnents - host table access

2017-04-28 Thread Kirk Brooks via 4D_Tech
Chip, No. But you can pass a pointer to a table and within the component build a pointer array of the fields. On Fri, Apr 28, 2017 at 11:22 AM, Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Is it possible to get access to host tables without a pointer to the > table? > > One of the me

Re: How to tell compiler not to duplicate declarations in "Generate Typing"

2017-04-28 Thread Kirk Brooks via 4D_Tech
David, I just posted it in the forums. I agree there are other things that are probably more important but this seems like something that could be set as an option pretty easily. Topic : *Compiler - don't duplicate declarations* http://forums.4d.fr/Post//19356198/1/ On Thu, Apr 27, 2017 at 7:5

Re: How to tell compiler not to duplicate declarations in "Generate Typing"

2017-04-27 Thread Kirk Brooks via 4D_Tech
Tim, No, it's not a performance issue. It's more an issue of code maintainability I suppose. For example I just wrote a new chat module (PubNub people - it's cool). I developed it in a separate db to work out the big stuff. In the course of doing that I created a compiler method with the important

Re: Specifying a type with OB GET

2017-04-27 Thread Kirk Brooks via 4D_Tech
Jeff, I usually specify the type as well. But, and I haven't rigourously tested this, I think you're more likely to get those errors with a c-obj parsed from a string. I think when 4D encodes it there's no ambiguity but when parsing a string since JSON isn't type strictly it can happen. On Thu, Ap

Re: How to tell compiler not to duplicate declarations in "Generate Typing"

2017-04-27 Thread Kirk Brooks via 4D_Tech
Chuck, On Thu, Apr 27, 2017 at 2:29 PM, Charles Miller via 4D_Tech < 4d_tech@lists.4d.com> wrote: > It never worked that way. I agree this would be a good thing but I always > want to type variables so never run your option > ​I want to type the variables too. But I'm not perfect. And I've seen

Re: How to tell compiler not to duplicate declarations in "Generate Typing"

2017-04-27 Thread Kirk Brooks via 4D_Tech
Hey Tim, On Thu, Apr 27, 2017 at 10:43 AM, Timothy Penner via 4D_Tech < 4d_tech@lists.4d.com> wrote: > So my understanding is, if you have written your own methods that begin > with compiler_ that are not specifically defined in the Database Settings > then use the Generate Typing button; then yo

How to tell compiler not to duplicate declarations in "Generate Typing"

2017-04-27 Thread Kirk Brooks via 4D_Tech
I prefer to run the compiler with the "all variables are typed" option. I also run the "Generate Typing" command before compiling. IN a lot fo projects I don't bother to separate out the typing commands from the ones 4D generates because it's just not important to me but that's another thread. On

Re: Diff 4D Write Documents

2017-04-26 Thread Kirk Brooks via 4D_Tech
Doug, ​Yeah that's a completely different universe from ours. At that point it makes sense to pay someone ​to go over the contract and synch the database to it. Let me know what your final solution to this is. It's an interesting problem. On Wed, Apr 26, 2017 at 1:54 PM, Douglas von Roeder via 4

Re: GET FIELD TITLES

2017-04-26 Thread Kirk Brooks via 4D_Tech
Paul, As a guess - if you've modified some field names it only returns the modified field names for the 'session'. If you do a restart what happens? On Wed, Apr 26, 2017 at 10:53 AM, Paul Chernoff via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I apologize if I have posted this question before but I

Re: Diff 4D Write Documents

2017-04-25 Thread Kirk Brooks via 4D_Tech
Doug, On Tue, Apr 25, 2017 at 3:50 PM, Douglas von Roeder via 4D_Tech < 4d_tech@lists.4d.com> wrote: > ​... > The issue that my client is dealing with is that some of the > sales reps have futzed with some of the quote documents. By adding this > feature the sales reps will know that their 4D Wri

Re: Diff 4D Write Documents

2017-04-25 Thread Kirk Brooks via 4D_Tech
Doug, On Tue, Apr 25, 2017 at 1:32 PM, Douglas von Roeder via 4D_Tech < 4d_tech@lists.4d.com> wrote: > In addition to the hash, my thinking is to store changed documents as > versions of the original ("reference") document instead overwriting the > original. > ​If the formatting isn't important (

Re: Diff 4D Write Documents

2017-04-25 Thread Kirk Brooks via 4D_Tech
fing can be done by the server machine, perhaps using LEP and on an > as-needed basis. > > > > -- > Douglas von Roeder > 949-336-2902 > > On Tue, Apr 25, 2017 at 10:39 AM, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > Doug, > > Is

Re: Diff 4D Write Documents

2017-04-25 Thread Kirk Brooks via 4D_Tech
Doug, Is the document stored in a record or just loose in a folder? On Mon, Apr 24, 2017 at 2:20 PM, Douglas von Roeder via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I've been asked to update the code in an Audit Trail system so it will work > with 4D Write documents. Rather than simply tracking t

Re: Why does 4D have uppercase UUIDs?

2017-04-24 Thread Kirk Brooks via 4D_Tech
Tim, On Mon, Apr 24, 2017 at 12:14 PM, Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I’m curious why you want to “read” a UUID? I can’t read one and remember > it with or without lowercase characters. It’s just too long. > ​Well, we all seem to have our favorite little data fetishes...

Re: Question about synching Resources folder from 4D Server

2017-04-24 Thread Kirk Brooks via 4D_Tech
Hi Tim, Thanks very much for picking up on this. I did look at the server guide, which is where I saw the 2 minute lag between changes and updating. I'm just not seeing that updating taking place when files in the Resources folder are changed manually. This may be a bit of an odd instance - I'm de

Re: Why does 4D have uppercase UUIDs?

2017-04-23 Thread Kirk Brooks via 4D_Tech
Arnaud, On Sun, Apr 23, 2017 at 12:31 PM, Arnaud de Montard via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Kirk, > > (feel free to ask for translation if needed) > ​Yeah - please. The google translate makes no sense. ​ -- Kirk Brooks S

Why does 4D have uppercase UUIDs?

2017-04-23 Thread Kirk Brooks via 4D_Tech
I was looking up something else yesterday and came across some comments and directions regarding UUIDs and saying that they should always be lowercase. But this isn't a hard rule, apparently. And 4D prefers to uppercase them - which I find harder to read. Just curious what that's about and if ther

Question about synching Resources folder from 4D Server

2017-04-23 Thread Kirk Brooks via 4D_Tech
I'm having a hard time getting this to work. I have the server setting "Update Resources folder during a session" set to Always. I set the database parameter of the Clients to automatically sync. I do this on startup so I know it's set. And I know there's a 2 minute lag between when a change is ma

Re: Components: How do you reuse utility code?

2017-04-20 Thread Kirk Brooks via 4D_Tech
David, On Thu, Apr 20, 2017 at 3:22 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > On Thu, Apr 20, 2017 at 16:57 Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> > wrote: > > > 1) as a repository for a core set of functions > > 2) as more or le

Re: Why would you do this? (Execute Formula Question.)

2017-04-20 Thread Kirk Brooks via 4D_Tech
I've seen stuff like this in code maintained by folks who are good programmers but not particularly well versed in 4D. I think it makes sense from a different perspective. On Thu, Apr 20, 2017 at 11:52 AM, Lee Hinde via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I got bit last night with this code:

Re: Dynamic Method Creation & Content Changing

2017-04-20 Thread Kirk Brooks via 4D_Tech
Hi John, I just posted earlier today about a method I re-write periodically via code. But I don't think it's a good idea for a production db. For what you describe if you're prior v16 I'd try using Footrunner. If you're v16+ I think you can write and execute code on the fly without needing Footrun

Re: Methods, Components, Comments, and Tooltips

2017-04-20 Thread Kirk Brooks via 4D_Tech
Lutz, I work as a solo developer for the most part and have tried nearly all the code archiving/management schemes mentioned so far. As everyone is saying they have their pros and cons. For a long time I've been exporting methods grouped by modification date. Basically a one method scheme - set u

Re: Methods, Components, Comments, and Tooltips

2017-04-20 Thread Kirk Brooks via 4D_Tech
Tom, This is one place where the 'form controller' approach to managing form code works great. By having all the active objects on a form callback to a process method it's much easier to manage code used on a form than if it's residing in specific objects on the form. Granted you can export that co

Re: v13: what causes boolean fields to display radios instead of check boxes

2017-04-20 Thread Kirk Brooks via 4D_Tech
Alan, Umm - this is 13.6... Oh well, not a big thing with the workaround fairly easy and known. And good to know it's a known issue. Thanks On Thu, Apr 20, 2017 at 12:41 AM, Alan Chan via 4D_Tech < 4d_tech@lists.4d.com> wrote: > This was a known problem only happened on Mac. The issue seems fixe

Re: Components: How do you reuse utility code?

2017-04-19 Thread Kirk Brooks via 4D_Tech
Hi David, Reading your comments on components has given me a lot to think about. So examining how ​I tend to look at components​ I find I break them down into two general areas: 1) as a repository for a core set of functions 2) as more or less independent sub-programs ​#1 - core functions I'd p

Re: v13: what causes boolean fields to display radios instead of check boxes

2017-04-19 Thread Kirk Brooks via 4D_Tech
Hi Walt, No, not grouped. I worked around it by using OBJECT SET FORMAT in the on load event. Which works but begs the question of why I have to. On Wed, Apr 19, 2017 at 6:50 PM, Walt Nelson via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > On Apr 19, 2017, at 6:42 PM, Kirk Bro

v13: what causes boolean fields to display radios instead of check boxes

2017-04-19 Thread Kirk Brooks via 4D_Tech
I have a form that displays a record with some boolean fields. I set the fields to be checkboxes (included a title) but when the form is loaded it turns into radio buttons. I'm not intentionally changing them - so what would cause this? -- Kirk Brooks San Francisco, CA === *

Re: Top Menu Vs Sidebar (Web Applications)

2017-04-19 Thread Kirk Brooks via 4D_Tech
Sujit, I would actually suggest just starting from scratch with the most minimal templates - one of the example templates on the Bootstrap site would do. The reason is something like Metronic has so much advanced stuff it could be hard to get a grasp on exactly what's required for the programming

Re: Top Menu Vs Sidebar (Web Applications)

2017-04-19 Thread Kirk Brooks via 4D_Tech
Sujit, Another factor here is whether your app will be used on mobile devices or not. When I'm building forms for use in web areas or my audience is primarily going to be using a latptop or larger I like nav bars and sidebars for the reasons other folks have mentioned. But if it's going to be acc

Re: v15.2 clients logging into v15.4 server

2017-04-18 Thread Kirk Brooks via 4D_Tech
Hi Jeffrey, Yes I do have a few composite indexes. My error log was blowing up with issues around queries on c-obj fields, which are also indexed. Do you know if that was resolved as well? On Tue, Apr 18, 2017 at 7:39 AM, Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > There's an issu

Re: v15.2 clients logging into v15.4 server

2017-04-18 Thread Kirk Brooks via 4D_Tech
To close this out I'm going to finger server 15.4 as the problem here. Looking back at my notes I see I didn't put in the upgrade previously but did it this weekend. I updated my development machine to 15.4 a while ago but not this server. When I rolled back to v15.3 everything went back to runnin

v15.2 clients logging into v15.4 server

2017-04-17 Thread Kirk Brooks via 4D_Tech
Hi folks, I am suddenly having all sorts of problems with a v15.4 server (windows, 64 bit). The server has been upgraded to v15.4 for a few weeks and suddenly I'm getting all sorts of random errors, data corruption and such. I haven't been able to pinpoint the exact cause yet but I notice there ar

Re: Unclear distinction between web server session and process

2017-04-16 Thread Kirk Brooks via 4D_Tech
John, OK, I see where I was getting mixed up. The session timeout can be a different length than the process timeout. But in practice the session ceases to persist on 4D unless it's active in a process. So when the process providing the context for the session expires that 'session id' goes too. B

Re: Unclear distinction between web server session and process

2017-04-15 Thread Kirk Brooks via 4D_Tech
r 14, 2017, at 11:33 AM, Kirk Brooks via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > But that's not the way I see it actually work. ​A new process spins up > each > > time new request comes in and gets assigned a new web session id which > > replaces whatever

Unclear distinction between web server session and process

2017-04-14 Thread Kirk Brooks via 4D_Tech
Since I'm focused on the webserver today, I'm coming back to not being clear on the distinction 4D makes between a 'web session' and the 'web process' when using automatic session management. A web session, as I understand it, is an authorized connection between a browser and the server and usuall

Re: How can I suppress the web server creating default index.html?

2017-04-14 Thread Kirk Brooks via 4D_Tech
Joshua, On Fri, Apr 14, 2017 at 8:02 AM, Joshua Hunter via 4D_Tech < 4d_tech@lists.4d.com> wrote: > a) Use WEB SET ROOT FOLDER to change the web root on startup to an empty > directory > ​Just thinking out loud - I have heard other's talk about this approach and I like the idea but wouldn't it s

Re: How can I suppress the web server creating default index.html?

2017-04-14 Thread Kirk Brooks via 4D_Tech
Hi Joshua, On Fri, Apr 14, 2017 at 8:02 AM, Joshua Hunter via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I haven't tried but could you either: > > a) Use WEB SET ROOT FOLDER to change the web root on startup to an empty > directory ​I might try this - it's not the way I designed it though...​ >

How can I suppress the web server creating default index.html?

2017-04-14 Thread Kirk Brooks via 4D_Tech
I have my webserver (v15.4) set up to respond to the index page and prompt for login. It seems 4D will crate this page each time it starts up if it's not there. I don't want it there because I want to catch the it manually. Can I suppress 4D's urge to create that page if it's missing? -- Kirk Br

Re: SVG Text Width and Height

2017-04-13 Thread Kirk Brooks via 4D_Tech
Thanks John. On Tue, Mar 28, 2017 at 11:28 AM, truegold via 4D_Tech <4d_tech@lists.4d.com > wrote: > Hi All, > > 4D v15.2 Mac > > Here is what I discovered. The issue I am having appears to be do to > incorrect results from the following lines of a routine: > > $Dom_Ref:=SVG_New > $tDom_Text:=SVG

Re: Questions about the 'Sum' function

2017-04-12 Thread Kirk Brooks via 4D_Tech
Peter, Sum works fine on a selection of records or on an array. It used to be a little slow but not now. If you are working on 4D server it's useful to build some functions that will run on the server to speed things up even more. Using your example you could write: // Customer_get_invoiceSum (id

Another woe of compiler complacency in v15.4

2017-04-12 Thread Kirk Brooks via 4D_Tech
I'm using Query by formula with Match regex to search for email addresses. I believe I got this idea from the 4D docs but could have been somewhere else. Anyway, here's what I'm doing: SET QUERY DESTINATION(Into set;"emailMatch") $pattern:="(?i)"+$email QUERY BY FORMULA([WebUser_subMgr];Match rege

Re: Replacing - OAuth.bundle

2017-04-12 Thread Kirk Brooks via 4D_Tech
Miyako, Your github account is an absolute trove of useful information and resources for a 4D dev. Your repos organization reflects, I think, the focus and drive I see when you work so there's nothing to apologize for. Github isn't the optimal format for 4D style resources but like Sujit said it's

Re: Replacing - OAuth.bundle

2017-04-11 Thread Kirk Brooks via 4D_Tech
Clive, I'm reading this and thinking you're asking for a little assistance dealing with github's interface. It is a bit obtuse if you're coming to it from a 4D perspective and haven't worked with it before. If you follow this link: https://github.com/miyako it takes you to Miyako's github acco

Re: Unexpected External Call Back...

2017-04-08 Thread Kirk Brooks via 4D_Tech
Robert, I agree with Miyako - it's the execute on server attribute. The problem is IP vars are specific to the machine so you really don't want to use them in EOS methods unless you know what you're doing. (by that I mean you intentionally want to use the contents of the IP var on the server - not

Re: [offish]WIndows 10 - phone home info

2017-04-07 Thread Kirk Brooks via 4D_Tech
I'll add my voice to Little Snitch. I've been using it for the last three years or so and can't imagine going without it on my personal system. It's robust but easy to configure and gets regularly updated. On Fri, Apr 7, 2017 at 12:28 PM, Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: >

Re: 4D Server Crashes When Tracing Buggy Web Connection Code

2017-04-07 Thread Kirk Brooks via 4D_Tech
Sannyasin, Two things: I make it a habit to check for -1 anywhere I'm using Find in array... it just bites me if I don't. For methods that run on the server, or even better for processes that run on the server, wrap them in an On err call method that lets you manage the errors yourself. Like not s

Re: 4D Compiler

2017-04-07 Thread Kirk Brooks via 4D_Tech
Nigel, I went through a similar process several years ago when I changed the compile settings on a rather extensive database to 'all variables are typed.' I forget the number but it was a lot. Daunting. I forget how much time I spent on it but it turned out to be much less than I thought it would

Re: 4D Compiler

2017-04-06 Thread Kirk Brooks via 4D_Tech
Tim, That's probably an inflation-adjusted number. Which makes the first 128k Mac I bought in April of '84 the equivalent of about $6,700 now. Still not the most expensive computer I've personally bought - that was a Mac II with an 80mb drive and I don't remember how much RAM. 4MB of RAM back then

Re: Copy out of read only variable/field

2017-04-06 Thread Kirk Brooks via 4D_Tech
That would be cool - but the only way I've been able to do it to with a transparent button on top. On Thu, Apr 6, 2017 at 2:16 PM, Dennis, Neil via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I thought there was a setting on a read only variable or field to allow > selecting and copying data but not

Re: [OFF] Hardware advice Was: 4D World Tour 2017

2017-04-05 Thread Kirk Brooks via 4D_Tech
Yeah, what he said. On Wed, Apr 5, 2017 at 10:52 AM, Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > If it was my personal money, I'd probably find a used MacBook Pro from > 2014 or 2015, fully loaded. If the purchase is part of a budget, I'd wait > for the forthcoming "Kaby Lake" revis

Re: Question about passing JSON to 4D

2017-04-05 Thread Kirk Brooks via 4D_Tech
On Wed, Apr 5, 2017 at 7:40 AM, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > have you tried... > > C_OBJECT($body) > WEB GET HTTP BODY($body) > ? > it might work if you are lucky... > ​ I did and I'm not. ​In this case it looks like it's undocumented because it doesn't work. In v15

Re: Google Address Lookup/ Autocomplete

2017-04-05 Thread Kirk Brooks via 4D_Tech
Sujit, A couple of things about addresses to be aware of when using google. First is google doesn't validate an address. Think navigation. If my primary interest is getting TO a place I'm not worried about delivering the mail or whether the address is correct. I only care about figuring out where i

Re: Question about passing JSON to 4D

2017-04-05 Thread Kirk Brooks via 4D_Tech
Miyako, Thanks very much for pointing me in the right direction. Let me share how I've got this working. It's better but still feels a little kludgey. On the javascript side here's how I changed the post method: var postData = JSON.stringify(woData); $.ajax({ url: '/workorder', type: 'POST', co

Question about passing JSON to 4D

2017-04-04 Thread Kirk Brooks via 4D_Tech
Hi folks, I need a little guidance here. I have a web form (in a browser) that is submitting data to 4D. I collect the data on the webform into an object then stringify it for passing to 4D - like so: var postData = JSON.stringify(woData); $.post( "/workorder/data", postData) .done(function(data)

<    2   3   4   5   6   7   8   >