Configuring jobs > Configuring buttons in the Job Management table

4.2 Configuring buttons in the Job Management table

The <controls> element lets you configure which buttons are available, and what actions the user can perform on jobs in the table.

To add/remove/modify buttons in the Job Management table

  1. Open the jobs.xml file located in the Viewpoint home directory. Locate the <controls> element.
  2. Create any drop-down menu buttons to contain related links.
  3. For example, you might create a Job Actions button to contain Cancel, Hold, Release, Requeue, Suspend, and Resume. To do so, use the <menu> element inside of <controls>. Give it a descriptive label - Job Actions, in this case - and insert the related buttons as its child elements with descriptive labels.
  4. <menu label="Job Actions">
       <cancel label="Cancel" />
       <hold label="Hold" />
       <release label="Release" />
       <requeue label="Requeue" />
       <suspend label="Suspend" />
       <resume label="Resume" />
    </menu>

    This is what it would look like in the UI:

    Buttons may stand on their own as child elements of <controls> as demonstrated in this step; they are not required to be contained in a menu button.

  5. Set any of the following child elements to configure the corresponding button:
  6. Table 4-1: Buttons

    Element Description
    <cancel> Cancels selected job
    <checkpoint> Checkpoints selected job
    <download-stderr> Downloads the standard error file of a completed job
    <download-stdout> Downloads the standard output file of a completed job
    <get-output> Loads the job output page where streaming job output can be viewed
    <hold> Adds user hold to selected job
    <refresh> Refreshes page
    <release> Releases selected job
    <requeue> Requeues selected job
    <suspend> Suspends selected job
    <unhold> Removes user hold from selected job
  7. In the core.xml file, set the job.updateAll permission in the desired groups to allow users to perform actions on all jobs (for details, see Setting permissions). By default, users can only perform actions on their own jobs (even administrators).
  8. Any user with the job.updateAll permission must also have the appropriate administrator level set in the Moab configuration file for Moab to report all existing jobs to the user.

  9. Modify the appearance of the button according to your preferences.

Related topics