Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods > InvokeMethod MethodInvokeMethod calls the specialized method or user-created method named in the argument. VB SyntaxBusComp.InvokeMethod methodName, methodArgs
eScript SyntaxBusComp.InvokeMethod(methodName, methArg1, methArg2, ..., methArgn); ReturnsIn Server Script, returns a string containing the result of the method. In Browser Script, returns a property set. UsageUse InvokeMethod to call methods on a business component object that are not exposed directly through the object interface. Specialized methods are typically methods implemented in applet or business component classes other than CSSFrame and CSSBusComp, respectively, that is, specialized classes. NOTE: The InvokeMethod method should be used only with documented specialized methods. Siebel Systems does not support calling specialized methods with InvokeMethod, unless they are listed in this book. Used WithCOM Data Control, Java Data Bean, Mobile Web Client Automation Server, Server Script ExampleThe following example is in Siebel VB: (general) (declarations) Function BusComp_PreInvokeMethod (MethodName As String) As Integer The following is the equivalent example in Siebel eScript. function BusComp_PreInvokeMethod (MethodName) InvokeMethod MethodsSiebel applications provide multiple methods for manipulating files stored in the Siebel File System. These methods may be invoked using server script (Siebel VB, eScript) or using one of our programmatic interfaces (Mobile Web Client Automation Server - connected mode only, COM Data Control, Java Data Bean). The methods available for manipulating the file system always store or retrieve the file to and from the local file system. For example, if you construct a Java client using the Java Data Bean to manipulate the file system, all files must be accessible from the Siebel Server. You can use UNC naming conventions (for example: \\server\dir\file.txt) or standard DOS directories (for example: D:\dir\file.txt) for file access, but the UNC path or mounted file system must be accessible to the Siebel Server. These methods do not serialize the files from a remote client and place them in the Siebel file system. Methods that manipulate files are available for business components whose Class is 'CSSBCFile'. The methods can be accessed using COM Data Control, Java Data Bean, Mobile Web Client Automation Server, and Server Script. The following methods are available for use with InvokeMethod: CreateFileTo create a file in the Siebel file system from an external source, use the business component CreateFile method. Before calling CreateFile, make sure that a new business component record has been created using the NewRecord method for the business component. SyntaxBusComp.InvokeMethod("CreateFile", SrcFilePath, KeyField, keepLink) ReturnsA string containing the values of "Success" or "Error" depending on whether or not the operation succeeded. Used WithCOM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script GenerateProposalGenerateProposal creates a new proposal record. The DocServer handles the work of generating the actual proposal. SyntaxTo specify a template: To use the default proposal template: Used WithBrowser Script, COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script GetFileObtains a file from the Siebel file system and places that file on the local file system of the Siebel Server or Mobile Client. Note that you must be properly positioned on the desired file attachment record to get the file and have it placed on the local file system's temporary directory. SyntaxBusComp.InvokeMethod("GetFile", KeyField)
ReturnsA string containing "Success, <outFilePath>" if the operation succeeded. OutFilePath is the fully qualified path of the file on the Client/Server machine in the user's temp directory. The return value is "Error" if the operation failed. Used WithCOM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script PutFileUpdates a file in the Siebel file system with a newer file. Note that you must be properly positioned on the desired file attachment record to update the file in the file system. SyntaxBusComp.InvokeMethod("PutFile", SrcFilePath, KeyField) ReturnsA string containing the values of "Success" or "Error" depending on whether or not the operation succeeded. UsageAfter using PutFile to save a file attachment the updated attachment is not visible in the user interface until you call the WriteRecord method. For more information about WriteRecord, read WriteRecord Method. Used WithCOM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script RefreshRecordThis method refreshes the business component, which triggers an update of the business component fields in the client display and positions the cursor on the context record. SyntaxretVal = BusComp.InvokeMethod("RefreshRecord") ReturnsUsed WithBrowser Script, COM Data Control, Java Data Bean, Mobile Web Client Automation Server, Server Script SetAdminModeThis method is particularly useful if you need to replicate the behavior enforced by the 'Admin' property of the View object by disabling all visibility rules for the business component. SyntaxBusComp.InvokeMethod("SetAdminMode", flag) ReturnsUsed WithCOM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script |
Siebel Object Interfaces Reference |