Selecting and Highlighting Data Points

Users can select one or more data points (bars, slices, and so on) on a chart. Selection creates a highlight around the data item. Users can also de-select one or more of these items.

Selection can trigger:

  • FieldChange PeopleCode for those data items.

  • Redirection to a URL for the data items as defined by the SetDataURLs method.

De-selection can trigger:

  • FieldChange PeopleCode for the RECORD.FIELD associated with the chart control.

  • Redirection to a URL for the chart as defined by the ChartURL property.

In addition, users can interactively change the chart type—for example, changing a pie chart to display as a bar chart.

PeopleCode features allow PeopleSoft application to manage and maintain user-selected data items:

  • Use the DataSelectionMode property of the Chart class to specify whether data selection is available for a chart.

  • Use the aSelections property of the ChartClientState class to identify which data items are selected on a chart.

  • Use the nType property of the ChartClientState class to identify which chart type was selected by the user.

  • Use the SetSelectedData method of the Chart class to redraw a chart while maintaining which data items were previously selected by the user.