StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Filling a BO from a BBS
Filling a BO from a BBS
Post Reply
Like
0
Filling a BO from a BBS
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Bill Cunnien
Bill Cunnien
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 785,
Visits: 3.6K
I have created several custom BBS's for use in my DX report. So far, all is going quite well. One thing that would make my life a lot easier is being able to access my custom fill methods from the BO. Here is an example of my code to fill a BO which fills the BBS which provides data for my report:
public
partial
class
PackingListDS
:
BusinessBindingSource
{
public
PackingListDS()
{
InitializeComponent();
BusinessObject =
new
PackingListBO
();
}
public
PackingListDS(
IContainer
container)
{
container.Add(
this
);
InitializeComponent();
BusinessObject =
new
PackingListBO
();
}
public
void
Fill(
int
pPLIndex)
{
BusinessObject.FillByPrimaryKey(pPLIndex);
}
}
This works great! But, what if I want to fill the BO with a different method than the base methods (MyBO.FillWithMyReallyCoolMethod())? If I could somehow cast the BBSs BO as the BO of choice, then I could get to them. How do I do this?
Thanks,
Bill
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Filling a BO from a BBS
Bill Cunnien
-
17 Years Ago
Really, the best way would be to create your ReportBaseBBS class as a...
Trent L. Taylor
-
17 Years Ago
Totally Awesome! :w00t: :w00t: :w00t: (bows)
Bill Cunnien
-
17 Years Ago
LOL...thanks...hope it helps :)
Trent L. Taylor
-
17 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search