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.
Get the (localized) title string for the dialog.
This should be implemented in a subclass.
classmethod GetFunctions(ByRef pParameters)
as %Status
method adjustSize()
[ Language = javascript ]
Adjust size and position of components on this page.
method argChanged(index, isLookup)
[ Language = javascript ]
Event handler to update the current expression whenever an argument is changed.
method drawArguments(functionDesc, noExpressionUpdate)
[ Language = javascript ]
Draw the controls for the arguments of the function named in functionDesc.
This method is called as an event handler when a new function is chosen and from ondialogStart,
where the noExpressionUpdate argument is used to ensure we only update the expression once.
method getDialogValue()
[ Language = javascript ]
Get the value that will be applied when the user presses the OK button.
method getExpression(expr, includesOpen)
[ Language = javascript ]
method getFunctionList()
[ Language = javascript ]
Helper method to get the object tree of defined functions.
method ondialogStart()
[ Language = javascript ]
This callback, if defined, is called when the dialog page is loaded.
method parseExpression(expr, combineDotDotDot)
[ Language = javascript ]
method replaceChanged(newValue)
[ Language = javascript ]
Update the isReplace variable when the control is changed.
method resizeTextControls()
[ Language = javascript ]
Ensure that the text controls and the description field expand to fit the width of the window.
method updateExpression(newClass, newName)
[ Language = javascript ]
Update the expression text displayed at the top of the page.
If newClass and newProp are defined, then we initialise the expression as needed.
The function should return a boolean to indicate whether the requested update should be processed.
The return value will be true in almost all cases, except for a specific case involving function replacement described shortly.
If isReplace is true, we replace the current function. As part of the function replacement,
we ensure that the expression has the correct number of arguments specified. If the new function has fewer arguments
than the user had previously defined, we prompt the user to confirm that they are willing to discard the extra argument(s).
If the user indicates that the argument(s) can be discarded, we continue as before. If not, we reset the dropdown and return
false, leaving the expression exactly as it is.