Viewing 1 post (of 1 total)
  • Author
    Posts
  • #31311
    Support
    Keymaster

      [1] Click TOOLS | SCRIPT EDITOR to show the Script Editor screen
      [2] Locate “frmClinicalNotes” and the “OnAfterSaveRecord” event
      [3] Copy & Paste the following script into the Script Editor :-

      frmClinicalNotes frm = (Params[0] as frmClinicalNotes);
      if (frm != null)
      {
      if (frm.ActivePage.Record is cSess)
      {
      cSess sess = (frm.ActivePage.Record as cSess);
      sess.locked = true;
      sess.Save();
      }
      frm.RefreshData();
      }

      [4] Click OK

      To test this out, try adding some SESSION NOTES and for a patient and then click the SAVE button. Notice that the session record is immediately locked after clicking save.

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.