How can I Customize the Interface from VC/m to Caché Studio?Applies to: VC/m with Caché 3.x and 4.xHow it WorksThe Caché Studio hooks which InterSystems provide are installed by making registry settings on the PC where Studio is installed. This means that they need to be installed on each client PC, rather than on the VC/m server. Before installing the hooks, look at the files VCmCacheStudioInstall.reg and VCmCacheStudioUninstall.reg. These are text files which update the registry when they are run. You will see they set up /remove registry entries which call different entry points in the VC/m routine %vc620. You may need to edit the .reg files to reflect your Caché configuration name and version. Built-In SwitchesFour switches are provided which make commonly requested changes to the standard VC/m functionality. Unlike the .reg files, these are settings on the server, so they apply to every user. Each switch has a value of 0 or 1. The switch can be disabled by changing the value or by deleting the global node. A user-friendly interface for enabling and disabling the switches is available: do setup^%vc620
Site-Specific CustomizationIf you wish to implement something more complex, there is a hook which allows you to run a routine with custom checks. For example, you may wish to allow editing of unregistered routines if they begin with z. The hook is defined by setting the following global node: set ^%vcvc("editCheckOutValidation")="label^%routine" The call must be to an extrinsic function with the following form: set status=$$label^%routine(currentStatus,.message)
For example, to allow editing of unregistered routines if they begin with z:
Further information may be obtained from the comments in status^%vc1edt and %vc620. Last reviewed: Dec 7, 2004 Back to VC/m Knowledge Base Articles |
|||||||||||||||||
