Skip to main content

%Projection.StudioDocument

Class %Projection.StudioDocument Extends %Projection.AbstractProjection [ System = 3 ]

Register this class as a routine that will work with Studio.

Parameters

DocumentExtension

Parameter DocumentExtension As STRING;

Name of the extension for this routine type, e.g. 'ABC'

DocumentType

Parameter DocumentType As STRING;

Type of the document, this varies how Studio views this document. Possible values include:

  • INT - ObjectScript INT code
  • MAC - ObjectScript MAC code
  • INC - ObjectScript macro include
  • CSP - Cache Server Page
  • CSR - Cache Server Rule
  • JS - JavaScript code
  • CSS - HTML Style Sheet
  • XML - XML document
  • XSL - XML transform
  • XSD - XML schema
  • MVB - Multivalue Basic mvb code
  • MVI - Multivalue Basic mvi code If no value specified then Studio will use the null parser for this document.

DocumentIcon

Parameter DocumentIcon As INTEGER = 0;

Integer to modify the icon that Studio uses to display documents of this type

DocumentDescription

Parameter DocumentDescription As STRING;

Description of this document type

DocumentNew

Parameter DocumentNew As BOOLEAN = 0;

Set to new to make Studio automatically adding a 'new XYZ' item for this document type

XMLNamespace

Parameter XMLNamespace As STRING;

Schema associated with this document type, used by Studio Assist

Methods

CreateProjection

ClassMethod CreateProjection(classname As %String, ByRef parameters As %String) As %Status

RemoveProjection

ClassMethod RemoveProjection(classname As %String, ByRef parameters As %String, recompile As %Boolean) As %Status