[Sorry if duplicate. You "guys" (sourceforge really) rejected me as
spam ;-) I'm sure some would agree.]
Howdy again All,
I am trying to make a simple page to list (and add to) objects in a
relationship of one of my EOs in a D2W(onder) application.
This is not meant to be a reusable page (ie for different entities) but
since it will be constructed by D2W I thought I should make it a
subclass of ERD2WEditRelationshipPage. Is that right?
I have done that and I am trying to use the relationshipDisplayGroup
field that comes with this class. I am assuming the object and
relationship will have been set for me by D2W etc.
In the awake() method I relationshipDisplayGroup.fetch() (no objects in
relationship to start)
If there are objects it will iterate through them displaying them
(simple WORepetition with BatchNavBar).
The page then has a spot to enter details for an object to add to the
toMany relationship (stored in Strings).
The Add button calls an action that calls
relationshipDisplayGroup.insert() which should return an object.
I then want to set the object properties etc.
Unfortunately, it doesn't return an object (null instead).
The documentation says that it will insert an object if it can, why
Any ideas why, what am I doing wrong? Am I on the right track.
Thanks in advance,
PS I guess now I probably didn't need to use ERD2WEdtRelationshipPage?
Probably a higher class (in the inheritance tree) would have done fine?
Get latest updates about Open Source Projects, Conferences and News.