Re: ds.Table.query() field not available

2020-03-09 Thread Keisuke Miyako via 4D_Tech
Hello, When I do a ds.Table.query() using a field/attribute of a non-indexed field, I get an error. that has not been my experience. v18, Client/Server, non-indexed field, ORDA query has always worked just fine. --- are sure definitely sure that indexing is causing the problem? for instance,

ds.Table.query() field not available

2020-03-09 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha, When I do a ds.Table.query() using a field/attribute of a non-indexed field, I get an error. Of course, I can add an index, but then I seem to have restart the server for it to work. This is super inconvenient, obviously and in may cases not possible at that moment. Is there a command

Re: DOM EXPORT TO FILE adds CRLF

2020-03-09 Thread Tom Benedict via 4D_Tech
Thanks Jim! That did the trick. The docs say that “XML no indentation” means “the document is not intended” but then goes on to say “its contents are placed in a single line.” The second part is the critical clue that end-of-line characters are a form of indentation. I don’t think I would

Re: Trouble with Comment Blocks v18

2020-03-09 Thread Sannyasin Siddhanathaswami via 4D_Tech
Makes sense. I was hoping I wasn’t going nuts! Sannyasin Siddhanathaswami On Mar 9, 2020, 10:35 AM -1000, John DeSoi via 4D_Tech <4d_tech@lists.4d.com>, wrote: I think there was a bug related to this late in the beta cycle. I'm not sure if the fix made it in to 18.0. Seems to work fine in 18.0

Re: Trouble with Comment Blocks v18

2020-03-09 Thread John DeSoi via 4D_Tech
I think there was a bug related to this late in the beta cycle. I'm not sure if the fix made it in to 18.0. Seems to work fine in 18.0 HF1. John DeSoi, Ph.D. > On Mar 9, 2020, at 3:24 PM, Sannyasin Siddhanathaswami via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Aloha, > > I’m having

Trouble with Comment Blocks v18

2020-03-09 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha, I’m having trouble getting the new comment blocks to work in v18. Seems silly simple but doesn’t work: /* This is a comment */ This gives a syntax error. I’m using v18 on Mac OS Catalina, in client server. I looked for compatibility settings, and anything useful in the

Re: DOM EXPORT TO FILE adds CRLF

2020-03-09 Thread Jim Hays via 4D_Tech
Try this: XML SET OPTIONS($rootRef_t;XML indentation;XML no indentation) Jim Hays On Mon, Mar 9, 2020 at 2:57 PM Tom Benedict via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I am updating values in an XML file using DOM commands. I finish by > calling DOM EXPORT TO FILE. What I’ve found is that

alternative to create a mac pkg installer

2020-03-09 Thread ADeeg via 4D_Tech
Hi all, In the last years I have used the Packages Installer for my macOS apps. Link: [url]http://s.sudre.free.fr/Software/Packages/about.html[/url] But since the obligation to notarize the apps, I can't use the Packages installer builder anymore, because the notarization fails, don't know why.

DOM EXPORT TO FILE adds CRLF

2020-03-09 Thread Tom Benedict via 4D_Tech
I am updating values in an XML file using DOM commands. I finish by calling DOM EXPORT TO FILE. What I’ve found is that the end-of-line chars in the XML file are doubled every time I export, so eventually there is lots of white space between lines in the document. According to the documentation

Re: [ANN] AJ_MATH 1.2

2020-03-09 Thread Mike Kerner via 4D_Tech
opening the project works, it's the 4dbase that breaks. On Mon, Mar 9, 2020 at 2:49 PM Mike Kerner wrote: > the database piece is throwing an error that it needs the unit test > piece. did you change your folder organziation? > > On Mon, Mar 9, 2020 at 8:05 AM Maurice Inzirillo - AJAR via

Re: [ANN] AJ_MATH 1.2

2020-03-09 Thread Mike Kerner via 4D_Tech
the database piece is throwing an error that it needs the unit test piece. did you change your folder organziation? On Mon, Mar 9, 2020 at 8:05 AM Maurice Inzirillo - AJAR via 4D_Tech < 4d_tech@lists.4d.com> wrote: > We are proud to announce our new release AJ_Math 1.2 > > * * * AJ_Math - Math

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread John J Foster via 4D_Tech
Hi Jeremy, Thanks! The fog is clearing… Over-thinking is my speciality! Appreciate, John… > I think you have it: it is indeed magic! > > The method called, via CALL FORM, by the worker has full access to all the > form’s variables (in that way, it’s just like a form method). Your worker >

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Jeremy Roussak via 4D_Tech
John, I think you have it: it is indeed magic! The method called, via CALL FORM, by the worker has full access to all the form’s variables (in that way, it’s just like a form method). Your worker process can pass it, for example in an object, the values to be added to the listbox’s arrays. It

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread John J Foster via 4D_Tech
Hi Lahav, Ref: "You are actually calling a method that runs in the context of the form window. You don't need to trap for an event, the method just runs and does whatever it needs to do in the context of the form.” I think I get it. Ref: "One question for you, any reason to use arrays rather

RE: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread lists via 4D_Tech
Hey John, You are actually calling a method that runs in the context of the form window. You don't need to trap for an event, the method just runs and does whatever it needs to do in the context of the form. For example, if you only need to add a row to an array on the form, write a method

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread John J Foster via 4D_Tech
Hi Peter, > Method specified in CALL FORM is called in the form just like form method, > but is not part of form method, nor is it called from form method. Yes that was my problem expecting that it was somehow related to the form method, per se. After I finish the main search routine I’ll

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread John J Foster via 4D_Tech
Hi Peter, That makes sense and I beginning to get a sense/visualize it. This stuff is like magic in comparison to the older approach. Thank you Peter!!! John... > On Mar 9, 2020, at 10:25 AM, Peter Bozek wrote: > > > > On Mon, Mar 9, 2020 at 5:52 PM John J Foster via 4D_Tech >

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Peter Bozek via 4D_Tech
On Mon, Mar 9, 2020 at 6:22 PM John J Foster via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > Ref: "An easier way to think of CALL FORM is to look at it as the old ON > OUTSIDE CALL event in a form, but with the added bonus of being able pass > data to the form as parameters from the calling

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Peter Bozek via 4D_Tech
On Mon, Mar 9, 2020 at 5:52 PM John J Foster via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Peter, > > I haven’t used CALL WORKED/CALL FORM yet. I’ve seen some tutorials by John > Baughman which made sense when I watched them. But a different context I > think. > > Idea is as follows: you cannot

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread John J Foster via 4D_Tech
Hi Lahav, Good to hear from you my man! Ref: "An easier way to think of CALL FORM is to look at it as the old ON OUTSIDE CALL event in a form, but with the added bonus of being able pass data to the form as parameters from the calling process, without using global variables." I kind of get

RE: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread lists via 4D_Tech
John, An easier way to think of CALL FORM is to look at it as the old ON OUTSIDE CALL event in a form, but with the added bonus of being able pass data to the form as parameters from the calling process, without using global variables. Cheers, Lahav -Original Message- From: 4D_Tech

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread John J Foster via 4D_Tech
Hi Peter, I haven’t used CALL WORKED/CALL FORM yet. I’ve seen some tutorials by John Baughman which made sense when I watched them. But a different context I think. I guess that’s why my brain is not seeing this clearly yet. My search form has a bunch of variables including a date range, a

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread John J Foster via 4D_Tech
Hi Peter, Yea, that’s what I thought! So trying to understand (aka, visualize in my minds eye before I code) how to correctly get back the rows being returned from another process. I am thinking of some sort of object. I’m still trying to follow Olivier’s explanation “try to see CALL FORM as

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Peter Bozek via 4D_Tech
On Mon, Mar 9, 2020 at 4:46 PM John J Foster via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Olivier, > > I think I’m so use to thinking of a process, aka CALL WORKER, as being > independent. The variables are of the process. So in this case that would > have to mean that the listbox and arrays

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Peter Bozek via 4D_Tech
We did something similar with colleague, some time ago, not in 4D, but idea would be similar: 1. we initialised arrays to proper size (amount of data was know beforehand). At that moment, user would see an area with empty lines 2. we run a process that calculated the lines and updated arrays and

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread John J Foster via 4D_Tech
Hi Olivier, I think I’m so use to thinking of a process, aka CALL WORKER, as being independent. The variables are of the process. So in this case that would have to mean that the listbox and arrays are seen and updated in both the form and the process. Is that right? John... > Try to see

AW: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread Olivier Flury via 4D_Tech
Hi John, Try to see CALL FORM as "execute this project method in the context of this form", similar to EXECUTE METHOD IN SUBFORM So, the method you execute should update/fill the listbox. e.g. CALL FORM ($WinRef;"MyListboxUpdateMethod";$ObjectWithData) Best, Olivier ||

Re: Active Listbox/Form while listbox dynamically built

2020-03-09 Thread John J Foster via 4D_Tech
Hi Jeremy, OK, conceptually then: LB Form (array based - 5-8 arrays) -> Search button spawns CALL WORKER So then CALL WORKER searches and as it finds a match it returns them via CALL FORM (perhaps in an object) and then the listbox rows are processed… So the question is - since CALL FORM

[ANN] AJ_MATH 1.2

2020-03-09 Thread Maurice Inzirillo - AJAR via 4D_Tech
We are proud to announce our new release AJ_Math 1.2 * * * AJ_Math - Math functions for 4D * * * It is intended for 4D developers. The component AJ_Math covers mathematical and trigonometric functions. AJ_Math is one of the 4D tool components of our AJ_Suite which includes : • AJUI_Banner 1.7