BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ModelAssociationsGUI

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General)
View previous topic :: View next topic  
Author Message
alan
Guest





PostPosted: Sat Jan 20, 2007 8:59 am    Post subject: Model\Associations\GUI Reply with quote



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





PostPosted: Sat Jan 20, 2007 5:06 pm    Post subject: Re: Model\Associations\GUI Reply with quote



just add "->asSet" to the end of your OCL.


Pete
Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General) All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.