GetOrgChart function

Syntax

GetOrgChart(RecordName.FieldName)

Description

Use the GetOrgChart function to get a reference to an OrgChart object.

A chart must be associated with a record and field merely so that the chart object can be instantiated in PeopleCode. Which record and field you use doesn't matter. Commonly, the same derived/work record is used for all the charts in an application.

Parameters

Parameter Description

RecordName.FieldName

Specify the record and field associated with the chart you want to get.

Returns

A reference to a an OrgChart object.

Example

&ocOrgChart = GetOrgChart(CHARTREC_WRK.CHART_FLD);