Hi Gautam,

As it stands your class is not an object class (https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...).

In order to instantiate an object, make sure the class inherits from %RegisteredObject or a subclass of it.

We do this in ObjectScript as follows:

Class Sample.Header Extends %RegisteredObject

{

/// your code

}