Re: 4D Friday Happy Hour on ZOOM - Again! May 1 @ 3:30 PM PDT / 6:30 PM EDT

2020-04-30 Thread Milan Adamov via 4D_Tech
> On 30 Apr 2020, at 17:18, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hope you can join us. That’s after midnight for me. I’ll try to attend, but I might be in bed already. Milan ** 4D Internet Users Group

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Chris Belanger via 4D_Tech
Exactly … that is my question. — Chris > On Apr 29, 2020, at 11:15 AM, lists via 4D_Tech <4d_tech@lists.4d.com> wrote: > > OK, so can we get a real example of how to replace the *old* way with the > new? In a case where there are several entry objects: > > Form.Name > Form.Address > Form.Note

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread kculotta via 4D_Tech
This example does not avoid having to carefully name form objects and the form object must have "matching" variable and object names: variable entity.MyName with its object name of "MyName" // the object method a_test (OBJECT Get name(Object current)) // a_Test $ent:=OBJECT Get pointer(Object

Users and group not converting when moving from v17r5 to v18

2020-04-30 Thread Eric Naujock via 4D_Tech
I have found that if you take a 4D v17r5 program and convert it to v18. Then change the database to a project database it will lose the memberships in the users and groups. When exported you will see all your groups and users. But the memberships between the two will disappear. With the

RE: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread lists via 4D_Tech
Did you actually test this?, any kind of a get pointer on a form object having a dot notation source will return a Nil pointer, regardless of the name matching or not. If you are using matched names, you could use the following: Form[Object get name(object current)]:=DoWhatever(Form[Object get

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread kculotta via 4D_Tech
Yes, I'm using it, but it really seems like an artificial way to get an entity field's displayed contents. I'll explore your example. Keith - CDI > On Apr 30, 2020, at 3:45 PM, lists via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Did you actually test this?, any kind of a get pointer on a form

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread kculotta via 4D_Tech
18.1 The pointer OBJECT Get name(Object current) is to the entity instead of the to the entity attribute. The field is eg, MyEntity.MyName, but the pointer to the form object ends up being ->MyEntity > On Apr 30, 2020, at 3:52 PM, lists via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Sorry,

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread kculotta via 4D_Tech
Sorry, meant to say the pointer that results from the Object Get name is to the entity > On Apr 30, 2020, at 3:59 PM, kculotta via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > 18.1 > > The pointer OBJECT Get name(Object current) is to the entity instead of the > to the entity attribute. > >

RE: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread lists via 4D_Tech
Indeed, if you are using a process or an IP variables to hold the entity (or object for that matter), you will get a pointer to that variable. But if you are using the Form.XXX notation and eliminate the use of process or IP variables, the pointer always return Nil, so it's useless. The

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread kculotta via 4D_Tech
Is there a "Get edited text without having to type anything first" kind of function. Does an entry area have an Object that contains its type and contents? > On Apr 30, 2020, at 2:58 PM, Chris Belanger via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Exactly … that is my question. — Chris >

RE: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread lists via 4D_Tech
Sorry, Are you saying that you can get a valid pointer with Object get pointer() on a dot notation object of a form?, if so what version? Lahav -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of kculotta via 4D_Tech Sent: Thursday, April 30, 2020 2:50 PM To: 4D

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Randy Kaempen via 4D_Tech
> On Apr 30, 2020, at 4:43 PM, lists via 4D_Tech <4d_tech@lists.4d.com> wrote: > > OK, based on this design, we are back to using variables (or dynamic > variables) for data entry of anything that needs any kind of processing done > to it after an entry, having to load the values to these data

Re: Users and group not converting when moving from v17r5 to v18

2020-04-30 Thread Guy Algot via 4D_Tech
Eric, U were changed with v18 project mode. Check out the blog, I believe there was a posting there about it. > On Apr 30, 2020, at 2:29 PM, Eric Naujock via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have found that if you take a 4D v17r5 program and convert it to v18. Then > change the

Re: Users and group not converting when moving from v17r5 to v18

2020-04-30 Thread Eric Naujock via 4D_Tech
Yes I know they were changed I am walking my way though the changes now as I am working on preparing to move to the new 4D V18 project mode. In a way I like the movement of the User sand groups to the .json file. But breaking the conversion of users and groups for a large corporation and

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Chris Belanger via 4D_Tech
Agree with Lahav. I think the point of OBJECT NAMES is to also help with SHOW/HIDE objects on screen by OBJECT SET VISIBLE ( *; “Prefix@“) sort of thing. The object name should not need to be exactly what the ‘Variable or expression’ is. And besides, there would be quite a problem if the object

RE: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread lists via 4D_Tech
OK, based on this design, we are back to using variables (or dynamic variables) for data entry of anything that needs any kind of processing done to it after an entry, having to load the values to these data entry objects when loading the form, and copying the values back when we want to save

Re: 4D Summit Videos

2020-04-30 Thread Keisuke Miyako via 4D_Tech
Hello, the team has just made the demo DB (v18) available for download. https://events.4d.com/summit2020/session/document-production/ Regards, > On Apr 23, 2020, at 22:37, Eric Naujock via 4D_Tech <4d_tech@lists.4D.com> > wrote: > Keisuke Miyako's presentation on Document Production managed

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Keisuke Miyako via 4D_Tech
I can only share how I would design my user interface, but in short, I would not have this problem > (Object get name).prettyFormat() and here's why. I see that the form object should either be bound to (=managed automatically by 4D) or divorced from (managed by me) its data source. the

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Chris Belanger via 4D_Tech
I don’t wish to imply that I ‘prefer’ pointers; in fact, I am not using a single process variable, interprocess variable, or any other ‘vestiges’ of 4D Classic. I am ‘fully committed’ to object notation. I also use Storage extensively for system-wide values, and really love it. The problem I

Re: 4D v18 — Need methodology to

2020-04-30 Thread Chris Belanger via 4D_Tech
By the way, I follows Lahav’s direction (and a few others of you who tried to say the same thing but it went clear over my head). I am very happy with the solution. I just needed a project method flagged with ‘execute on server’ in its properties [or whatever you call it]. Then it was a very

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Douglas von Roeder via 4D_Tech
Randy: "If there is such an issue trying to get object values to work right, what’s the reason to use them at all?” The new language is extremely powerful and I found it quite easy to pick up (mostly). The fact that it doesn’t give us 100% backward compatibility is not unexpected. "I know

RE: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread lists via 4D_Tech
Doug, Just for discussion sake, I'd say that a good portion of long established systems have 100% of their space already occupied by classic code The use of the Form object offers so much that I am resigned to let go of some generic code, not happy, but willing to pay that price. Lahav

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Chris Belanger via 4D_Tech
You say things much more succinctly and clearly than do I, Lahav. I agree. — Chris > On Apr 30, 2020, at 3:43 PM, lists via 4D_Tech <4d_tech@lists.4d.com> wrote: > > OK, based on this design, we are back to using variables (or dynamic > variables) for data entry of anything that needs any kind

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Chris Belanger via 4D_Tech
I thoroughly enjoy using object notation and the Form. object. That is why I want a way to continue to use it to designate the data source of form objects. I have read and re-read Keisuke’s comment, and there are aspects I do not comprehend. I thought that the attachment between form object and

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Douglas von Roeder via 4D_Tech
"If we could at least get the DATA SOURCE of the object that is using object notation as its data source, it would be nice:” Feature request time! Back in 2018 (way back then!), I asked to be able to get the table number for a entity selection and got the equivalent of “Why would you want to do

Re: V18 plugins not showing as Notarized?

2020-04-30 Thread Keisuke Miyako via 4D_Tech
only the plugins pre-installed with the application (inside 4D or 4D Server) are notarised. the folder adjacent to the application are copies for distribution and therefore not code signed at all. > On May 1, 2020, at 12:00, Ronald Rosell via 4D_Tech <4d_tech@lists.4d.com> > wrote: >

V18 plugins not showing as Notarized?

2020-04-30 Thread Ronald Rosell via 4D_Tech
Hi folks, My apologies if this is a “RTFM” question, but I’ve searched the Knowledge Base, and the NUG archive, but haven’t found an answer to this problem. (The 4D support portal also appears to be having issues at the moment.) I’m in the process of upgrading from v17.4 to v18.1, in large

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Douglas von Roeder via 4D_Tech
"Just for discussion sake, I'd say that a good portion of long established systems have 100% of their space already occupied by classic code….” Couldn’t agree more! As the average age of installed base of programmers decreases, the % of “classic” code in production systems will drop (hat’s the

Re: V18 plugins not showing as Notarized?

2020-04-30 Thread Ronald Rosell via 4D_Tech
I knew it would be something simple. I’d actually completely forgotten that 4D InternetCommands is included in the 4D application package … I’ve generally had a copy in the database folder -> Plugins when compiling. I just took that latter copy out, relaunched, and problem solved! Thank you

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Peter Hay via 4D_Tech
Hi Chris, What we really need is a way to access a Form Object's "Variable or Expression". There's a Command named "Object Get Data Source" which was added in v14, but it only returns a Pointer if "Variable or Expression" is a Variable. If it's an Expression it returns Nil. If we could get

Re: Object notation replacement for use of Self in a script — v18

2020-04-30 Thread Tim Nevels via 4D_Tech
On Apr 30, 2020, at 10:00 PM, Douglas von Roeder wrote: > Another WTF is that you can’t iterate from the end of a collection to the > start. You can reorder the collection and then run a For each loop but > that’s a complete kludge. Dollars to doughnuts, 4D will eventually add a > parameter to

Re: Multple windows within the same process

2020-04-30 Thread Jeffrey Kain via 4D_Tech
A lot more scalable too - one server process per client dedicated to the UI, no matter how many windows are open locally... > On Apr 29, 2020, at 11:52 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Where workers come in is to do, well - work. All the heavy processing be it >

4D Friday Happy Hour on ZOOM - Again! May 1 @ 3:30 PM PDT / 6:30 PM EDT

2020-04-30 Thread Kirk Brooks via 4D_Tech
Hi folks, Last week was fun so we're doing it again tomorrow. >> Please note I pushed the start time back half an hour 'cause 3 is a little early over here on the left coast. It is a work day, after all. Topic: 4D Friday Happy Hour Time: May 1, 2020 03:30 PM Pacific Time (US and Canada) Join