BeachDave Posted November 27, 2005 Posted November 27, 2005 I have two tables - PROPERTY and MANAGER. Each contain a MANAGER_ID field and the two are related using these fields. I also have a PROPERTY layout. It lists all the fields in the PROPERTY table ... one of which is MANAGER_ID. I want the user to see a dropdown box with MANAGER_NAME (the contents of which should come from the MANAGER_NAME field in the MANAGER table). Once selected this dropdown box would populated the MANAGER_ID field in the PROPERTY table with the MANAGER_ID corresponsing to the MANAGER_NAME choosen by the user. I can't seems to make it work. I hope that wasn't too confusing. If so I can provide clarification. Thanks. BeachDave
Wim Decorte Posted November 27, 2005 Posted November 27, 2005 The value list "managers" should have the ID as the first field and the name as the second field and be set to show only the content of the second field. With this done, the dropdown box will show the name of the managers but put the ID in the field. A pop-up menu will show the name instead of an id after a selection is made but the field will still hold the id. manager_property.zip
BeachDave Posted November 28, 2005 Author Posted November 28, 2005 Thanks Wim. I took a look at your file. Is this the only way to implement? It doesn't seem very elegant. Not your solution but the way FM handles this type of scenario. Is there any work around at all to make it so the user only sees the Name and not the ID? Thanks.
Wim Decorte Posted November 28, 2005 Posted November 28, 2005 Like I said in my earlier post, if you use the pop-up value list the user never sees the ID, just the name. You wouldn't show the ID field like I have in the demo. If you want to use the drop down then you basically overlay the manager::name field on top of the ID field so that when the make a selection the name hides the ID field.
Recommended Posts
This topic is 7027 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