Re: Enterprise objects stored in JSON or byte
Re: Enterprise objects stored in JSON or byte
- Subject: Re: Enterprise objects stored in JSON or byte
- From: Mark Wardle <email@hidden>
- Date: Thu, 20 Dec 2018 07:40:03 +0000
Thanks Paul. No, not at all wedded. In fact, I've been stupid in that I did
something similar with modelling consent forms and the responses, but for
some reason simply couldn't see beyond the end of my own nose on this one!
Thanks all,
Now to get on and implement...
[image: image.png]
On Thu, 20 Dec 2018 at 03:58, Paul Hoadley <email@hidden> wrote:
> Hi Mark,
>
> On 20 Dec 2018, at 07:37, Samuel Pelletier <email@hidden> wrote:
>
> I've done dynamic forms in the past (in PHP and WO) and never tried to map
> them to an ORM entity. I think it is better to model your a Form entity and
> another one for answers (FilledForm or CompletedForm). The Form entity is
> the Meta model with the questions and the other contains only answers. You
> end with 2 symmetric hierarchies with one answer class for each question
> type class (numeric, text, choice, boolean, image, ...). Each of the Answer
> class has it's edit component.
>
> The display form component is build by displaying the proper edit
> component for each answer in order. For easy D2W integration, I think you
> can initialize a new form with blank answers and simply use the D2W magic
> to display the complete form (using an ordered toMany from the
> CompletedForm entity to it's answers) .
>
>
> FWIW, that's pretty much exactly how we implemented a
> SurveyMonkey/Survs-style "create your own arbitrary survey" project for a
> client a few years ago. It worked reasonably well, and it's still in use.
> Are you wedded to the dynamic model approach you describe, Mark?
>
>
> --
> Paul Hoadley
> https://logicsquad.net/
> https://www.linkedin.com/company/logic-squad/
>
>
--
Dr. Mark Wardle
Consultant Neurologist and Clinical informatician, University Hospital
Wales, Cardiff, UK
Chair, NHS Wales Technical Standards Board.
Email: email@hidden or email@hidden Twitter: @mwardle
Telephone: 02920745274 (secretary) or facsimile: 02920744166
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden