Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Open UI > Siebel Open UI Application Programming Interface > Methods of the Siebel Open UI Application Programming Interface > Application Model ClassThis topic describes the methods that Siebel Open UI uses with the Application Model class. It includes the following information:
CanInvokeMethod Method for Application ModelsThe CanInvokeMethod method that Siebel Open UI uses for application models determines whether or not Siebel Open UI can invoke a method. It uses the same syntax as the CanInvokeMethod method that Siebel Open UI uses for presentation models. For more information, see CanInvokeMethod Method for Presentation Models. ClearMainView MethodThe ClearMainView method removes values for the following items:
ClearMainView uses the following syntax: ClearMainView only removes values for objects that reside in the client. It does not visually destroy these objects. If the user attempts to use an object that ClearMainView has cleared, then Siebel Open UI might not work as expected. GenerateSrvrReq MethodThe GenerateSrvrReq method creates a request string that Siebel Open UI sends to the Siebel Server according to the current context of the application. It returns a string that includes a description of the full request. It uses the following syntax: var request = SiebelApp.S_App.GenerateSrvrReq In this example, the return value includes a string that contains the following information: http(s)://server_name/callcenter_enu/start.swe?SWECmd=LogOff&SWEKeepContext=1&SWERPC=1&SRN=L8ct6oeEsPA3Cj7pF6spebyCLm2mVGpB0D0tqGMcflcb&SWEC=18&SWEActiveApplet=Client Active Applet&SWEActiveView=Client Active View GetAccessibilityEnhanced MethodThe GetAccessibilityEnhanced method determines whether or not accessibility is enabled. It returns a string that includes one of the following values: GetActiveBusObj MethodThe GetActiveBusObj method returns the name of the business object that is currently active in the client. It uses the following syntax: var busObj = SiebelApp.S_App.GetActiveBusObj(); GetActiveView MethodThe GetActiveView method returns the name of the view that is currently active in the client. It uses the following syntax: var view = SiebelApp.S_App.GetActiveView(); For more examples that use the GetActiveView method, see the following topics:
GetAppletControlInstance MethodThe GetAppletControlInstance method creates a control. It returns the name of the control that it creates. It uses the following syntax: GetAppletControlInstance var myControl = SiebelApp.S_App.GetAppletControlInstance ( For another example that uses the GetAppletControlInstance method, see Customizing the Setup Logic of the Presentation Model. GetAppTitle MethodThe GetAppTitle method returns the title of the current Siebel application. It returns this title in a string. It uses the following syntax: var appTitle = SiebelApp.S_App.GetAppTitle(); GetDirection MethodThe GetDirection method determines the direction that Siebel Open UI uses to display text. It returns one of the following values:
GetName Method for Application ModelsThe GetName method that Siebel Open UI uses for application models returns the name of the current Siebel application. For example, Siebel Call Center. It returns this name in a string. It uses the following syntax: activeView.ExecuteFrame (activeApplet.GetName(), [{field: this.Get For information about the GetName method that Siebel Open UI uses for other classes, see GetName Method for Applets see GetName Method for Applet Controls. GetPageURL MethodThe GetPageURL method returns the URL that the Siebel application uses. It returns this value without a query string. For example, it can return the following value: http://computer_name.example.com/start.swe finalurl = SiebelApp.S_App.GetPageURL() + strURL.split("start.swe")[1]; GetProfileAttr MethodThe GetProfileAttr method returns the value of a user profile attribute. It uses the following syntax: GetProfileAttr (attribute_name) For examples that use the GetProfileAttr method, see Adding Custom Manifest Expressions and Configuring Siebel Open UI to Use Different Web Templates According to the Applet Mode. GetService MethodThe GetService method creates a business service instance that allows Siebel Open UI to call a business service method that this business service instance contains. It returns the business service name. It uses the following syntax: SiebelApp.S_App.GetService
For example, assume you must configure Siebel Open UI to call a business service from custom code that resides on the client, and that this code does not bind an applet control that resides in the repository to a business service. You can use the GetService method to create a business service instance that Siebel Open UI can use to call a business service method that this business service contains. Assume you must configure Siebel Open UI to call the following business service: The following code creates an instance of this business service: var service = SiebelApp.S_App.GetService You can configure Siebel Open UI to call a business service method that this business service contains after this instance is available. For example, the following code calls the GoToInbox method that the Task UI Service (SWE) business service contains: if For more examples that use GetService, see the following topics:
For information about Siebel Open UI uses GetService with InvokeMethod, see InvokeMethod Method for Business Services. GotoView MethodThe GotoView method navigates the user to a view in the client. It uses the following syntax: SiebelApp.S_App.GotoView(view, viewId, strURL, strTarget);
For example, assume SiebelApp.S_App.GotoView(view, viewId, strURL, strTarget); For more examples that use the GotoView method, see the following topics:
For more information about using this method, see Life Cycle Flows of User Interface Elements. Work That Siebel Open UI Does When it Runs the GotoView MethodSiebel Open UI does the following work when it runs the GotoView method:
InvokeMethod Method for Application ModelsThe InvokeMethod method that Siebel Open UI uses for application models calls a method. It returns a value from the method that it calls. It uses the following syntax: SiebelApp.S_App.InvokeMethod
For example, the following code calls the NextApplet method. This method sets the next applet as the active applet of a view: SiebelApp.S_App.InvokeMethod For more examples that use the InvokeMethod method, including for Disconnected clients, see the following topics:
For more information about using InvokeMethod, see Calling Methods for Applets and Business Services. For more information about the InvokeMethod method that Siebel Open UI uses for other classes, see InvokeMethod Method for Presentation Models and InvokeMethod Method for Business Services. Values That You Can Set for the AI ArgumentYou can use the ai (additional input) argument to specify how Siebel Open UI runs an AJAX (Asynchronous JavaScript And XML) request. For more information about AJAX, see the Web site that describes Including Ajax Functionality in a Custom JavaServer Faces Component at http://www.oracle.com/technetwork/java/javaee/tutorial-jsp-140089.html. Table 31 lists the values that you can use with the ai argument. For example, to use the async value, you use
IsExtendedKeyBoard MethodThe IsExtendedKeyBoard method determines whether or not Siebel Open UI is configured to use extended keyboard shortcuts. It returns one of the following values:
IsMobileApplication MethodThe IsMobileApplication method determines whether or not Mobile is enabled for the Siebel application that is currently running in the client. It returns a string that includes one of the following values: For an example that uses the IsMobileApplication method, see Determining Whether or Not Siebel Open UI Is Enabled for Siebel Mobile. LogOff MethodThe LogOff method calls the Siebel Server, and then returns the Login page to the client. It uses the following syntax: LookupStringCache MethodThe LookupStringCache method gets a string from the client string cache. It uses the following syntax: // Assume appletControl to be the reference of an applet control. For another example that uses the LookupStringCache method, see GetPrompt Method. NewProperty Set MethodThe NewPropertySet method creates a new property set instance. It returns this instance. It uses the following syntax: For example, the following code resides in the alarm.js file: var returnPropSet = App ().NewPropertySet(); For more examples that use the NewPropertySet method, see Customizing the Presentation Model to Delete Records and Allowing Users to Interact with Clients During Business Service Calls. RemoveService MethodThe RemoveService method removes a business service from the client. It uses the following syntax: RemoveService (business_service_name) For example, the following code removes the Task UI Service (SWE) business service: var service = SiebelApp.S_App.GetService If you use RemoveService to remove a business service that does not exist, then Siebel Open UI might not behave as predicted. SetDiscardUserState MethodThe SetDiscardUserState method sets a property in the client that configures Siebel Open UI to not evaluate the state before it navigates to another view. It uses the following syntax:
// A business condition is met that requires Siebel Open UI to automatically navigate the user. |
Configuring Siebel Open UI | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |