class %DeepSee.UI.Dialog.ReorderItems
extends %DeepSee.UI.Dialog.standardDialog
This dialog lets the user reorder Dimensions or Measures.
The cube's javascript DOM is passed in.
This is a Zen Page class.
parameter APPLYBUTTON = 0;
If true, then this dialog displays an Apply button.
property cubeName
as %ZEN.Datatype.string(ZENURL="CUBENAME");
Cube name.
property fetchCube
as %ZEN.Datatype.string(ZENURL="FETCHCUBE");
THIS GETS THE NAME OF THE FUNCTION THAT WILL RETURN THE CUBE
method %OnAfterCreatePage()
as %Status
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.
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.
method changeType(type)
[ Language = javascript ]
User changed type to reorder. Show/hide associated list box.
method doSort(dir)
[ Language = javascript ]
Sort list box alphabetically.
method getDialogValue()
[ Language = javascript ]
Return updated dataCube object to Architect.
method moveItem(dir)
[ Language = javascript ]
User clicked the Move Up/Down image. Move the field up or down one level in the List box.
Switch data in dataCube as well. dir = "up" or "dn".
method onloadHandler()
[ Language = javascript ]
When we get here, we want to get the cube object from Architect as a native javaScript object
"opener" is a pointer to Architect
"opener.zenPage" is _Architect's_ DOM
"this.cube" is the name of a function in Architect that serves up the cube data (from URL)
eval("opener.zenPage."+this.fetchCube+"();") should return a complete data structure