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 Applet Class


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

BusComp Method for Applets

The BusComp method returns the business component that the applet references. It uses the following syntax:

Applet.BusComp()

For example, the following code gets the metadata for the business component that the active applet references:

SiebelApp.S_App.FindApplet(appletName).BusComp();

Each applet references a business component. If you configure Siebel Open UI to call BusComp on an applet, then it returns the business component that this applet references.

The BusComp method includes no arguments.

For information about using BusComp in the context of a business object, see GetBusComp Method for Business Objects.

BusObject Method for Applets

The BusObject method returns the business object that the business component references. It uses the following syntax:

Applet.BusObject()

For example:

SiebelApp.S_App.FindApplet(appletName).BusObject();

The BusObject method includes no arguments.

CanInvokeMethod Method

The CanInvokeMethod method determines whether or not Siebel Open UI can call a method. It returns the following properties. If you use CanInvokeMethod, then you must configure it so that it returns these properties:

  • Invoked. This property returns one of the following values:
    • true. Siebel Open UI examined the method.
    • false. Siebel Open UI did not examine the method.
  • RetVal. This property returns one of the following values:
    • true. Siebel Open UI can call the method.
    • false. Siebel Open UI cannot call the method.

The CanInvokeMethod method uses the following syntax:

Applet.CanInvokeMethod(methodName)

where:

  • methodName is a string that contains the name of the method that CanInvokeMethod examines. CanInvokeMethod gets this string as a property that resides in an input property set.

For examples that use CanInvokeMethod, see the following topics:

InvokeMethod Method for Applets

The InvokeMethod method calls a method. If you use InvokeMethod, then you must configure it so that it returns a property set that includes one of the following values:

  • true. Siebel Open UI called the method.
  • false. Siebel Open UI did not call the method.

It uses the following syntax:

Applet.InvokeMethod(methodName);

where:

  • MethodName is the value of an input property that identifies the method that InvokeMethod calls.

For example, InvokeMethod in the following code calls the method that the value of the svcMthdName variable contains:

Applet.InvokeMethod(svcMthdName);

For examples that use InvokeMethod, see Using Custom JavaScript Methods and Allowing Users to Commit Part Tracker Records.

Name Method for Applets

The Name method for an applet returns the name of an applet. It uses the following syntax:

Applet.Name()

For example:

SiebelApp.S_App.GetActiveView().GetActiveApplet().Name();

The Name method includes no arguments.

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