Home > Class Reference > %SYS namespace > %ZHSLIB.PackageManager.Developer.Extension.PackageManager.UI.LoadNewModule

%ZHSLIB.PackageManager.Developer.Extension.PackageManager.UI.LoadNewModule

class %ZHSLIB.PackageManager.Developer.Extension.PackageManager.UI.LoadNewModule extends %ZHSLIB.PackageManager.Developer.Extension.UI.templatePage, %ZHSLIB.PackageManager.Developer.Extension.PackageManager.UI.fileSelect

This page is opened when user selects Load New Module from Package Manager in Studio When user selects a directory and clicks OK the selected directory is returned to server where it is executed and result shown in Studio's Output area, and this page closed.

Property Inventory (Including Private)

Method Inventory (Including Private)

Parameters

parameter PAGENAME = LoadNewModule;
Displayed name of this page.

Properties (Including Private)

property FileName as %ZEN.Datatype.string (ZENURL = "File");
Original File name passed in (optional)
Property methods: FileNameDisplayToLogical(), FileNameGet(), FileNameIsValid(), FileNameLogicalToDisplay(), FileNameLogicalToOdbc(), FileNameNormalize(), FileNameSet()
property HideFileType as %ZEN.Datatype.boolean (ZENURL = "HideFileType") [ InitialExpression = 1 ];
Property methods: HideFileTypeDisplayToLogical(), HideFileTypeGet(), HideFileTypeIsValid(), HideFileTypeLogicalToDisplay(), HideFileTypeLogicalToOdbc(), HideFileTypeLogicalToXSD(), HideFileTypeNormalize(), HideFileTypeSet(), HideFileTypeXSDToLogical()
property dialogTitle as %ZEN.Datatype.string [ ReadOnly ];
Provide a title for the dialog window. The value is supplied by the %OnGetTitle() method.
Property methods: dialogTitleDisplayToLogical(), dialogTitleGet(), dialogTitleIsValid(), dialogTitleLogicalToDisplay(), dialogTitleLogicalToOdbc(), dialogTitleNormalize()

Methods (Including Private)

method %OnAfterCreatePage() as %Status [ Language = objectscript ]
Inherited description: This callback is called after the server-side page object and all of its children are created.
Subclasses can override this to add, remove, or modify items within the page object model, or to provide values for controls.
private method %OnGetJSResources(ByRef pResources As %String) as %Status [ Language = objectscript ]
Inherited description: Pages can implement this callback method in order to define a set of client-side resources: javascript strings that have been localized.
This method should fill in the array pResources with a set of localized strings, indexed by resource id:
   Set pResources("MyId") = $$$Text("Some string")
  
Javascript methods can refer to these resources using the helper function zenGetResource:
 alert(zenText('MyId'));
Zen defines a set of built-in resource strings using this mechanism. These have a "zen" prefix to keep them seperate from user ids.
You can also override the same callback method within your %ZEN.application class if you wish to share resources across an application. In this case, the application-wide callback is invoked first.
method %OnGetSubtitle() as %String [ Language = objectscript ]
Get the (localized) subtitle string for the dialog. This should be implemented in a subclass.
method %OnGetTitle() as %String [ Language = objectscript ]
Get the (localized) title string for the dialog. This should be implemented in a subclass.
classmethod DirContainsFile(pFile) as %Boolean [ Language = objectscript, ZenMethod ]
classmethod IsTopLevel(currentDir, newDir) as %Boolean [ Language = objectscript, ZenMethod ]
This is mainly for Windows. e.g. If you are already on the D:\ drive then don't go up to C:\.
clientmethod changeDrive(thisobj) [ Language = javascript ]
User selected a different directory from "Lookin" drop-down. If FileName is available, add to the newly selected directory.
clientmethod changeFileType() [ Language = javascript ]
This method refreshes the contents with the current file type and directory/file name
clientmethod changeView(viewtype) [ Language = javascript ]
changeView
clientmethod itemClicked(viewobj) [ Language = javascript ]
User clicked an item. We put it in the File name field. User can OK it or [Enter] to drill down.
clientmethod itemSelected(viewobj) [ Language = javascript ]
User has selected a new item (double click).
clientmethod loadModule() [ Language = javascript ]
Calls a web socket to perform module load and show output.
clientmethod onloadHandler() [ Language = javascript ]
This callback, if defined, is called when the dialog page is loaded.
clientmethod onresizeHandler() [ Language = javascript ]
This client event, if present, is fired when the page is resized.
clientmethod reloadLookin(driveobj, tvalue) [ Language = javascript ]
clientmethod upOneLevel() [ Language = javascript ]
up one level

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)