Home > Class Reference > ENSLIB namespace > EnsPortal.Dialog.TestTransform


class EnsPortal.Dialog.TestTransform extends EnsPortal.Dialog.standardDialog

Property Inventory (Including Private)

Method Inventory (Including Private)


parameter APPLYBUTTON = 0;
If true, then this dialog displays an Apply button.
parameter CANCELBUTTON = 0;
Inherited description: If true, then this dialog displays a Cancel button.
parameter OKBUTTON = 0;
parameter PAGENAME = Test Transform;
Displayed name of this page.
parameter RESOURCE = %Ens_DTLTest:USE;
User needs USE permissions on the %Ens_DTLTest resource to view this page.

Properties (Including Private)

property firstLoad as %ZEN.Datatype.boolean [ InitialExpression = 1 ];
Property methods: firstLoadDisplayToLogical(), firstLoadGet(), firstLoadIsValid(), firstLoadLogicalToDisplay(), firstLoadLogicalToOdbc(), firstLoadLogicalToXSD(), firstLoadNormalize(), firstLoadSet(), firstLoadXSDToLogical()
property sourceClass as %ZEN.Datatype.className;
Property methods: sourceClassDisplayToLogical(), sourceClassGet(), sourceClassIsValid(), sourceClassLogicalToDisplay(), sourceClassLogicalToOdbc(), sourceClassNormalize(), sourceClassSet()
property sourceData as %ZEN.Datatype.string (ZENCLIENTONLY = 1);
Property methods: sourceDataDisplayToLogical(), sourceDataGet(), sourceDataIsValid(), sourceDataLogicalToDisplay(), sourceDataLogicalToOdbc(), sourceDataNormalize(), sourceDataSet()
property sourceDocType as %ZEN.Datatype.string;
Property methods: sourceDocTypeDisplayToLogical(), sourceDocTypeGet(), sourceDocTypeIsValid(), sourceDocTypeLogicalToDisplay(), sourceDocTypeLogicalToOdbc(), sourceDocTypeNormalize(), sourceDocTypeSet()
property sourceLabel as %ZEN.Datatype.string [ InitialExpression = $$$TextHTML("Input Message") ];
Property methods: sourceLabelDisplayToLogical(), sourceLabelGet(), sourceLabelIsValid(), sourceLabelLogicalToDisplay(), sourceLabelLogicalToOdbc(), sourceLabelNormalize(), sourceLabelSet()
property targetClass as %ZEN.Datatype.className;
Property methods: targetClassDisplayToLogical(), targetClassGet(), targetClassIsValid(), targetClassLogicalToDisplay(), targetClassLogicalToOdbc(), targetClassNormalize(), targetClassSet()
property targetDocType as %ZEN.Datatype.string;
Property methods: targetDocTypeDisplayToLogical(), targetDocTypeGet(), targetDocTypeIsValid(), targetDocTypeLogicalToDisplay(), targetDocTypeLogicalToOdbc(), targetDocTypeNormalize(), targetDocTypeSet()
property targetLabel as %ZEN.Datatype.string [ InitialExpression = $$$TextHTML("Output Message") ];
Property methods: targetLabelDisplayToLogical(), targetLabelGet(), targetLabelIsValid(), targetLabelLogicalToDisplay(), targetLabelLogicalToOdbc(), targetLabelNormalize(), targetLabelSet()
property transform as %ZEN.Datatype.className (ZENURL = "TRANSFORM");
Property methods: transformDisplayToLogical(), transformGet(), transformIsValid(), transformLogicalToDisplay(), transformLogicalToOdbc(), transformNormalize(), transformSet()

Methods (Including Private)

method %OnAfterCreatePage() as %Status
Ensure that a transform has been supplied.
method %OnGetSubtitle() as %String
Get the (localized) subtitle string for the dialog. This should be implemented in a subclass.
method %OnGetTitle() as %String
Get the (localized) title string for the dialog. This should be implemented in a subclass.
classmethod CreateInputObject(pInputClass As %String = "", pData As %String = "", Output pStatus As %Status) as %RegisteredObject
Create an input message for testing. Note that pData may be a stream object if the source data is sufficiently large.
method CreateOutput(pSeed) as %Status
Callback method to create the necessary objects and capture the transformed output.
method GetSourceData() as %CacheString
Get the current source data for this user. If the data is small enough to fit into a string, then a string is returned. If multiple nodes in the global are needed, then a stream is returned. This method is not accessible from the client as it can return a stream.
method OnChangeTransform(pNewTransform As %String) as %Integer [ ZenMethod ]
Method to (re)initialise the page for a transform
classmethod SetSourceData(pTransform As %Dictionary.CacheClassname, pData As %String) as %String [ ZenMethod ]
Save the source data for the current transform to the server. Note that pData will be automatically converted to a stream object if it exceeds the maximum string length.
method UpdateSourceData() as %String [ ZenMethod ]
Method to ensure that the current source data is present on the client. The data is written directly to the JS variable zenPage.sourceData on the client because the content may exceed 32k for sample documents, and we want to avoid the overhead of serialising the value along with the page itself.