[JPR]

Hi Guys,

The code regarding a way to display/edit an object has been put into a 
component.

This component is supplied as a part of the World Tour Training, (obviously 
with the source) and all explanations are given, with the How to use it during 
the 1st day, and How to understand it during the 2nd day. 

Those who have been attending WT in East USA will find it in the USB keys they 
have got during he meetings. And those who will attend in Denver, Long Beach 
and San José will get it the same way.

The actual use of it is just to add some flexibility to the data structure by 
adding a user-customizable field to some tables.

Now the arising next question will probably be: Why isn't it in 4D already? 
Many possible answers, but the most obvious are:

- Lack of time
- Objects are just in the beginning phase in V16, so probably more to come
- Anyway, the answer is not obvious, and this is why it's important to get the 
proper explanations during the trainings...

My very best,

JPR


> On 22 Apr 2017, at 02:48, 4d_tech-requ...@lists.4d.com wrote:
> 
> Message: 9
> Date: Sat, 22 Apr 2017 10:48:19 +1000
> From: David Adams <dpad...@gmail.com>
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Subject: Re: Object visualize / browse
> Message-ID:
>       <CAPXPcQsU1WqmHon73c=fa5xf7ykwvh2vbvspks-+ndyexfj...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
>> Can anyone suggest a straightforward approach to displaying a 4D object
> as a
>> browsable item - something like what you see in the debugger window, only
> in
>> a dialog form?
> 
> It's awkward to do with native 4D commands alone because:
> 
> * There's no way to parse or navigate JSON as a tree.
> 
> * There's no way to get 4D to tell you the type of an embedded array. No
> way. You can guess at embedded arrays, but it's problematic.
> 
> Alternatively, if you've got NTK available in your project, you can use the
> complete JSON processing suite and do whatever you like.
> 
> Several of us have made UIs or tools for doing as you ask, so someone might
> gift you some code. JPR had an example with big honking bits of code
> circulating last year. He had to guess at array types, like anyone else.
> But at least he did a bunch of the hard grunt of converting the
> object-JSONish text-hlist, etc.

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to