Function

LockTemplate

Module

rTemplates

Last Modified

7/15/2014 3:26:44 PM

Comments

Returns true if successful
returns true if successful

Scope

Interfaced

Declaration

function LockTemplate(const ID: string): boolean; // returns true if successful

Called-By Hierarchy


                                        LockTemplate
                               TTemplate.CanModify┘ 
                           TTemplate.RemoveChild┤   
              TfrmTemplateEditor.sbDeleteClick┘ │   
       TfrmTemplateEditor.mnuNodeDeleteClick┤   │   
            TfrmTemplateEditor.tvTreeKeyDown┘   │   
                       TTemplate.SetTemplateType┤   
                        TTemplate.SetBoilerplate┤   
                       TTemplate.CreateFromXML┤ │   
                                   ..(rec)..┤ │ │   
              TfrmTemplateEditor.btnNewClick┘ │ │   
                             EditTemplates┤   │ │   
     TfrmDCSumm.popSummMemoTemplateClick┤ │   │ │   
          TfrmDCSumm.mnuNewTemplateClick┤ │   │ │   
        TfrmDCSumm.mnuEditTemplatesClick┤ │   │ │   
  TfrmDCSumm.mnuEditSharedTemplatesClick┤ │   │ │   
    TfrmDCSumm.mnuNewSharedTemplateClick┤ │   │ │   
   TfrmConsults.popNoteMemoTemplateClick┤ │   │ │   
      TfrmConsults.mnuEditTemplatesClick┤ │   │ │   
        TfrmConsults.mnuNewTemplateClick┤ │   │ │   
TfrmConsults.mnuEditSharedTemplatesClick┤ │   │ │   
  TfrmConsults.mnuNewSharedTemplateClick┤ │   │ │   
       TfrmDrawers.mnuEditTemplatesClick┤ │   │ │   
         TfrmDrawers.mnuNewTemplateClick┤ │   │ │   
    TfrmSurgery.popNoteMemoTemplateClick┤ │   │ │   
       TfrmSurgery.mnuEditTemplatesClick┤ │   │ │   
         TfrmSurgery.mnuNewTemplateClick┤ │   │ │   
 TfrmSurgery.mnuEditSharedTemplatesClick┤ │   │ │   
   TfrmSurgery.mnuNewSharedTemplateClick┤ │   │ │   
      TfrmNotes.popNoteMemoTemplateClick┤ │   │ │   
         TfrmNotes.mnuEditTemplatesClick┤ │   │ │   
           TfrmNotes.mnuNewTemplateClick┤ │   │ │   
   TfrmNotes.mnuEditSharedTemplatesClick┤ │   │ │   
     TfrmNotes.mnuNewSharedTemplateClick┘ │   │ │   
        TfrmTemplateEditor.mnuAutoGenClick┤   │ │   
 TfrmTemplateEditor.mnuImportTemplateClick┘   │ │   
                           TTemplate.TrueClone┤ │   
                             TTemplate.Clone┘ │ │   
                  TfrmTemplateEditor.Clone┘   │ │   
       TfrmTemplateEditor.btnNewClick...┤     │ │   
     TfrmTemplateEditor.edtNameOldChange┤     │ │   
   TfrmTemplateEditor.tvTreeNodeEdited┤ │     │ │   
    TfrmTemplateEditor.mnuAutoGenClick┘ │     │ │   
        TfrmTemplateEditor.cbActiveClick┤     │ │   
       TfrmTemplateEditor.cbExcludeClick┤     │ │   
         TfrmTemplateEditor.edtGapChange┤     │ │   
        TfrmTemplateEditor.sbMoveUpClick┤     │ │   
      TfrmTemplateEditor.sbMoveDownClick┤     │ │   
     TfrmTemplateEditor.sbDeleteClick...┤     │ │   
       TfrmTemplateEditor.tvTreeDragDrop┤     │ │   
    TfrmTemplateEditor.sbCopyLeftClick┤ │     │ │   
   TfrmTemplateEditor.sbCopyRightClick┤ │     │ │   
  TfrmTemplateEditor.mnuNodePasteClick┘ │     │ │   
                               ..(rec)..┤     │ │   
         TfrmTemplateEditor.reBoilChange┤     │ │   
        TfrmTemplateEditor.reNotesChange┤     │ │   
              TfrmTemplateEditor.cbClick┤     │ │   
 TfrmTemplateEditor.cbDisplayOnlyClick┤ │     │ │   
   TfrmTemplateEditor.cbFirstLineClick┤ │     │ │   
 TfrmTemplateEditor.cbOneItemOnlyClick┤ │     │ │   
TfrmTemplateEditor.cbHideDlgItemsClick┤ │     │ │   
   TfrmTemplateEditor.cbHideItemsClick┤ │     │ │   
      TfrmTemplateEditor.cbIndentClick┤ │     │ │   
        TfrmTemplateEditor.cbLockClick┘ │     │ │   
        TfrmTemplateEditor.cbxTypeChange┤     │ │   
     TfrmTemplateEditor.cbxRemDlgsChange┘     │ │   
                              EditTemplates...┤ │   
               TfrmTemplateEditor.reBoilChange┤ │   
            TfrmTemplateEditor.mnuAutoGenClick┘ │   
                      TTemplate.SetPersonalOwner┤   
                                     ..(rec)..┤ │   
          TfrmTemplateEditor.tvTreeDragDrop...┘ │   
                          TTemplate.SortChildren┤   
               TfrmTemplateEditor.mnuSortClick┘ │   
                             TTemplate.SetActive┤   
              TfrmTemplateEditor.cbActiveClick┘ │   
                            TTemplate.SetExclude┤   
                     TTemplate.SetTemplateType┤ │   
             TfrmTemplateEditor.cbExcludeClick┘ │   
                             TTemplate.SetDialog┤   
              TfrmTemplateEditor.cbxTypeChange┘ │   
                                TTemplate.SetGap┤   
               TfrmTemplateEditor.edtGapChange┤ │   
               TfrmTemplateEditor.reBoilChange┘ │   
                          TTemplate.SetPrintName┤   
        TfrmTemplateEditor.edtNameOldChange...┤ │   
            TfrmTemplateEditor.mnuAutoGenClick┘ │   
                           TTemplate.SetRealType┤   
                     TTemplate.SetTemplateType┤ │   
              TfrmTemplateEditor.cbxTypeChange┘ │   
                        TTemplate.SetDescription┤   
                    TTemplate.CreateFromXML...┤ │   
                        TTemplate.TrueClone...┤ │   
              TfrmTemplateEditor.reNotesChange┘ │   
                        TTemplate.SetDisplayOnly┤   
                 TfrmTemplateEditor.cbClick...┘ │   
                          TTemplate.SetFirstLine┤   
                 TfrmTemplateEditor.cbClick...┘ │   
                          TTemplate.SetHideItems┤   
                 TfrmTemplateEditor.cbClick...┘ │   
                        TTemplate.SetIndentItems┤   
                 TfrmTemplateEditor.cbClick...┘ │   
                        TTemplate.SetOneItemOnly┤   
                 TfrmTemplateEditor.cbClick...┘ │   
                       TTemplate.SetHideDlgItems┤   
                 TfrmTemplateEditor.cbClick...┘ │   
              TTemplate.UpdateImportedFieldNames┤   
                                     ..(rec)..┤ │   
     TfrmTemplateEditor.mnuImportTemplateClick┘ │   
                     TTemplate.SetReminderDialog┤   
                      TTemplate.AssignFileLink┤ │   
                                   ..(rec)..┤ │ │   
                       TTemplate.SetFileLink┘ │ │   
                               MarkDeleted┤   │ │   
                               ..(rec)..┤ │   │ │   
     TfrmTemplateEditor.sbDeleteClick...┤ │   │ │   
             TfrmTemplateEditor.Clone...┘ │   │ │   
                  TTemplate.SetRealType...┤   │ │   
            TTemplate.SetReminderDialog...┤   │ │   
            TfrmTemplateEditor.cbxLinkExit┘   │ │   
           TfrmTemplateEditor.cbxRemDlgsChange┘ │   
                               TTemplate.SetLock┤   
                 TfrmTemplateEditor.cbClick...┘ │   
                          TTemplate.SetCOMObject┤   
            TfrmTemplateEditor.cbxCOMObjChange┘ │   
                           TTemplate.SetCOMParam┤   
          TfrmTemplateEditor.edtCOMParamChange┘ │   
                     TTemplate.AssignFileLink...┤   
               TfrmTemplateEditor.btnNewClick...┤   
          TfrmTemplateEditor.edtNameOldChange...┤   
                TfrmTemplateEditor.cbActiveClick┤   
               TfrmTemplateEditor.cbExcludeClick┤   
                 TfrmTemplateEditor.edtGapChange┤   
                TfrmTemplateEditor.sbMoveUpClick┤   
              TfrmTemplateEditor.sbMoveDownClick┤   
             TfrmTemplateEditor.sbDeleteClick...┤   
            TfrmTemplateEditor.tvTreeDragDrop...┤   
                     TfrmTemplateEditor.Clone...┤   
                 TfrmTemplateEditor.reBoilChange┤   
                TfrmTemplateEditor.reNotesChange┤   
                   TfrmTemplateEditor.cbClick...┤   
                TfrmTemplateEditor.cbxTypeChange┤   
             TfrmTemplateEditor.cbxRemDlgsChange┤   
                     TfrmTemplateEditor.CanClone┤   
             TfrmTemplateEditor.btnNewClick...┤ │   
        TfrmTemplateEditor.edtNameOldChange...┤ │   
              TfrmTemplateEditor.cbActiveClick┤ │   
             TfrmTemplateEditor.cbExcludeClick┤ │   
               TfrmTemplateEditor.edtGapChange┤ │   
              TfrmTemplateEditor.sbMoveUpClick┤ │   
            TfrmTemplateEditor.sbMoveDownClick┤ │   
           TfrmTemplateEditor.sbDeleteClick...┤ │   
          TfrmTemplateEditor.tvTreeDragDrop...┤ │   
                   TfrmTemplateEditor.Clone...┤ │   
               TfrmTemplateEditor.reBoilChange┤ │   
              TfrmTemplateEditor.reNotesChange┤ │   
                 TfrmTemplateEditor.cbClick...┤ │   
              TfrmTemplateEditor.cbxTypeChange┤ │   
           TfrmTemplateEditor.cbxRemDlgsChange┘ │   
              TfrmTemplateEditor.cbxCOMObjChange┤   
            TfrmTemplateEditor.edtCOMParamChange┤   
                  TfrmTemplateEditor.cbxLinkExit┘   

Called-By

Name Declaration Comments
TTemplate.CanModify function CanModify: boolean; -


Source

278   function LockTemplate(const ID: string): boolean; // returns true if successful
279   begin
280     Result := (sCallV('TIU TEMPLATE LOCK', [ID]) = '1')
281   end;