Getting References to Registered Business Objects
Getting a Business Object Reference from a Window or Page
To retrieve a reference to a registered business object (you may need to do so within a user control or subclassed control), you can use the window or page's GetBusinessObject() method. This method accepts a single string parameter specifying the class name of the business object to be retrieved (you don't need to include the class namespace).In C#:
Customer oCustomer = (Customer)this.GetBusinessObject("Customer");And in VB .NET:
Dim oCustomer As Customer = CType(Me.GetBusinessObject("Customer"), Customer)Alternately, if you prefer a stronger typing approach, you can call another overload of GetBusinessObject() that accepts a Type parameter.
In C#:
Customer oCustomer = (Customer)this.GetBusinessObject(typeof(Customer));And in VB .NET:
Dim oCustomer As Customer = CType(Me.GetBusinessObject(GetType(Customer)), Customer)
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 04/26/18
Comment or report problem with topic
