Forums / Setup & design / Enhanced Object Relation, Create new objects

Enhanced Object Relation, Create new objects

Author Message

eric l

Monday 21 November 2005 12:12:29 pm

So I love being able to create new objects through the EOR! There seems like there is a slight bug where an empty object gets created when you first click 'Create New' before you have the fields needed to actually supply it data. Not a showstopper by any means, just thought I would mention it.

A super quick glance at the code make it look like an empty object is created every time you click the button, so you are always going to end up with one empty one. Maybe we need a 'update objects' button as well as the 'create new' button once there is > 0 new objects to edit. It would everything 'create new' does but just doesn't make another new object.

Gabriel Ambuehl

Tuesday 22 November 2005 12:00:31 am

The code behind this is relatively hairy I must admit. The issue is this: ez can't handle form input for an object that doesn't yet exist so you HAVE to create it first in order to edit it.

As for update current object, if you got the inclination to add that, feel free. I currently don't have the time (maybe this weekend, possibly later).

Visit http://triligon.org