Construction of links
You can follow the steps listed here to construct a link.
First we need to create a key in the AssemblyLine table which will be accessible from the Event Notifier table and will correspond to the AssemblyLine ID. Right-click in the AssemblyLine table and select properties.
Figure 1. AssemblyLine properties
In the opened window, assign a new query by clicking the Click here to assign a query button.
The Query Editor will be opened where we must define another query because the existing one is static and cannot be modified. You will be asked to enter a name for it (for example "AssemblyLine2").
Figure 2. Create query selection
Go to the Id column of the table and enter $keyid$ as its value.
Figure 3. Query Editor
Click OK and apply the changes in the properties window and then click "OK button.
This is all that needs to be done in the AssemblyLine table.
Go to the Event Notifier table (you will be asked to save the changed in the AssemblyLine table - click Yes).
Right-click on the selected row in the Event Notifier table and choose Link To... -> Link Wizard... (make sure that the type column of the selected row equals "di.al.start").
Figure 4. Link Wizard selection
The Link Wizard will be displayed and will ask whether a new link will be created, modify existing link or delete existing link. Select Create a new link and click Next. On the next screen the name and the description of the link must be entered. In this example we will use ToTheRunningAssemblyLine as name and "Display the corresponding AssemblyLine in the AssemblyLine table." as description. The next step will ask to specify the link type. In the example we will use Absolute as link type because we are linking to a specified non-dynamic workspace in the navigator view. Proceed to the next step where we must specify the workspace to which the link will direct (the AssemblyLine table).
Figure 5. Link Wizard - target workspace
After selecting the AssemblyLine workspace click Next. This is the final step where we have to create the link conditions. We will modify two parameters in order to create the link properly -
contextIsAvailable and
keyid.
Select the contextIsAvailable parameter and click the Modify Expression... button (or double-click the parameter). The Expression Editor window will be displayed. Delete the current contents and click the Symbol... button. From the Symbols select the Type attribute:
Figure 6. Link Wizard - Type attribute
Click OK to return to the Expression Editor window; add == "di.al.start"
to create a conditional expression.
Figure 7. Link Wizard - Expression editor
Click OK to confirm the expression value.
Open the Expression Editor of the keyid symbol in Query - AssemblyLine2 and add the User Data symbol.
Figure 8. Link Wizard - User attribute
Click
OK in the Expression Editor and click
Next in the Link Wizard, which will show you a summary of the created link.
Figure 9. Link Wizard - summary
Click Finish to close the Link Wizard. Now you are ready to perform the steps in section Purpose of links.