Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
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 Offline ClassesThis topic describes methods that you can use that reside in the offline classes. It includes the following information: These methods reside in the OfflineAppMgr class, except for SetErrorMsg. It resides in the OfflineErrorObject class. setReturnValue MethodThe setReturnValue method sets the return value that Siebel Open UI sends to the method that calls the setReturnValue method. It uses the following syntax: $.setReturnValue(return_value) $.setReturnValue({err: errCode,retVal:bRet})
If you do not use setReturnValue, then Siebel Open UI sends a retObj with err set to null and retVal set to empty, by default. For examples that use the setReturnValue method, see Registering Methods to Make Sure Siebel Open UI Runs Them in the Correct Sequence and SetErrorMsg Method. callback MethodThe callback method registers the done handler. it uses the following syntax: $.callback (scope,done_handler)
PharmaCallSubmitsvc.prototype.Submit = function () { For another example that uses this method, Registering Methods to Make Sure Siebel Open UI Runs Them in the Correct Sequence. eachAsyncOp MethodThe eachAsyncOp method iteratively calls an asynchronous method. It uses the following syntax: $.eachAsyncOp(scope,configObj)
$.eachAsyncOp(this,configobj); The eachAsyncOp method handles the done handlers for each iteration. It requires a configuration object that includes the following properties as inputs:
SetErrorMsg MethodThe SetErrorMsg method defines an error message for a business service that you customize. It returns nothing. It uses the following Syntax: SiebelApp.S_App.OfflineErrorObject.SetErrorMsg("messageKey", errParamArray);
For an example that uses SetErrorMsg, see Configuring Error Messages for Disconnected Clients. For an example that uses SetErrorMsg in the context of a call to a custom business service, see Registering Methods to Make Sure Siebel Open UI Runs Them in the Correct Sequence. |
![]() |
![]() ![]() |
Configuring Siebel Open UI | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |