Save Previous Value to custom field

Document created by Grant Bruneau Champion on Jan 24, 2017
Version 1Show Document
  • View in full screen mode

Hi Community,


The following customization is an example of how you can save Previous values to custom fields.  The attached mod/spl file will save the Previous Group and Priority to zPreviousGroup and zPreviousPriority.


Implementation Steps

  1. Add zPreviousGroup and zPreviousPriority to CR schema
    • zPreviousGroup
      • Field Type: SREL
      • SREL Table: GRP
    • zPreviousPriority
      • Field Type: SREL
      • Field Table: PRI
  2. Copy the following files to nx_root/site/mods/magic
    • zSetPrev.spl
    • zSetPrev.mod
  3. Restart SDM services
  4. Optionally add zPreviousGroup and zPreviousPriority to detail_cr.htmpl, detail_in.htmpl, and detail_pr.htmpl
    • <PDM_MACRO name=dtlReadonly hdr="Previous Priority" attr=zPreviousPriority>
    • <PDM_MACRO name=dtlReadonly hdr="Previous Group" attr=zPreviousGroup>