On May 1, 2020, at 10:07 AM, John DeSoi via 4D_Tech <[email protected]> wrote:
> Here is an idea which seems to work, but needs more evaluation. What if you > named the form object with the property path in the form data? Even if > periods are not allowed (they seem to be), another character could be used. I > think the maximum length of an object name is 255 characters which should be > plenty. The problem with this approach, as others have mentioned, is that you can no longer use object name prefixes to show/hide/enable/etc groups of form objects. On Apr 30, 2020, at 7:53 PM, Peter Hay via 4D_Tech <[email protected]> wrote: > > 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. Yes, and it’s likely it will be added eventually. I mean we got a built-in string split command in v17, so it’s never too late! For the foreseeable future, there is no way to get a pointer to an object attribute and you can’t work with the form object value directly. In Laurent’s 2020 Summit presentation on classes (Entity extensions), he showed setting up a “virtual attribute” with custom getter/setter methods. I assume you will be able to set up custom getter/setter methods for datastore attributes as well, so when you are able to use that functionality (v18R?), you will be able to specify that logic in the Entity class extension and not the form. Realistically, if you want to be “all-in” on ORDA, you’ll want to use the 4D v18R? release that supports classes, DataClass and Entity extensions as soon as it’s available. Currently you spend much of your time working around the lack of those things. Jim Crate ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

