Bookshelf Home | Contents | Index | PDF |
Siebel Developer's Reference > Operators and Expressions > Expressions > Using the Division FunctionsThis topic includes examples that use the division functions. Using the Division Name Function to Display the Division NameThis example describes how to create a calculated field that displays the division name of the user who is currently logged in. If this user creates a service request, then Siebel CRM displays this field. To use the DivisionName function to display the division name
Searching or Sorting According to the DivisionYou can use the DivisionId function and DivisionName function in a search specification, sort specification, or calculated value. For example, assume Siebel CRM must display only the employees who reside in the same division as the person who is currently logged in. To configure this requirement, you can add the following DivisionId function to the Search Specification property of an applet: "DivisionId() = [Division Id]" These functions are not available in a script. To get the division ID or division name in a script, you must use the GetFieldValue business component method. For example, you can use the following code in a Siebel eScript script to get the division ID: var oEmpl = TheApplication().GetBusObject("Employee"); var bcEmp = oEmpl.GetBusComp("Employee"); |
Siebel Developer's Reference | Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |