CA Service Management

 View Only
  • 1.  Notice Period Calculation.

    Posted Aug 30, 2019 05:47 AM
    Dear Team

    We have below custom date field on employee request form. We want 'Notice Period Served' field to automatically populate based on calculation i.e

    Resignation Date (Minus) Last working Date = Notice Period Served

    Pls if anyone can help with the code to achieve this.



    <PDM_MACRO name=dtlDate hdr="Last Working Date" attr="zDeployDate" make_required="yes" time="no">
    <PDM_MACRO name=dtlDate hdr="Resignation Date" attr="open_date" time="no">
    <PDM_MACRO name=dtlTextbox hdr="Notice Period Served (No. of Days)" attr="string4" colspan="2">

  • 2.  RE: Notice Period Calculation.
    Best Answer

    Posted Sep 03, 2019 03:24 AM
    Edited by Christopher Hackett Sep 04, 2019 03:45 PM

    One way to do this is with a POST_VALIDATE trigger.  The example below calculates the difference in whole days between 'need_by' and 'sched_start_date' and places the result as text in 'string4'.  Display 'string4' as 'dtlReadonly' rather than as an editable field.

    1. site\mods\majic\zchg_triggers.mod
    2. site\mods\majic\zchg_Elapsed.spl:


  • 3.  RE: Notice Period Calculation.

    Broadcom Employee
    Posted Sep 03, 2019 10:35 PM
    <<Stares in awe!>>