Configuring Siebel Open UI > Customizing Siebel Open UI for Siebel Mobile Disconnected > Methods You Can Use to Customize Siebel Mobile Disconnected >

Methods You Can Use in the Business Object Class


This topic describes methods that you can use that reside in the Business Object class. It includes the following information:

GetBusComp Method for Business Objects

The GetBusComp method returns the business component instance that a business object references. It uses the following syntax:

SiebelApp.S_App.Model.GetBusObj(business_object).GetBusComp(business_component)

where:

  • business_object identifies the name of a business object.
  • business_component identifies the name of a business component.

Each view references a business object, and each business object references one or more business components. If you configure Siebel Open UI to call GetBusComp in the context of a business object, then you must do the following:

  • use the business_object argument to specify the name of the business object that the view references.
  • use the business_component argument to specify the name of a business component that the business object references.

For example, the following code gets the business component instance for the Order Entry - Orders business component that the Service Request business object references:

SiebelApp.S_App.Model.GetBusObj("ServiceRequest").GetBusComp("Order Entry - Orders")

For information about using BusComp in the context of an applet, see BusComp Method for Applets. For more information about views, business objects, and business components, and how they reference each other, see Configuring Siebel Business Applications.

GetLastErrCode Method for Business Objects

The GetLastErrCode method returns the error code for the most recent error that the disconnected client logged. It uses the following syntax:

BusObj.GetLastErrCode()

For example:

ActiveBusObject().GetLastErrCode();

This method includes no arguments.

The error code that this method returns is a short integer. An error code of 0 (zero) indicates no error occurred.

GetLastErrText Method for Business Objects

The GetLastErrText method returns a string that contains the text message for the most recent error that the disconnected client logged. It uses the following syntax:

BusObj.GetLastErrText()

For example:

ActiveBusObject().GetLastErrText();

This method includes no arguments.

Name Method for Business Objects

The Name method returns the name of a business object. It uses the following syntax:

BusObject.Name();

This method includes no arguments.

Configuring Siebel Open UI Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.