emjay Posted December 10, 2008 Share Posted December 10, 2008 Greetings, Maybe someone can help - I have 2 tables 1. Quotes which has a unique field QuoteID and a global field gQuoteLocation and 2. Quote_Detail which has QuoteID, QuoteDetailID and QuoteLocation. I've set up a layout with a portal so I can see the one to many relationship between Quotes and Quote_Detail. When I have the relationship set only for Quotes::QuoteID = Quote_Detail::QuoteID everything is fine. And then I have to go and get fancy. I added a relationship so that Quotes::gQuoteLocation = Quote_Detail::QuoteLocation. Everything works as expected, that is, I can filter by location, as long as there's something in the Quotes::gQuoteLocation field. My question then is -- how can I keep this relationship/layout and see all locations? I've tried putting * in the gQuoteLocation field, I've tried a return, I've tried keeping it blank. What, pray tell, am I missing? Or do I need a separate relationship/layout to see all? Thanks Link to comment Share on other sites More sharing options...
Fitch Posted December 10, 2008 Share Posted December 10, 2008 Typically you'd make a calculated field in the related file: "All" & ¶ & Quote_Detail::QuoteLocation Then you could add "All" to your value list for Quotes::gQuoteLocation. Make sense? Link to comment Share on other sites More sharing options...
emjay Posted December 11, 2008 Author Share Posted December 11, 2008 Thank you very much. I was trying all sorts of variations on your suggestion and finally got it to work. Apparently it has to be a Text field with an auto-calculation to work as opposed to a calculation field. Again, very much appreciated. MJ Link to comment Share on other sites More sharing options...
Fitch Posted December 11, 2008 Share Posted December 11, 2008 Glad you got it to work. FYI a calculated field should work, unless the Quote_Detail::QuoteLocation field cannot be indexed for some reason. But if that were true then it shouldn't have been working as you had it. Link to comment Share on other sites More sharing options...
emjay Posted December 11, 2008 Author Share Posted December 11, 2008 I don't know why I was having so much trouble but I'm relishing the fact that it's working now. Thank you again for the tip. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5751 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