I'm B-A-A-A-A-C-C-C-C-K-K-K-K
I love how easy it is to create search strings using the browse dialog. But I am having problems configuring a combo box for it.
I have a business object for the combobox in my form that has the BorwseDialog on it. The business object gets populated in the
boLookupDetails_ParentFormLoading method. I set the combo box up for the browse dialog using the Business Object tab:
Business Object Type: BOLookupDetails
Method to execute: FillCategoryDetails(Int32)
Display Members: lupdet_dsc and lupdet_pk
Display Member Format String: {0}
Value Member: lupdet_pk
I assume that the problem is that it does not know that it needs to pass 9 ( the foreign key to the lookup category ) to the FillCategoryDetails method. How do I ensure that this happens? I could not find information in the documentation on the Browsr Dialog.
Thanks!
I figured out how to do this. I created a BO with the correct method to get all the lookup detail for the specific category and specified that as the BO for the combo box.
Thanks anyway.
I am sur Charles will be happy to see you saying you starting to love something out of the framework
I am glad you found your way out in this one. The BD is very powerful and flexible. The ComboListPopulating event will give you the flexibility to manipulate the data in the combos in a way that you can have a combo filtered based on a selection done in another combo in the BD and that is something really nice.
I never said that I didn't like the framework. I could see how much easier it was going to make deveoping this project right from the start or I wouldn't have bought it in the first place I was just a little frustrated by the learning curve - I suppose that is normal...
I am glad you found your way out in this one. The BD is very powerful and flexible.
In case you haven't figured it out yet, I can almost always figure it out unless it is something really obscure. I am like a dog with a bone once I have a problem that I need to solve It drives my husband crazy - but, then again, for him it is a really short drive...