Set the equipment context in a form

You can dynamically update the equipment context by using a client method on a WPF form.

About this task

Note: You cannot set a WPF form's equipment context for use in the Web Task List.

Procedure

  1. From the navigator, click Global Displays > Forms.
  2. Add a WPF form, or from the Forms list, select an existing WPF form.
  3. Click Display Editor > Designer.
  4. Click the MainForm.xaml tab.
  5. Click the Toolbox tab.
  6. Select the control that you want to add an equipment context to, and then drag and drop it into the Designer.
  7. To configure the control's appearance, click the Properties tab.
  8. Click the Client Methods tab.
  9. Click Add.
    A client method appears in the list.
  10. Select the client method, and then click the Properties tab to configure the method.
  11. In the Source field, click the ellipsis button.
    The Configure Method dialog box appears.
  12. Configure the properties, as required.
    Note: To view the full list of properties, select the Advanced check box.
  13. To set the equipment context in a workflow Task List, click SetEquipmentContext, and then click Finish.
    Note: All manual settings are overridden if a form in the Task List uses the Set Equipment Context client method to assign equipment.
  14. In Properties panel, in the Equipment field:
    • Click the ellipsis button to link to a piece of equipment, or
    • Click the drop-down arrow and bind to an input parameter.
  15. Optional: In the EventTriggers field, click Add.
    The Event Triggers dialog box appears.
  16. Optional: From the Controls drop-down list, expand the button that you want to add an event trigger to, select Click, and then click OK.
  17. Click Save.
  18. To use the functionality of this form, add it to a workflow.
    1. Insert and configure a Form activity.
    2. In the Form field, click the ellipsis button to add the form that contains the equipment context button.
    3. Click Save.
  19. Optional: To prevent changing context information during run time, you can hide or disable the buttons on the Task List.
    1. Go to My Task List Editor.
    2. In the Visible column:
      1. To hide the Context button, and all information related to computer, user, and equipment context, clear the Task List Context check box.
      2. To allow users read-only access to context information, clear the Equipment Context Editing check box.
      3. Click Save.