Show TOC

Background documentationi5SPCChart Methods Locate this document in the navigation structure

 

You can use scripting methods to return information from an SAP Manufacturing Integration and Intelligence (SAP MII) statistical process control (SPC) chart.

Features

All chart properties are accessible through get and set methods. To retrieve a chart attribute, use the get method. You can define values using the set method.

The following table lists common methods to use with i5SPC charts:

Method

Use

int getLowerPointByID(String sID)

Same as int getUpperPointByID(String sID), but for the lower chart.

int getUpperPointByID(String sID)

Returns the point number for an ID in the upper chart.

For example, enter BATCH0005 as the ID, and it returns 6 as the point number.

iSPCChartComponent getChartObject()

Obtains a reference to the underlying chart display object (the iSPCChartComponent class). For more information, see i5SPC Component Methods.

setLowerSelectedPoint(int nPoint)

Selects a point in the lower SPC chart.

setLowerSelectedPointByID(String sID)

Same as setUpperSelectedPointByID(String sID), but for the lower chart.

setUpperSelectedPoint(int nPoint)

Selects a point in the upper SPC chart.

setUpperSelectedPointByID(String sID)

Selects a point in the upper SPC chart by ID and not point number. The ID is the ID column mapping which appears in the SPC results details on the context menu.

void Print()

Displays an HTML page containing a GIF representation of the current chart that can be printed.

void update(boolean bReloadData)

Updates the chart contents. If the associated query is time-based, the refresh() method updates the start and end date based on the current time less the duration divided by the duration units. The updateChart method does not change the start and end dates.