Filling a BO from a BBS


Author
Message
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
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
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