Personalise the Copy Sample dialog to set the Number of Samples as read-only for Template Jobs

Use this activity to personalise the Copy Sample dialog to set the Number of Samples as read-only for template jobs.

This dialog is accessed when Copying a Sample in a Job.

Activity Steps

  1. Display the Copy Sample dialog from the Copy Sample row flow on the sample grid contained within the Samples tab of the CCREGN—Job Detail screen, then Access Screen Personalisation.
  2. Collapse the Meta, Layout, customisation.virtual and Actions nodes and expand the Behavior node in the Screen Layout Panel.

  3. Click Add icon on the Behavior node and select FieldToggle to add a field toggle behaviour to the screen layout.

  4. Select the new FieldToggle node.
  5. In the Properties panel, set the Action to Disable and the Control Field to jobTypeForUpdateMode (which correlates to the Job Type field on the CCREGN—Job Detail screen).

  6. Click Add icon on the new FieldToggle node to add a value field link to the field toggle behaviour.
  7. Select the new ValueFieldLink node.
  8. In the Properties panel, set the Components to sampleCopyDialogNumberToCreate (the Number of Samples field to take the defined action) and the Values to 4 (the enum for a template job type).

  9. Click Submit.

    When the Copy Sample dialog is displayed, if the job is a template job, then the Number of Samples field on the dialog is displayed as disabled, and enabled otherwise.