Can I use a BO to search for records in the browse dialgue


Author
Message
Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Here is what I am trying to to.

I have plans that belong to clients. The clients have relationship managers, analysts and administrators. I would like to be able to search for plans by client relationship manager, analyst or administrator. I would then like to come back and have my plans business object populated with the oines that were selected in the browse dialogue.

Can someone please point me in the right direction so that I can get this done?

TIA.

Marcia

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Marcia.

Sorry, I'm almost nuts with some coding myself over here, and didn't really get what you are trying to do... Crazy

But the thing is, a Browse Dialog will need a BO type and a BO instance of that type to populate. Once you get back from the BD, your can do whatever you want with that BO populated. You can filter it on some condition and use the SomeBO.CopyDataFrom to get the filtered records from the BO populated by the BD, for example.

Sorry if this has nothing to do with what you need. BigGrin

Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Ivan George Borges (09/20/2008)
Hi Marcia.

But the thing is, a Browse Dialog will need a BO type and a BO instance of that type to populate. Once you get back from the BD, your can do whatever you want with that BO populated. You can filter it on some condition and use the SomeBO.CopyDataFrom to get the filtered records from the BO populated by the BD, for example.

Hi Ivan.

Thanks so much for getting back to me so quickly.

I read the documentation on the CopyDataFrom method, but it looked like the 2 business object needed to have the same structure. My problem is that they don't because I want the "searching" BO to be the result of a join between 3 tables and the primary BO in the form to be only one of them. Is there a way that I can use the CopyDataFrom method when the structure of the 2 BO's is not the same?

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (660 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Howdy Marcia Smile,

You can actually still use the CopyDataFrom method between BOs of the same type even if you have extended fields and properties on one BO but not the other. Just be sure to use one of the ClearAndFill copy types when you call the method (if you do an append but the field structure doesn't match it will throw an error.) The target BO will have any extended fields that were included in the source BO, but those fields don't have to be exposed through extended properties if that isn't needed or desired.

Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)Advanced StrataFrame User (512 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Dustin Taylor (09/22/2008)
Howdy Marcia Smile,

You can actually still use the CopyDataFrom method between BOs of the same type even if you have extended fields and properties on one BO but not the other. Just be sure to use one of the ClearAndFill copy types when you call the method (if you do an append but the field structure doesn't match it will throw an error.) The target BO will have any extended fields that were included in the source BO, but those fields don't have to be exposed through extended properties if that isn't needed or desired.

Hi Dustin.

Thanks so much for the response. I figured that there had to be a way to do this because it must be a common requirement in a fully normalized database, but the documentation was not real explicit about how Wink

BTW, I really love what you guys have done. It has made cranking out this application a breeze. We were hired to do a re-write of an application that was a real mess and in less than 3 weeks I have almost duplicated the functionality in their current app and it took the previous programmer a year to give them what they are now using.

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thanks for sharing that with us...it is always nice to hear success stories! Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search