MES Trace Graph

Sepasoft MES Module Suite

Trace Graph

A component that is added to visually see traceability results. It shows the flow of production for bulk lot (batch) and / or serialized items. This allows entering a lot (batch) number and seeing what went into making it up from raw materials through the production steps to the finished goods. Then if desired, product can be tracked beyond the production facility. Individual items can also tracked by using a serial number or other item identification.


Component Palette

If a node has a sublot that has a name that matches the Highlight Sublot Name, then text specified by the Sublot Match Text property will be displayed in the lot node. This is valuable at determining which lots contain the sublot (serial number) of interest.

The nodes are laid out in chronological order from left to right. The node type alternates starting with a segment then showing a lot. The idea behind this is there are lots that are inputs to an operation and there are lot that the operation produced. In the image below, the upper left node titled Unload Station 1 is the operation that vinegar was unloaded. When this operation was done, a new lot VIN 2988 was created. Then that lot was used in the operation of making of balsamic dressing at Mix Station 1, which produced balsamic dressing that resides in Holding Tank 2.

The Trace Graph component also is an excellent navigation tool to zero in on non-trace information. Because the date and times, material, equipment, lot numbers, serial number, etc. are known, other data can be filtered to match the trace information being shown. This gives, otherwise just time series data, context to specific lots and serialized items without the need to look it up manually potentially across multiple systems.

To support this functionality, the trace graph component has very configurable menus that are used to display additional non-trace information. When the menu is selected by the user, the associated date and times, lot number, material, personnel, etc. is included in the menu event so that data within and outside of Ignition can be looked up and displayed.


Features

User Menu Items Property

The User Menu Items property allows custom menu items to be added. Custom script can then be added to the userMenuItemClicked event handler to add functionality to this component. 

StepsDescription
1

Click the  icon on the User Menu Items property and add your custom menu items.


2

Add your custom script to the userMenuItemItemClicked event handler.


Node Configuration Property 

This property controls the appearance of each node. Click on the Dataset Viewer icon for the Behaviour property in Property Editor to set the values.

Name will filter the MES object name that should be included as nodes. Default, MaterialClass and ResponseSegment are the values inbuilt on Ignition, as shown below. HeaderBackground is the color of the node header. HeaderFontColor will decide the color of the text. Color of the node is determined by BodyBackground. BodyFontColor will decide the color of the text. The color of the nodes with sublots will be controlled by HasSublotFontColor. BorderColor is the color of the border.



Component Properties

Properties are provided that can be set to affect the operation and look of the component. They can be set through the Property Editor in the Designer or through scripting.

Example

Code
event.source.parent.getComponent('MES Trace Graph').detailedMode = False

Behavior

NameScriptingProperty TypeDescription
Allow Material Lot ModifyallowMaterialLotModifyBooleanIf true, show the modify menu item and allow material lots to be modified.
Allow Segment ModifyallowSegmentModifyBooleanIf true, show the modify menu item and allow response segments to be modified.
Lot NamelotNameStringLot name to show trace graph for. If this is set, it will ignore the Lot UUID property.
Lot UUIDlotUUIDStringLot UUID to show trace graph for. If the Lot Name property is set, this property will be ignored.
Highlight Sublot NamehighlightSublotNameStringOptionally, set the name of the sub lot to highlight.
User Menu ItemsuserMenuItemsDatasetA dataset that stores user menu items.
Enable Auto SizingenableAutoSizingBooleanIf true, auto size on right mouse clicked on open space.
Node ConfigurationnodeConfigurationDatasetA dataset that stores node configuration.



Data

NameScriptingProperty TypeDescription
Detailed ModedetailedModeBooleanIf true, more details are shown in the trace graph.
Max Fan CountmaxFanCountintThe maximum number of nodes to fan out from a single node or fan in from a single node.

Appearance

NameScriptingProperty TypeDescription
Lot Tool Tip FormatlotToolTipFormatString

Set to format the display of lot node tooltip. It is formatted in HTML and can reference the column names in the dataset that the trace graph display is generated from. The dataset results are the same as the Lot Trace Binding Function and Sublot Trace Binding Function that has full documentation of the available columns. Example<html>{LotName}<br/>{LotSequence}<br/>{LotStatus}<br/>{LotBeginDateTime}<br/>{LotEndDateTime}<br/>{MaterialName}<br/>{LotLocationName}</html>

Possible Tooltips are:

LotUUID
LotName
SublotUUID

SublotName
LotSequence
LotUse
LotBeginDateTime
LotEndDateTime
LotQuantity
LotStatus
MaterialUUID
MaterialName
LotLocationUUID
LotLocationName
SegmentUUID
SegmentName
SegmentBeginDateTime
SegmentEndDateTime
SegmentLocationUUID
SegmentLocationName

PrevSegmentUUID
PrevLotUUID
NextSegmentUUID
NextLotUUID
SegInCount
SegOutCount
LotInCount
LotOutCount
LotContainsSublot
LotAvailability
LotDescription
LotEnabled
LotAssembly
LotUnits
MaterialDescription
MaterialEnabled

EquipmentUUID
EquipmentName
EquipmentDescription
EquipmentPath
EquipmentEnabled

SublotDescription
SublotEnabled
SublotAssembly
SublotStatus

Sublots
CustomProperties

Segment Tool Tip FormatsegmentToolTipFormatString

Set to format to display the segment node tooltip. It is formatted in HTML and can reference the column names in the dataset that the trace graph display is generated from. The dataset results are the same as the Lot Trace Binding Function and Sublot Trace Binding Function that has full documentation of the available columns. Example:<html>{SegmentName}<br/>{SegmentLocationName}</html>

Possible Tooltips are:

LotUUID
LotName
SublotUUID

SublotName
LotSequence
LotUse
LotBeginDateTime
LotEndDateTime
LotQuantity
LotStatus
MaterialUUID
MaterialName
LotLocationUUID
LotLocationName
SegmentUUID
SegmentName
SegmentBeginDateTime
SegmentEndDateTime
SegmentLocationUUID
SegmentLocationName

PrevSegmentUUID
PrevLotUUID
NextSegmentUUID
NextLotUUID
SegInCount
SegOutCount
LotInCount
LotOutCount
LotContainsSublot
LotAvailability
LotDescription
LotEnabled
LotAssembly
LotUnits
MaterialDescription
MaterialEnabled

EquipmentUUID
EquipmentName
EquipmentDescription
EquipmentPath
EquipmentEnabled

SublotDescription
SublotEnabled
SublotAssembly
SublotStatus

Sublots
CustomProperties

Edge ColoredgeColorColorColor of the lines between nodes.
Sublot Match TextsublotMatchTextStringText to display when a lot contains the specified sublot name.
Breadcrumbs VisiblebreadcrumbVisibleBooleanDisplays a list of breadcrumb links to previously viewed lot information.
Breadcrumb FontbreadcrumbFontFontFont used to display the breadcrumb links.
Breadcrumb ColorbreadcrumbColorColorColor of the breadcrumb links.
Breadcrumb UnderlinedbreadcrumbUnderlinedBooleanShow the breadcrumb links as underlined.
Breadcrumb Max CountbreadcrumbMaxintThe maximum count of breadcrumbs to keep in history.
Breadcrumb Icon PathbreadcrumbSeparatorIconPathStringThe relative path of an icon image used to separate the breadcrumb links.
Editor Title FonteditorTitleFontFontFont for titles of editing panels.
Category FontcategoryFontFontFont for category titles in editing table.
Property FontpropertyFontFontFont for properties in editing table.
Description Area FontdescriptionAreaFontFontFont for description area of editing table.
Button FontbuttonFontFontFont for buttons.
Close Button FontcloseButtonFontFontFont of the button to close the editing panel.
Miscellaneous FontmiscellaneousFontFontFont for miscellaneous components.
Title Background ColortitleBackgroundColorColorColor of the title background in the editing panel.
Title Text ColortitleTextColorColorColor of the title text in the editing panel.
Close Button ColorcloseButtonColorColorColor of the button to close the editing panel.
Category Background ColorcategoryBackgroundColorColorBackground color of category rows.

Event Handlers

Event handlers provide the ability to add custom script when a user interacts with a component such as by clicking a mouse, selecting a menu item or when a component property changes.

menu

userMenuItemClicked

Code Snippet

Code
 if event.getMenuItemName() == 'Show Details':
    #Get the response segment
    segment = system.mes.loadMESObject(event.getUUID())
  
    #Get the parent operations response UUID from the segment
    operationUUID = segment.getPropertyValue('OperationsResponseRefUUID')
  
    #Pass the operation response UUID to the OperationDetails
    #window so that it knows which operation to show the details for.
    system.nav.openWindow('Popups/OperationDetails', {'uuid':operationUUID})
    system.nav.centerWindow('Popups/OperationDetails')
  
elif event.getMenuItemName() == 'User Menu Item 1':
    #Get the response segment
    segment = system.mes.loadMESObject(event.getUUID())
  
    #These values (and more) can be used to query data external to Track and Trace
    begin = segment.getPropertyValue('BeginDateTime')
    end = segment.getPropertyValue('EndDateTime')
    equip = segment.getEquipment()
    print "Segment details: begin = %s, equipment name = %s" % (begin, end, equip.getName())

Information

For various methods associated with this event, see Trace Graph User Menu Event.


This event fires when the menu item is clicked, or if the user selects the menu item using the keyboard and presses the Enter key. It can also occur if an access key or shortcut key is pressed that is associated with the MenuItem.

PropertyDescription
.sourceThe component that fired this event.
.menuItemNameName of the user menu item that triggered the event.
.nodeNameName of the node. This is the same as the name of the MES object that is associated with the node.
.objectTypeName of the MES object type that is associated with the node.
.uuidUUID of the MES object that is associated to the node.
.lotUUIDUUID of the material lot.
.lotNameName of the material lot.
.lotSequenceThe sequence number associated with the material lot.
.lotUseThe lot use type of the material.
.beginDateTimeDate and Time at which the event was triggered.
.materialUUIDUUID of the material.
.materialNameName of the material.
.lotEquipmentUUIDUUID of the equipment lot.
.lotEquipmentNameName of the equipment lot.
.segmentUUIDUUID of the segment.
.segmentNameName of the segment.
.segmentEquipmentUUIDUUID of the segment equipment.
.segmentEquipmentNameName of the segment equipment.

mouse

mouseClicked

This event signifies a mouse click on the source component. A mouse click the combination of a mouse press and a mouse release, both of which must have occurred over the source component. Note that this event fires after the pressed and released events have fired.

PropertyDescription
.sourceThe component that fired this event.
.buttonThe code for the button that caused this event to fire.
.clickCountThe number of mouse clicks associated with this event.
.xThe x-coordinate (with respect to the source component) of this mouse event.
.yThe y-coordinate (with respect to the source component) of this mouse event.
.popupTriggerReturns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists.
.altDownTrue (1) if the Alt key was held down during this event, false (0) otherwise.
.controlDownTrue (1) if the Ctrl key was held down during this event, false (0) otherwise.
.shiftDownTrue (1) if the Shift key was held down during this event, false (0) otherwise.

mouseEntered

This event fires when the mouse enters the space over the source component.

PropertyDescription
.sourceThe component that fired this event.
.buttonThe code for the button that caused this event to fire.
.clickCountThe number of mouse clicks associated with this event.
.xThe x-coordinate (with respect to the source component) of this mouse event.
.yThe y-coordinate (with respect to the source component) of this mouse event.
.popupTriggerReturns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists.
.altDownTrue (1) if the Alt key was held down during this event, false (0) otherwise.
.controlDownTrue (1) if the Ctrl key was held down during this event, false (0) otherwise.
.shiftDownTrue (1) if the Shift key was held down during this event, false (0) otherwise.

mouseExited

This event fires when the mouse leaves the space over the source component.


PropertyDescription
.sourceThe component that fired this event.
.buttonThe code for the button that caused this event to fire.
.clickCountThe number of mouse clicks associated with this event.
.xThe x-coordinate (with respect to the source component) of this mouse event.
.yThe y-coordinate (with respect to the source component) of this mouse event.
.popupTriggerReturns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists.
.altDownTrue (1) if the Alt key was held down during this event, false (0) otherwise.
.controlDownTrue (1) if the Ctrl key was held down during this event, false (0) otherwise.
.shiftDownTrue (1) if the Shift key was held down during this event, false (0) otherwise.

mousePressed

This event fires when a mouse button is pressed down on the source component.


PropertyDescription
.sourceThe component that fired this event.
.buttonThe code for the button that caused this event to fire.
.clickCountThe number of mouse clicks associated with this event.
.xThe x-coordinate (with respect to the source component) of this mouse event.
.yThe y-coordinate (with respect to the source component) of this mouse event.
.popupTriggerReturns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists.
.altDownTrue (1) if the Alt key was held down during this event, false (0) otherwise.
.controlDownTrue (1) if the Ctrl key was held down during this event, false (0) otherwise.
.shiftDownTrue (1) if the Shift key was held down during this event, false (0) otherwise.

mouseReleased

This event fires when a mouse button is released, if that mouse button's press happened over this component.

PropertyDescription
.sourceThe component that fired this event.
.buttonThe code for the button that caused this event to fire.
.clickCountThe number of mouse clicks associated with this event.
.xThe x-coordinate (with respect to the source component) of this mouse event.
.yThe y-coordinate (with respect to the source component) of this mouse event.
.popupTriggerReturns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists.
.altDownTrue (1) if the Alt key was held down during this event, false (0) otherwise.
.controlDownTrue (1) if the Ctrl key was held down during this event, false (0) otherwise.
.shiftDownTrue (1) if the Shift key was held down during this event, false (0) otherwise.

mouseMotion

mouseDragged

Fires when the mouse moves over a component after a button has been pushed.


PropertyDescription
.sourceThe component that fired this event.
.buttonThe code for the button that caused this event to fire.
.clickCountThe number of mouse clicks associated with this event.
.xThe x-coordinate (with respect to the source component) of this mouse event.
.yThe y-coordinate (with respect to the source component) of this mouse event.
.popupTriggerReturns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists.
.altDownTrue (1) if the Alt key was held down during this event, false (0) otherwise.
.controlDownTrue (1) if the Ctrl key was held down during this event, false (0) otherwise.
.shiftDownTrue (1) if the Shift key was held down during this event, false (0) otherwise.

mouseMoved

Fires when the mouse moves over a component, but no buttons are pushed.

PropertyDescription
.sourceThe component that fired this event.
.buttonThe code for the button that caused this event to fire.
.clickCountThe number of mouse clicks associated with this event.
.xThe x-coordinate (with respect to the source component) of this mouse event.
.yThe y-coordinate (with respect to the source component) of this mouse event.
.popupTriggerReturns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists.
.altDownTrue (1) if the Alt key was held down during this event, false (0) otherwise.
.controlDownTrue (1) if the Ctrl key was held down during this event, false (0) otherwise.
.shiftDownTrue (1) if the Shift key was held down during this event, false (0) otherwise.

propertyChange

propertyChange

Fires whenever a bindable property of the source component changes. This works for standard and custom (dynamic) properties.

PropertyDescription
.sourceThe component that fired this event.
.newValueThe new value that this property changed to.
.oldValueThe value that this property was before it changed. Note that not all components include an accurate oldValue in their events.
.propertyNameThe name of the property that changed. NOTE: Remember to always filter out these events for the property that you are looking for! Components often have many properties that change.

selectNode

Code
#This code will set a tooltip regarding the equipment path information
#Please expand the link below to see the various methods for selectNode event handler category
eqUUID = event.getSegmentEquipmentUUID()
eq = system.mes.loadMESObject(eqUUID)
event.source.setSegmentToolTipFormat(eq.getEquipmentPath())

Information

For various methods associated with this event handler category, see Trace Graph Select Node Event.

nodeClicked

The NodeClick event is generated when the user clicks a particular Node object.

PropertyDescription
.sourceThe component that fired this event.
.nodeNameName of the node. This is the same as the name of the MES object that is associated with the node.
.objectTypeName of the MES object type that is associated with the node.
.uuidUUID of the MES object that is associated to the node.
.lotUUIDUUID of the material lot.
.lotNameName of the material lot.
.lotSequenceThe sequence number associated with the material lot.
.lotUseThe lot use type of the material.
.beginDateTimeDate and Time to begin the segment.
.endDateTimeDate and Time to end the segment.
.materialUUIDUUID of the material.
.materialNameName of the material.
.lotEquipmentUUIDUUID of the equipment lot.
.lotEquipmentNameName of the equipment lot.
.segmentUUIDUUID of the segment.
.segmentNameName of the segment.
.segmentEquipmentUUIDUUID of the segment equipment.
.segmentEquipmentNameName of the segment equipment.

nodeEntered

This event is generated when the Node is being hovered over.

PropertyDescription
.sourceThe component that fired this event.
.nodeNameName of the node. This is the same as the name of the MES object that is associated with the node.
.objectTypeName of the MES object type that is associated with the node.
.uuidUUID of the MES object that is associated to the node.
.lotUUIDUUID of the material lot.
.lotNameName of the material lot.
.lotSequenceThe sequence number associated with the material lot.
.lotUseThe lot use type of the material.
.beginDateTimeDate and Time at which the event was triggered.
.endDateTimeDate and Time to end the segment.
.materialUUIDUUID of the material.
.materialNameName of the material.
.lotEquipmentUUIDUUID of the equipment lot.
.lotEquipmentNameName of the equipment lot.
.segmentUUIDUUID of the segment.
.segmentNameName of the segment.
.segmentEquipmentUUIDUUID of the segment equipment.
.segmentEquipmentNameName of the segment equipment.

Enter Node and Publish MES Document

Code
##Limit the types of nodes to Response Segments (i.e. the runtime capture of work in the plant)
if event.getType() == 'ResponseSegment':
	##LOAD A DOCUMENT FROM THE RESPONSE SEGMENT
	##From the event object, get the UUID of the node, in this case, the Response Segment.
	##Based on the Response Segment UUID, we will load a link (or lightweight reference) to the object
	##and pass that to the MES Document Viewer component.  The MES Document Viewer component 
	##will then be able to load complex data, such as a document, stored on the object.
	segLink = system.mes.object.link.create('ResponseSegment', event.getUUID())
	event.source.parent.getComponent('MES Document Viewer').selectedMESObject = segLink
	##Set the name of the document on the Document Viewer component
	event.source.parent.getComponent('MES Document Viewer').artifactName = 'Widget Work Instructions'
	
	##LOAD OPERATION INFO FROM THE OPERATIONS RESPONSE
	##Load the Response Segment in order to get the Operation reference information.
	##From the Operation UUID, create a link to the Operation and pass this link to the MES Operation Info component.
	seg = system.mes.loadMESObject(event.getUUID())
	orLink = system.mes.object.link.create('OperationsResponse', seg.getPropertyValue('OperationsResponseRefUUID'))
	event.source.parent.getComponent('MES Operation Info').mesObjectLink = orLink

nodeExited

This event is generated when drag gesture exits this Node.

PropertyDescription
.sourceThe component that fired this event.
.nodeNameName of the node. This is the same as the name of the MES object that is associated with the node.
.objectTypeName of the MES object type that is associated with the node.
.uuidUUID of the MES object that is associated to the node.
.lotUUIDUUID of the material lot.
.lotNameName of the material lot.
.lotSequenceThe sequence number associated with the material lot.
.lotUseThe lot use type of the material.
.beginDateTimeDate and Time at which the event was triggered.
.endDateTimeDate and Time to end the segment.
.materialUUIDUUID of the material.
.materialNameName of the material.
.lotEquipmentUUIDUUID of the equipment lot.
.lotEquipmentNameName of the equipment lot.
.segmentUUIDUUID of the segment.
.segmentNameName of the segment.
.segmentEquipmentUUIDUUID of the segment equipment.
.segmentEquipmentNameName of the segment equipment.




Extension Functions

beginRefresh

  • Description

Called before refresh begins. It can be used to display updating status messages.

  • Parameters

None

  • Return

Nothing

  • Scope

Client

endRefresh

  • Description

Called after refresh ends. It can be used to display updating status messages.

  • Parameters

Boolean cancelled - True if the request is cancelled. If a request for trace graph information is replaced with another request, then the first request is cancelled and this parameter will be True.

  • Return

Nothing

  • Scope

Client

loadIcon

  • Description

Provides a chance to change an icon. Based on the icon name parameter, return the image path to the icon to use in place of the default icon.

  • Parameters

self - A reference to the component that is invoking this function.

iconName - The name of the icon.

  • Returns

Nothing

  • Scope

Client

Example

Code
# This example will return a path to a different image to replace the default delete image:
if iconName == 'remove':
	return 'Builtin/icons/24/delete2.png'




Custom Methods

Custom methods allow you to add your own component functions to a component that can be called through scripting. This is a useful and clean method of re-using script that is specific to the component (say you want to update a visual aspect of the component in the same way whether a user clicks on the component or a window property value changes). See Component Custom Methods in the Ignition Help Manual for more information.




Customizers

This component does not have any custom properties.



Event Objects

Trace Graph Select Node Event

Description

This object is returned by the selectNode event handler for MES Trace Graph component.

Methods:


getBeginDateTime()

Description

Get the beginning date and time to limit the results to return.

Syntax

 getBeginDateTime()


  • Parameters

None

  • Returns

Date beginDateTime - The beginning date and time to filter results.

getEndDateTime()

Description

Get the end date and time to limit the results to return.

Syntax

 getEndDateTime()


  • Parameters

None

  • Returns

Date endDateTime - The end date and time to filter results.

getLotEquipmentName()

Description

Gets name assigned to the equipment lot.

Syntax

getLotEquipmentName()


  • Parameters

None

  • Returns

String lotEquipmentName -  The name of equipment lot.

getLotEquipmentUUID()

Description

Gets uuid assigned to the equipment lot.

Syntax

getLotEquipmentUUID()


  • Parameters

None

  • Returns

String lotEquipmentUUID -  The uuid of equipment lot.

getLotName()

Description

Gets name assigned to the material lot.

Syntax

getLotName()


  • Parameters

None

  • Returns

String lotName -  The name of material lot.

getLotSequence()

Description

Gets sequence of the material lot.

Syntax

getLotSequence()


  • Parameters

None

  • Returns

String lotSequence -  The sequence of material lot.

getLotUse()

Description

Gets use property for the material lot.

Syntax

getLotUse()


  • Parameters

None

  • Returns

String lotUse -  The use property of material lot.

getLotUUID()

Description

Gets uuid assigned to the material lot.

Syntax

getLotUUID()


  • Parameters

None

  • Returns

String uuid -  The uuid of material lot.

getMaterialName()

Description

Gets name assigned to the material object.

Syntax

getMaterialName()


  • Parameters

None

  • Returns

String name -  The name of material object.

getMaterialUUID()

Description

Gets uuid assigned to the material object.

Syntax

getMaterialUUID()


  • Parameters

None

  • Returns

String uuid -  The uuid of material object.

getNodeName()

Description

Returns name of the selected node.

Syntax

getNodeName()


  • Parameters

None

  • Returns

String name -  The name of the selected node.

getSegmentEquipmentName()

Description

Gets name assigned to the equipment segment.

Syntax

getSegmentEquipmentName()


  • Parameters

None

  • Returns

String segmentEquipmentName -  The name of equipment segment.

getSegmentEquipmentUUID()

Description

Gets uuid assigned to the equipment segment.

Syntax

getSegmentEquipmentUUID()


  • Parameters

None

  • Returns

String segmentEquipmentUUID -  The uuid of equipment segment.

getSegmentName()

Description

Gets name of the segment.

Syntax

getSegmentName()


  • Parameters

None

  • Returns

String name -  The name of the segment.

getSegmentUUID()

Description

Gets uuid of the segment.

Syntax

getSegmentUUID()


  • Parameters

None

  • Returns

String uuid -  The uuid of the segment.

getType()

Description

Gets type of the object.

Syntax

getType()


  • Parameters

None

  • Returns

String type -  The type of MES object.

getUUID()

Description

Gets uuid of the object.

Syntax

getUUID()


  • Parameters

None

  • Returns

String uuid -  The uuid of MES object.

setBeginDateTime(beginDateTime)

Description

Set the beginning date and time to limit the results to return.

Syntax

 setBeginDateTime(beginDateTime)


  • Parameters

Date beginDateTime - The beginning date and time to filter results.

  • Returns

Nothing

setEndDateTime(endDateTime)

Description

Set the end date and time to limit the results to return.

Syntax

 setEndDateTime(endDateTime)


  • Parameters

Date endDateTime - The end date and time to filter results.

  • Returns

Nothing

setLotEquipmentName(lotEquipmentName)

Description

Sets name assigned to the equipment lot.

Syntax

setLotEquipmentName(lotEquipmentName)


  • Parameters

String lotEquipmentName -  The name of equipment lot.

  • Returns

Nothing

setLotEquipmentUUID(lotEquipmentUUID)

Description

Sets uuid assigned to the equipment lot.

Syntax

setLotEquipmentUUID(lotEquipmentUUID)


  • Parameters

String lotEquipmentUUID -  The uuid of equipment lot.

  • Returns

Nothing

setLotName(lotName)

Description

Sets name for the material lot.

Syntax

setLotName(lotName)


  • Parameters

String lotName -  Name to set for material lot.

  • Returns

Nothing

setLotSequence(lotSequence)

Description

Gets sequence of the material lot.

Syntax

setLotSequence(lotSequence)


  • Parameters

String lotSequence -  The sequence of material lot.

  • Returns

Nothing

setLotUse(lotUse)

Description

Sets use property for the material lot.

Syntax

setLotUse(lotUse)


  • Parameters

String lotUse -  The use property of material lot.

  • Returns

Nothing

setLotUUID(uuid)

Description

Sets uuid to the material lot.

Syntax

setLotUUID(uuid)


  • Parameters

String uuid -  The uuid to set for material lot.

  • Returns

Nothing

setMaterialName(name)

Description

Sets name assigned to the material object.

Syntax

setMaterialName(name)


  • Parameters

String name -  The name of material object.

  • Returns

Nothing

setMaterialUUID(materialUUID)

Description

Sets uuid assigned to the material object.

Syntax

setMaterialUUID(materialUUID)


  • Parameters

String uuid -  The uuid of material object.

  • Returns

Nothing

setNodeName(name)

Description

Sets name of the selected node.

Syntax

setNodeName(name)


  • Parameters

String name -  The name of the selected node.

  • Returns

Nothing

setSegmentEquipmentName(segmentEquipmentName)

Description

Sets name assigned to the equipment segment.

Syntax

setSegmentEquipmentName(segmentEquipmentName)


  • Parameters

String segmentEquipmentName -  The name of equipment segment.

  • Returns

Nothing

setSegmentEquipmentUUID(segmentEquipmentUUID)

Description

Sets uuid assigned to the equipment segment.

Syntax

setSegmentEquipmentUUID(segmentEquipmentUUID)


  • Parameters

String segmentEquipmentUUID -  The uuid of equipment segment.

  • Returns

Nothing

setSegmentName(name)

Description

Sets name of the segment.

Syntax

setSegmentName(name)


  • Parameters

String name -  The name of the segment.

  • Returns

Nothing

setSegmentUUID(segmentUUID)

Description

Sets uuid of the segment.

Syntax

setSegmentUUID(segmentUUID)


  • Parameters

String uuid -  The uuid of the segment.

  • Returns

Nothing

setType(type)

Description

Sets type of the object.

Syntax

setType(type)


  • Parameters

String type -  The type of MES object.

  • Returns

Nothing

setUUID(uuid)

Description

Sets uuid of the object.

Syntax

setUUID(uuid)


  • Parameters

String uuid -  The uuid of MES object.

  • Returns

Nothing

Trace Graph User Menu Event

Description

This object is returned by the userMenuItemClicked event handler for MES Trace Graph component.

Methods:


getBeginDateTime()

Description

Get the beginning date and time to limit the results to return.

Syntax

 getBeginDateTime()


  • Parameters

None

  • Returns

Date beginDateTime - The beginning date and time to filter results.

getEndDateTime()

Description

Get the end date and time to limit the results to return.

Syntax

 getEndDateTime()


  • Parameters

None

  • Returns

Date endDateTime - The end date and time to filter results.

getLotEquipmentName()

Description

Gets name assigned to the equipment lot.

Syntax

getLotEquipmentName()


  • Parameters

None

  • Returns

String lotEquipmentName -  The name of equipment lot.

getLotEquipmentName()

Description

Gets name of the equipment lot.

Syntax

getLotEquipmentName()


  • Parameters

None

  • Returns

String lotEquipmentName -  The name of equipment lot.

getLotEquipmentUUID()

Description

Gets uuid assigned to the equipment lot.

Syntax

getLotEquipmentUUID()


  • Parameters

None

  • Returns

String lotEquipmentUUID -  The uuid of equipment lot.

getLotName()

Description

Gets name assigned to the material lot.

Syntax

getLotName()


  • Parameters

None

  • Returns

String lotName -  The name of material lot.

getLotSequence()

Description

Gets sequence of the material lot.

Syntax

getLotSequence()


  • Parameters

None

  • Returns

String lotSequence -  The sequence of material lot.

getLotUse()

Description

Gets use property for the material lot.

Syntax

getLotUse()


  • Parameters

None

  • Returns

String lotUse -  The use property of material lot.

getLotUUID()

Description

Gets uuid assigned to the material lot.

Syntax

getLotUUID()


  • Parameters

None

  • Returns

String uuid -  The uuid of material lot.

getMaterialName()

Description

Gets name assigned to the material object.

Syntax

getMaterialName()


  • Parameters

None

  • Returns

String name -  The name of material object.

getMaterialUUID()

Description

Gets uuid assigned to the material object.

Syntax

getMaterialUUID()


  • Parameters

None

  • Returns

String uuid -  The uuid of material object.

getMenuItemName()

Description

Returns the name of the selected menu item.

Syntax

 getMenuItemName()


  • Parameters

None

  • Returns

String itemName - The name of the selected menu item.

getNodeName()

Description

Returns name of the node.

Syntax

getNodeName()


  • Parameters

None

  • Returns

String name -  The name of the node.

getObjectType()

Description

Gets type of the object.

Syntax

getObjectType()


  • Parameters

None

  • Returns

String type -  The type of MES object.

getSegmentEquipmentName()

Description

Gets name assigned to the equipment segment.

Syntax

getSegmentEquipmentName()


  • Parameters

None

  • Returns

String segmentEquipmentName -  The name of equipment segment.

getSegmentEquipmentUUID()

Description

Gets uuid assigned to the equipment segment.

Syntax

getSegmentEquipmentUUID()


  • Parameters

None

  • Returns

String segmentEquipmentUUID -  The uuid of equipment segment.

getSegmentName()

Description

Gets name of the segment.

Syntax

getSegmentName()


  • Parameters

None

  • Returns

String name -  The name of the segment.

getSegmentUUID()

Description

Gets uuid of the segment.

Syntax

getSegmentUUID()


  • Parameters

None

  • Returns

String uuid -  The uuid of the segment.

getUUID()

Description

Gets uuid of the object.

Syntax

getUUID()


  • Parameters

None

  • Returns

String uuid -  The uuid of MES object.

setBeginDateTime(beginDateTime)

Description

Set the beginning date and time to limit the results to return.

Syntax

 setBeginDateTime(beginDateTime)


  • Parameters

Date beginDateTime - The beginning date and time to filter results.

  • Returns

Nothing

setEndDateTime(endDateTime)

Description

Set the end date and time to limit the results to return.

Syntax

 setEndDateTime(endDateTime)


  • Parameters

Date endDateTime - The end date and time to filter results.

  • Returns

Nothing

setLotEquipmentName(lotEquipmentName)

Description

Sets name assigned to the equipment lot.

Syntax

setLotEquipmentName(lotEquipmentName)


  • Parameters

String lotEquipmentName -  The name of equipment lot.

  • Returns

Nothing

setLotEquipmentUUID(lotEquipmentUUID)

Description

Sets uuid assigned to the equipment lot.

Syntax

setLotEquipmentUUID(lotEquipmentUUID)


  • Parameters

String lotEquipmentUUID -  The uuid of equipment lot.

  • Returns

Nothing

setLotName(lotName)

Description

Sets name for the material lot.

Syntax

setLotName(lotName)


  • Parameters

String lotName -  Name to set for material lot.

  • Returns

Nothing

setLotSequence(lotSequence)

Description

Gets sequence of the material lot.

Syntax

setLotSequence(lotSequence)


  • Parameters

String lotSequence -  The sequence of material lot.

  • Returns

Nothing

setLotUse(lotUse)

Description

Sets use property for the material lot.

Syntax

setLotUse(lotUse)


  • Parameters

String lotUse -  The use property of material lot.

  • Returns

Nothing

setLotUUID(uuid)

Description

Sets uuid to the material lot.

Syntax

setLotUUID(uuid)


  • Parameters

String uuid -  The uuid to set for material lot.

  • Returns

Nothing

setMaterialName(name)

Description

Sets name assigned to the material object.

Syntax

setMaterialName(name)


  • Parameters

String name -  The name of material object.

  • Returns

Nothing

setMaterialUUID(materialUUID)

Description

Sets uuid assigned to the material object.

Syntax

setMaterialUUID(materialUUID)


  • Parameters

String uuid -  The uuid of material object.

  • Returns

Nothing

setSegmentEquipmentName(segmentEquipmentName)

Description

Sets name assigned to the equipment segment.

Syntax

setSegmentEquipmentName(segmentEquipmentName)


  • Parameters

String segmentEquipmentName -  The name of equipment segment.

  • Returns

Nothing

setSegmentEquipmentUUID(segmentEquipmentUUID)

Description

Sets uuid assigned to the equipment segment.

Syntax

setSegmentEquipmentUUID(segmentEquipmentUUID)


  • Parameters

String segmentEquipmentUUID -  The uuid of equipment segment.

  • Returns

Nothing

setSegmentName(name)

Description

Sets name of the segment.

Syntax

setSegmentName(name)


  • Parameters

String name -  The name of the segment.

  • Returns

Nothing

setSegmentUUID(segmentUUID)

Description

Sets uuid of the segment.

Syntax

setSegmentUUID(segmentUUID)


  • Parameters

String uuid -  The uuid of the segment.

  • Returns

Nothing



Customizers

This component does not have any custom properties.



Component Functions

This component provide the following functions that can be called on it. If this component has been dropped onto the windows root container, the path and an example call would be event.source.parent.getComponent('MES Trace Graph').autoFit().

autoFit()

  • Description

The trace graph is automatically resized as necessary to fit. Zooms a display such that all items within a given group will fit within the display bounds. By default, this achieved by clicking the right mouse button once, with no dragging. 

  • Parameters

None

  • Return

Nothing

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').autoFit()

getBackground()

  • Description

Gets background color of the trace graph.

  • Parameters

None

  • Return

Color bg - Background color of the trace graph.

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').getBackground()

getBreadcrumbColor()

  • Description

Gets the breadcrumb color of trace graph.

  • Parameters

None

  • Return

Color breadcrumbColor - The breadcrumbColor color.

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').getBreadcrumbColor()

getBreadcrumbFont()

  • Description

Gets the breadcrumb font of trace graph.

  • Parameters

None

  • Return

Font breadcrumbFont - The breadcrumb font.

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').getBreadcrumbFont()

getNodeConfiguration()

  • Description

Gets the node configuration of the trace graph. 

  • Parameters

None

  • Return

Dataset nodeConfiguration - Dataset representing the node configuration.

  • Scope

Client

Code Example

Example

Code
data=event.source.parent.getComponent('MES Trace Graph').getNodeConfiguration()
for row in range(data.rowCount):
   for col in range(data.columnCount):
      print data.getValueAt(row, col)

Output

Code
Default
java.awt.Color[r=170,g=170,b=170]
java.awt.Color[r=255,g=255,b=255]
java.awt.Color[r=185,g=185,b=185]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=232,b=0]
java.awt.Color[r=0,g=0,b=0]
MaterialLot
java.awt.Color[r=81,g=96,b=130]
java.awt.Color[r=255,g=255,b=255]
java.awt.Color[r=170,g=170,b=170]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=232,b=0]
java.awt.Color[r=0,g=0,b=0]
Unload Station*
java.awt.Color[r=172,g=0,b=0]
java.awt.Color[r=255,g=255,b=255]
java.awt.Color[r=170,g=170,b=170]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=232,b=0]
java.awt.Color[r=0,g=0,b=0]
Dock
java.awt.Color[r=172,g=0,b=0]
java.awt.Color[r=255,g=255,b=255]
java.awt.Color[r=170,g=170,b=170]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=232,b=0]
java.awt.Color[r=0,g=0,b=0]
Cereal*
java.awt.Color[r=0,g=128,b=128]
java.awt.Color[r=255,g=255,b=255]
java.awt.Color[r=170,g=170,b=170]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=232,b=0]
java.awt.Color[r=0,g=0,b=0]
Malt*
java.awt.Color[r=219,g=118,b=0]
java.awt.Color[r=255,g=255,b=255]
java.awt.Color[r=170,g=170,b=170]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=232,b=0]
java.awt.Color[r=0,g=0,b=0]
Mash*
java.awt.Color[r=71,g=71,b=255]
java.awt.Color[r=255,g=255,b=255]
java.awt.Color[r=170,g=170,b=170]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=232,b=0]
java.awt.Color[r=0,g=0,b=0]
Filter*
java.awt.Color[r=172,g=172,b=0]
java.awt.Color[r=255,g=255,b=255]
java.awt.Color[r=170,g=170,b=170]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=232,b=0]
java.awt.Color[r=0,g=0,b=0]
ResponseSegment
java.awt.Color[r=35,g=109,b=60]
java.awt.Color[r=255,g=255,b=255]
java.awt.Color[r=170,g=170,b=170]
java.awt.Color[r=0,g=0,b=0]
java.awt.Color[r=255,g=232,b=0]
java.awt.Color[r=0,g=0,b=0]

getSegmentToolTipFormat()

  • Description

Gets tool tip format of the segment in trace graph. 

  • Parameters

None

  • Return

String segmentToolTipFormat - Format for the segment tool tip.

  • Scope

Client

Code Example

Example

Code
event.source.parent.getComponent('MES Trace Graph').getSegmentToolTipformat()

Output

Code
<html>{SegmentName}<br/>{SegmentLocationName}</html>

getSublotMatchText()

  • Description

Gets the sublot match text to return all material lots that match this text.

  • Parameters

None

  • Return

String sublotMatchText - The sublot match text to return all the material lots.

  • Scope

Client

isAllowMaterialLotModify()

  • Description

Checks whether the material lot modification is allowed or not.

  • Parameters

None

  • Return

True if material lot modification is allowed and False otherwise.

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').isAllowMaterialLotModify()

isAllowSegmentModify()

  • Description

Checks whether the segment modification is allowed or not.

  • Parameters

None

  • Return

True if segment modification is allowed and False otherwise.

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').isAllowSegmentModify()

refresh()

  • Description

Makes an asynchronous request to update the trace graph to current data. 

  • Parameters

None

  • Return

Nothing

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').refresh()

setAllowMaterialLotModify(allowMaterialLotModify)

  • Description

Sets the permission to modify the material lots. Setting to True will allow modification and False will deny modification.

  • Parameters

boolean allowMaterialLotModify - Set to True to allow modification and False otherwise.

  • Return

Nothing

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').setAllowMaterialLotModify()

setAllowSegmentModify(allowSegmentModify)

  • Description

Sets the permission to modify the segments. Setting to True will allow modification and False will deny modification.

  • Parameters

boolean allowSegmentModify - Set to True to allow modification and False otherwise.

  • Return

Nothing

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').setAllowSegmentModify()

setBackground(bg)

  • Description

Sets the background color for the trace graph.

  • Parameters

Color bg - The background color to set. Use system.gui.color to define colors.

  • Return

Nothing

  • Scope

Client

Example

Code
blanched_Almond = system.gui.color(255, 232, 204)
data=event.source.parent.getComponent('MES Trace Graph').setBackground(blanched_Almond)
print data

setBreadcrumbColor(breadcrumbColor)

  • Description

Sets the breadcrumb color for the trace graph.

  • Parameters

Color breadcrumbColor - The breadcrumbColor color to set.

  • Return

Nothing

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').setBreadcrumbColor("red")

setBreadcrumbFont(breadcrumbFont)

  • Description

Sets breadcrumb font for the trace graph.

  • Parameters

Font breadcrumbFont - The breadcrumb font to set.

  • Return

Nothing

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').setBreadcrumbFont("Serif")

setMaxFanCount(maxFanCount)

  • Description

Sets the maxFanCount (maximum number of lots to fan out) for the trace graph. 

  • Parameters

int maxFanCount - The maximum number of lots to fan out to before returning an error. Compiling huge amounts of trace data requires system resources and typically is not useful to the end user. This setting is a safety to prevent inadvertently requesting huge amounts of trace data.

  • Return

Nothing

  • Scope

Client

Example

Code
event.source.parent.getComponent('MES Trace Graph').setMaxFanCount(3)

setNodeConfiguration(nodeConfiguration)

  • Description

Sets the node configuration of the trace graph. 

  • Parameters

Dataset nodeConfiguration - Dataset representing the node configuration.

  • Return

Nothing

  • Scope

Client

setSegmentToolTipFormat(segmentToolTipFormat)

  • Description

Sets tool tip format of the segment in trace graph. 

  • Parameters

String segmentToolTipFormat - Format for the segment tool tip.

  • Return

Nothing

  • Scope

Client

setSublotMatchText(sublotMatchText)

  • Description

Sets the sublot match text to return all material lots that match this text.

  • Parameters

String sublotMatchText - The sublot match text to return all the material lots.

  • Return

Nothing

  • Scope

Client

Sepasoft MES Module Suite