Design
- Last UpdatedJul 23, 2022
- 2 minute read
The fields in the graphic have a User Input link to custom properties that correspond to the SRO attributes for the characteristics. If the SRO has an input source for any of these properties, the user will not be able to change the value at run time as it will come from the mapped input source and not the input from the screen.
The graphic has an on show script to populate the list box with the names of the characteristics added to the SRO and contained in the SelectedCharNames object attribute. These will be the names exposed in the object and not necessarily the characteristic name defined in the MES database, as there are some restrictions in object attribute naming within System Platform. For example, if the MES characteristic name has a space in the name, the object attribute will replace the space with an underscore. The list in the graphic will show the System Platform object name with the underscore.
The graphic has a second script on data change of the selected characteristic from the list box that calls SetCustomPropertyValue to direct all the custom properties to the corresponding characteristic’s object attributes. This includes an object attribute that contains the MES characteristic name.
The graphic has a button script to clear all the values in the custom properties except the Sample ID and Operator.
The graphic has a More Info button that calls showGraphic on the QualityCharacteristicOutput graphic and sends the name of the selected characteristic from the list to the QualityCharacteristicOutput graphic.
The graphic has a Statistics button that is only available when the selected characteristic has the option to expose statistics enabled. The button calls showGraphic on the QualityCharacteristicStatistics graphic and sends the name of the selected characteristic from the list to the QualityCharacteristicStatistics graphic.
The Record Sample Char Data command writes to the corresponding command attribute. To the right of this command is an indicator that shows the status of the command. If there is an error in issuing the command, the error will be displayed in the error message box. If there is an error (or if the SRO is not configured to auto-reset the object), the reset command can be called by clicking the R button next to the error message.