 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
alan Guest
|
Posted: Sat Jan 20, 2007 8:59 am Post subject: Model\Associations\GUI |
|
|
I have the classes and associations below. When the user enters a new
family member I create an address object in code. On the screen the user
can enter a new address or click on a button, to pick from a list of
addresses, if it already exist. My problem is I want the address list
to display only the addresses from the associated family members, not
all the address from the table.
I tried FamilyActt.FamilyMember.Address link, but is show the addresses
multiple times if it is linked to more than one family member.
What is the correct way to associate the addresses to the family
members, so I can display them in a list?
TIA
FamilyAcct 1--0..* FamilyMember 1..*--1 Address |
|
| Back to top |
|
 |
Peter Morris Guest
|
Posted: Sat Jan 20, 2007 5:06 pm Post subject: Re: Model\Associations\GUI |
|
|
just add "->asSet" to the end of your OCL.
Pete |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|