Jump to content

AtkManyToOneRelation: Difference between revisions

From NusaATK
Guri (talk | contribs)
m Add reference to customising Select link
Line 14: Line 14:


[[image:atkManyToOne.jpg|center]]
[[image:atkManyToOne.jpg|center]]
When you use the AF_LARGE flag it is possible to customise the text for the select link, [[See Renaming_'add'_and_'select'_links_in_relations]].


[[Category:Relations]]
[[Category:Relations]]

Revision as of 17:54, 1 January 2010

atkManyToOneRelation screenshot

atkManyToOneRelation

If you do not want to use the default primary keys (for example when the * side has a combined PK), you can override them by using the functions:

 setLocalKey("a_id");
 setRemoteKey("b_id");

Example

Projects all have one coordinator (node B), but one coordinator can have multiple projects (node A). So in the project class, there's a atkManyToOneRelation to a coordinator.

When you use the AF_LARGE flag it is possible to customise the text for the select link, See Renaming_'add'_and_'select'_links_in_relations.