Wouter Zoons wrote:
Leif Johansson wrote:

I seem to have "lost" my 'id' problem using autogenerated CRUD so I'll
start a new thread.

A couple of questions about the CRUD forms:

1. There doesn't seem to be any way to get from the table to the
entry - no tablelink as it were. Only a 'Copy' link is present and
that doesn't allow me to edit attributes (I get 'foo cannot be
null' when editing the form if I leave foo blank). I fully expect
this to be an error on my part ;-)


well, the service only throws that exception for required attributes ? did you try modeling 'foo' with a multiplicity of [0..1] ?



Me stupid :-(


2. When modelling a uni-directed parent-child relation to self I
am unable to associate the children to the parent in anyway but
with a bidirected association I get a selectbox for the parent.
However with large child-sets this will hurt bigtime (hence the
uni-directed relation).


I updated the docs yesterday, it seems to be online now: http://galaxy.andromda.org/docs/andromda-cartridges/manageable-entities/index.html



Great, thanks.


The 'pitfalls' section talks about this issue: you'll need to make the appropriate end navigable


it's indeed a problem when your table contains a lot of rows since the <select> will be huge, in that case you will able to turn the <select> into a regular text field for that relation

(this is not implemented yet, although the namespace property and the tagged value already exist)

Let me make a suggestion: add a 'create as child of this object' with a select-box of the managed entities which have this type of association with the current managed entity. That way you can do a search to find your parent and go off to create the assocated object. This works well in combination with using a text-field instead of a select-box as you describe above.


alternative solutions are welcome too, let me know which solution suits you best ...





------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to