Newbies benderFR Posted July 23, 2012 Newbies Posted July 23, 2012 Hi Everybody, I am new to FM and I am stuck with this relationship. Can someone help me please? 1 client has multiple delivery addresses. 1 Address = 1 client I want to show a list limited to addresses for 1 client ID selected. 1 TO : CLIENTS Key: Client ID 1 TO: CLIENT ADDRESS Client ID Address ID (key) Examples: CLIENT ABC DELIVERY ID : 1,3,5 CLIENT FGE DELIVER ID : 7,3 Thanks a lot guys! :laugh:
bcooney Posted July 23, 2012 Posted July 23, 2012 I didn't follow your question. If a client has multiple delivery addresses, then you need a relationship between the Client table and the Addresses table by ClientID. If you are also creating an order, I would imagine that it has only one address for ShipTo. That can be address selected from those associated with the Client. Is that the question -- how to limit the ShipTo choices to those of the Order's Client? Perhaps you can restate the question.
Newbies benderFR Posted July 24, 2012 Author Newbies Posted July 24, 2012 That's true, I was not clear enough. There is only one address to ShipTo. So, I want a list to display only delivery addresses limited to one client. Thanks again.
Vaughan Posted July 24, 2012 Posted July 24, 2012 So it's possible that multiple clients can have the same delivery address? Or are there multiple shipments and some might be to the same address? If so you need to normalise the address table (that is, make sure there are no duplicates).
comment Posted July 24, 2012 Posted July 24, 2012 I want a list to display only delivery addresses limited to one client. If I understand your request correctly, you want a button on the Clients layout to perform the Go to Related Record[] script step, with the 'Show only related records (match current record only)' options checked. So it's possible that multiple clients can have the same delivery address? Careful with that.
bcooney Posted July 24, 2012 Posted July 24, 2012 @benderFR - which Client? The client on the Order? You haven't told us what entities you have. Do you have Clients, Addresses, Orders, OrderLineItems?
Ocean West Posted July 25, 2012 Posted July 25, 2012 to provide an proof of evidence of what went, where, when, you really should have duplicate address fields and their content into the actual document that controls the activity such as the Shipping Document or Invoice. if you rely on the relationship chain to an address table and you edit or delete these records it will ruin years of data on past invoices/orders/etc. effectively invalidating any forensic proof. Any mechanism using relationships would be for data entry and user selection for assignment to said document / entity.
bcooney Posted July 25, 2012 Posted July 25, 2012 Stephen, excellent point. I was waiting to get a reply from the OP before mentioning the fact that address info is temporal and a good place to use an auto-enter or lookup. Simply sounds like he needs a conditional value list or filtered popup-selector.
Recommended Posts
This topic is 4850 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now