Differences between revisions 5 and 6
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
Javascript functionality: == Javascript Functionality ==
Line 34: Line 34:
Other related functionality: == Other Supporting Functionality ==
Line 39: Line 39:
Field naming: == Field Naming ==

The following fields are defined in the ''Revisions'' table:
Line 47: Line 49:

The fields are also present in the ''Comments'' table, but the workflow templates that would display these fields have not yet been implemented.

== Javascript Implementation ==

Javascript Notes

Use of Javascript

Javascript is currently used to:

  1. In most display and data entry blocks: Open/close tables (the toggles)
  2. Drawing new/update: Manage the drawing code entry (syncronize the drawing horizontal vs. vertical code fields)
  3. Revision new/update: Manage the revision code entry (syncronize the drawing horizontal vs. vertical code fields)
  4. On change in the document (and comment) input forms
  5. Set focus (set for certain inputs form, mainly in the login form)
  6. To manage the hiding/display of cascading selects in V12.x. See: MultiClassification

  7. In revision new/update: to manage entry of approval/release comments
  8. Informing the server if the client has Javascript enabled

Issues

  • Our Javascript currently assumes a single form on a page, this could cause problems if we want to have a search box in our page header.
    • - See app/js/drawmgt.js, search for forms[0]
  • We should add names for our forms

Managing Approval/Release Comment Fields

This applies to approval and release work flow steps for revisions. It is implemented for the new/update input forms.

Javascript Functionality

  • When the status Approved with Corrections (C) or Rejected (R) is selected, then the corresponding comment field should be displayed. When any other status value is selected then the display of the comment field is suppressed.

  • When the status Not Required (N) is selected, then the corresponding initials field should be set to -select-.

Other Supporting Functionality

  • Values for the initials/status/comment fields are checked by app/config/Setting-Validations.php
  • Display of comment fields (in the revision detail) only occurs when the comment field contains text. This is handled by an if statement in the smart template.

Field Naming

The following fields are defined in the Revisions table:

  • Initials Field

    Status Field

    Comment Field

    approver1Id

    approval1StatusIs

    approval1Comment

    approver2Id

    approval2StatusIs

    approval2Comment

    approver3Id

    approval3StatusIs

    approval3Comment

    approver4Id

    approval4StatusIs

    approval4Comment

    releaseId

    releaseStatusIs

    release4Comment

The fields are also present in the Comments table, but the workflow templates that would display these fields have not yet been implemented.

Javascript Implementation

JavascriptNotes (last edited 2010-01-26 20:30:02 by softxs)

Copyright 2008-2014, SoftXS GmbH, Switzerland