Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Business Applications > Configuring the Customer Dashboard > Options to Update the Customer Dashboard > Using Siebel Visual Basic or Siebel eScript to Update Information in the Customer DashboardYou can use Siebel Visual Basic or Siebel eScript to update information in the Customer Dashboard or pull information from the Customer Dashboard. The Customer Dashboard is a business service, You must use the following command: GetService("Persistent Customer dashboard") You use the following commands to pull information from the dashboard: Command to Get the Record Id of the Current Dashboard RecordThis GetCurrentContactId command returns the record Id for the record that Siebel CRM currently displays in the Customer Dashboard. For example:
Do not define any input arguments. Always define ContactId as the output argument. The Customer Dashboard uses the ContactId variable. In this situation, this variable includes the record ID of the business component whose data Siebel CRM currently displays in the Customer Dashboard. Example of the GetCurrentContactId CommandThe following code is an example of the GetCurrentContactId command: bs.InvokeMethod("GetCurrentContactId",inpargs,outargs); var fvalue = outargs.GetProperty("Contact Id"); // do something with the contact ID Command to Get the Value of the Current Dashboard FieldThe GetDashboardFieldValue command returns the current field value of the current record in the Customer Dashboard. The input argument is the name-value pair for the Customer Dashboard field. The output argument is Field Value. Example of the GetDashboardFieldValue CommandThe following code is an example of the GetDashboardFieldValue command: inpargs.SetProperty("Field Name","Field 4"); bs.InvokeMethod("GetDashboardFieldValue",inpargs,outargs); var fvalue = outargs.GetProperty("Field Value"); // do something with the field value Update Dashboard CommandYou use the Update Dashboard command to enter a new record in the Customer Dashboard. This example uses the following name-value pairs as input arguments: Example of the Update Dashboard CommandThe following code is an example of the Update Dashboard command: inpargs.SetProperty("Source Name","Base View", "Buscomp Name", "Contact", "RowId", "E301"); bs.InvokeMethod("Update Dashboard",inpargs,outargs); Examples of Using Customer Dashboard Commands with ScriptThe examples in this topic use Customer Dashboard commands to do the following:
Example of Using Customer Dashboard Commands with Siebel eScriptThe following example script is written in Siebel eScript. For more information, see Siebel eScript Language Reference: function Script_Open () bs.InvokeMethod("GetCurrentContactId",inpargs,outargs); inpargs.SetProperty("Field Name","Field 4"); inpargs.SetProperty("Field Name","Field Time"); Clib.fclose(fn1); Example of Using Customer Dashboard Commands with Siebel Visual BasicThe following example script is written in Siebel Visual Basic. For more information, see Siebel VB Language Reference: Dim bs as Service Open "d:\sabari.txt" for Output as #1 bs.InvokeMethod "GetCurrentContactId",inpargs,outargs Inpargs.SetProperty "Field Name","Field 4" |
Configuring Siebel Business Applications | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |