Differences between revisions 4 and 5
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Javascript is currently used to <<TableOfContents>>
Line 5: Line 5:
 * Manage the drawing code entry (syncronize the drawing hirozontal vs. vertical code fields)
 * Open/close tables (the toggles)
 * On change in the document (and comment) forms
 * Informing the server if the client has Javascript enabled
 * Set focus (set for certain inputs form, mainly the login form)
 * To manage the hiding/display of cascading selects in V12.x. See: MultiClassification
= Use of Javascript =
Line 12: Line 7:
== Issues == Javascript is currently used to:

 1. In most display and data entry blocks: Open/close tables (the toggles)
 1. Drawing new/update: Manage the drawing code entry (syncronize the drawing horizontal vs. vertical code fields)
 1. Revision new/update: Manage the revision code entry (syncronize the drawing horizontal vs. vertical code fields)
 1. On change in the document (and comment) input forms
 1. Set focus (set for certain inputs form, mainly in the login form)
 1. To manage the hiding/display of cascading selects in V12.x. See: MultiClassification
 1. In revision new/update: to manage entry of approval/release comments
 1. Informing the server if the client has Javascript enabled

= Issues =
Line 17: Line 23:

= 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 related 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:

 || '''Initials Field''' || '''Status Field''' || '''Comment Field''' ||
 || approver1Id || approval1StatusIs || approval1Comment ||
 || approver2Id || approval2StatusIs || approval2Comment ||
 || approver3Id || approval3StatusIs || approval3Comment ||
 || approver4Id || approval4StatusIs || approval4Comment ||
 || releaseId || releaseStatusIs || release4Comment ||

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 related 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:

  • Initials Field

    Status Field

    Comment Field

    approver1Id

    approval1StatusIs

    approval1Comment

    approver2Id

    approval2StatusIs

    approval2Comment

    approver3Id

    approval3StatusIs

    approval3Comment

    approver4Id

    approval4StatusIs

    approval4Comment

    releaseId

    releaseStatusIs

    release4Comment

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

Copyright 2008-2014, SoftXS GmbH, Switzerland