Overview of Creating an Organization Chart

To create an organization chart you will develop an application that comprises these elements:

  • A chart page control that displays the chart on a page.

    You can place more than one chart control on a page. Each chart control must be associated with a different field.

    If more than one pagelet with organization charts appear simultaneously, each chart must be associated with a unique chart record field.

  • A chart data record, or organization chart node record, based on the PTORGNODE_SBR subrecord, that contains the data for the chart.

  • A PeopleCode program, usually in the page Activate event, that instantiates the chart, links the chart to the chart control, defines the chart attributes, and populates the chart data rowset.

  • FieldChange PeopleCode programs associated with the chart data record fields.

    See Organization Chart Actions and Events.

Depending on which organization chart features your chart implements, you may need to include these elements in your application:

  • A pop-up chart data record, based on the PTORGPOPUPNODE_SBR subrecord.

  • A breadcrumb record, based on the PTORGCRMB_SBR subrecord.

  • Drop-down list records, based on the PTORGBOXLIST_SBR and PTORGBOXFLD_SBR subrecords.

  • A node display record, based on the PTNODE_DISP_SBR subrecord.

  • An IM data record, based on the PTORGIM_SBR subrecord.

  • Additional PeopleCode to manage the corresponding record data and set attributes for the chart features.

  • FieldChange PeopleCode programs associated with the corresponding record fields.

    See Organization Chart Actions and Events.

The chart data record and all of the records you use to implement organization chart features, such as the pop-up data record, drop down list records, node display record, must be in the component buffer at runtime.

If your application implements zooming, or schema levels, you will need to incorporate PeopleCode to manage the schema levels.

See Implementing Zoom Schemas (Optional).