Paul
Yikes !!
why do you need to do this??
If you really want to study Object.csr in <cachesys>\dev\csp\rules
you will see things like
Set code = lots of COS commands
Do AddMethod^%apiCDL(handle,JSmethodname)
Do SetMethod^%apiCDL(handle,JSmethodname,$$$cMETHlanguage,"cache")
Do
SetMethod^%apiCDL(handle,JSmethodname,$$$cMETHcodemode,$$$cMETHCODEMODECODE)
Do SetMethod^%apiCDL(handle,JSmethodname,$$$cMETHimplementation,.code)
Do SetMethod^%apiCDL(handle,JSmethodname,$$$cMETHreturntype,"")
Do SetMethod^%apiCDL(handle,JSmethodname,$$$cMETHclassmethod,1)
Do SetMethod^%apiCDL(handle,JSmethodname,$$$cMETHdescription,"Called
to render JavaScript code that is required for form
<var>"_%form_"</var>.")
csr:section will not work - it creates a method "OnPage"<sectionname>
What I have done in the past is to create a master class with a n
OnPreHTTP and then inherit this
but this will not work if you need to change the code in OnPreHTTP
again comes back to what do you want to achieve
Peter