HS.UI.HubCRUDTemplate
abstract class HS.UI.HubCRUDTemplate extends HS.UI.Base
Base class for CRUD (create, read, update, delete) utility pages for HealthShare.This class provides a basic template for the look and feel of a series of data entry pages.
To use:
- Create a subclass of this template class,
- Set the MODELCLASS parameter to the name of you DataModel class,
- Set the LOOKUPTABLE parameter to the SQL table name used to show the pick list of objects,
- Set the LOOKUPCOLUMN parameter (default is "Name") to the SQL column name used in the pick list
Property Inventory
Method Inventory
Parameters
parameter LOOKUPCOLUMN = Name;
SQL name of column to display within the lookup table.
parameter LOOKUPEXPRESSION;
SQL expression to use within the lookup table.
parameter LOOKUPTABLE;
SQL name of table that provides contents of the lookup table.
parameter MODELCLASS;
Name of MVC DataModel class that supplies data for the form.
parameter PAGENAME = HealthShare Hub Administration Template;
Displayed name of this page.
Properties
property LookupColumn as %String [ InitialExpression = ..#LOOKUPCOLUMN ];
Holds the name of the lookup column.
Property methods: LookupColumnDisplayToLogical(), LookupColumnGet(), LookupColumnIsValid(), LookupColumnLogicalToDisplay(), LookupColumnLogicalToOdbc(), LookupColumnNormalize(), LookupColumnSet()
property LookupExpression as %String [ InitialExpression = ..#LOOKUPEXPRESSION ];
Optional: Holds the expression used for the lookup column.
Property methods: LookupExpressionDisplayToLogical(), LookupExpressionGet(), LookupExpressionIsValid(), LookupExpressionLogicalToDisplay(), LookupExpressionLogicalToOdbc(), LookupExpressionNormalize(), LookupExpressionSet()
property LookupTable as %String [ InitialExpression = ..#LOOKUPTABLE ];
Holds the name of the lookup table.
Property methods: LookupTableDisplayToLogical(), LookupTableGet(), LookupTableIsValid(), LookupTableLogicalToDisplay(), LookupTableLogicalToOdbc(), LookupTableNormalize(), LookupTableSet()
property ModelClass as %String [ InitialExpression = ..#MODELCLASS ];
Holds the name of the model class.
Property methods: ModelClassDisplayToLogical(), ModelClassGet(), ModelClassIsValid(), ModelClassLogicalToDisplay(), ModelClassLogicalToOdbc(), ModelClassNormalize(), ModelClassSet()
property ObjectID as %String (ZENURL = "ID");
ID of object to edit.
Property methods: ObjectIDDisplayToLogical(), ObjectIDGet(), ObjectIDIsValid(), ObjectIDLogicalToDisplay(), ObjectIDLogicalToOdbc(), ObjectIDNormalize(), ObjectIDSet()
Methods
clientmethod cancelItem() [ Language = javascript ]
Cancel current edit.
clientmethod deleteItem() [ Language = javascript ]
Delete current item from database
clientmethod newItem() [ Language = javascript ]
Create a new item to edit.
clientmethod rowSelected(table, which) [ Language = javascript ]
Row selected in pick list; update controller.
which indicates how this event was fired.
clientmethod saveItem() [ Language = javascript ]
clientmethod showObject(id) [ Language = javascript ]
Load the object with the given id into the form.
Inherited Members
Inherited Properties
- %condition
- %import
- %includeFiles
- %page
- %resource
- HomeApplication
- StdTitle
- align
- aux
- backgroundTimerInterval
- cellAlign
- cellSize
- cellStyle
- cellVAlign
- children
- composite
- containerStyle
- cssLevel
- disabled
- dragAndDrop
- dragEnabled
- dropEnabled
- enclosingClass
- enclosingStyle
- error
- groupClass
- groupStyle
- height
- hidden
- hint
- hintClass
- hintStyle
- id
- index
- label
- labelClass
- labelDisabledClass
- labelPosition
- labelStyle
- layout
- name
- onafterdrag
- onbeforedrag
- onclick
- ondrag
- ondrop
- onhide
- onrefresh
- onshow
- onupdate
- parent
- showLabel
- slice
- title
- tuple
- useSVG
- useSoftModals
- valign
- visible
- width
- window
- zenPersistentPopup
Inherited Methods
- %AddChild()
- %AddChildAfter()
- %AddChildBefore()
- %AddComponent()
- %AddImportedComponents()
- %AddToSaveSet()
- %ApplyURLParms()
- %Attr()
- %BindExport()
- %CheckHSClass()
- %CheckProductionRunning()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawAutoLogout()
- %DrawClassDefinitions()
- %DrawComponentHTML()
- %DrawHTML()
- %DrawHTMLPage()
- %DrawJSStrings()
- %DrawObjectDefinitions()
- %EnclosingDivId()
- %EndBackgroundMethod()
- %EndScript()
- %Eval()
- %EvalC()
- %Extends()
- %ForceClientRender()
- %GetChildIndex()
- %GetComponent()
- %GetComponentById()
- %GetComponentByName()
- %GetEventHandlers()
- %GetLinks()
- %GetPageName()
- %GetParameter()
- %GetValueById()
- %GetValueByName()
- %GetXMLName()
- %IsA()
- %IsModified()
- %Link()
- %LinkCSS()
- %LinkScript()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnAfterCreatePage()
- %OnBeforeCreatePage()
- %OnCreateApplication()
- %OnCreatePage()
- %OnDetermineCSSLevel()
- %OnDrawEnclosingDiv()
- %OnDrawHTMLBody()
- %OnDrawHTMLHead()
- %OnDrawHTMLMeta()
- %OnDrawObjectProperties()
- %OnFinishBackgroundTask()
- %OnHSPreHTTP()
- %OnMonitorBackgroundTask()
- %OnMutateChildren()
- %OnObjectSynch()
- %OnPreHTTP()
- %OnSubmit()
- %OnUseSoftModals()
- %OnZENDeserialize()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueL10N()
- %RemoveChild()
- %RemoveChildren()
- %RemoveComponent()
- %RemoveFromSaveSet()
- %RunBackgroundMethod()
- %Self()
- %SerializeObject()
- %SetBackgroundMethodStatus()
- %SetErrorById()
- %SetErrorByName()
- %SetModified()
- %SetValueById()
- %SetValueByName()
- %SetValuesByName()
- %StartScript()
- %ValidateObject()
- %ZENVersion()
- CheckFormatting()
- ConvertParameter()
- Decrypt()
- Encrypt()
- EscapeHTML()
- EscapeURL()
- GetDocPage()
- HSUILink()
- HyperEventCall()
- HyperEventHead()
- Include()
- InsertHiddenField()
- InsertHiddenFields()
- IsPrivate()
- JavaInstalled()
- Link()
- OnHTTPHeader()
- OnPage()
- OnPageError()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPreHTTP()
- OnPreHyperEvent()
- Page()
- QuoteJS()
- RewriteURL()
- ShowError()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- addChild()
- addChildAfter()
- addChildBefore()
- cancelPopup()
- checkChildStatus()
- childrenMutated()
- correctIELayering()
- createComponent()
- createComponentNS()
- deleteComponent()
- dragFinishHandler()
- dragHandler()
- dragNotifyHandler()
- dragStartHandler()
- dropHandler()
- dropStartHandler()
- endModal()
- exposeComponent()
- findElement()
- fireOnResizeEvent()
- fireOnUnloadEvent()
- fireOnUpdateEvent()
- firePopupAction()
- getChildIndex()
- getComponent()
- getComponentById()
- getEnclosingDiv()
- getHidden()
- getHintElement()
- getLabelElement()
- getOpener()
- getProperty()
- getSettings()
- getType()
- getUsername()
- gotoPage()
- hsBubbleResetAutoLogout()
- hsResetAutoLogout()
- inNavFrame()
- invokeSuper()
- isOfType()
- launchPopupWindow()
- logoutChild()
- makeId()
- onCreate()
- onDelete()
- onDisplayHandler()
- onEndModalHandler()
- onPopupAction()
- onRefreshContents()
- onSerialize()
- onServerMethodCall()
- onServerMethodError()
- onServerMethodReturn()
- onStartModalHandler()
- ondisabledHandler()
- onhandleAutoLogoutWarn()
- onkeydownHandler()
- onkeyupHandler()
- onlayoutHandler()
- onloadHandler()
- onlogoutHandler()
- onoverlayHandler()
- onresizeHandler()
- onunloadHandler()
- onupdateHandler()
- pollChildUrl()
- popupActionHandler()
- postMessageToParent()
- refreshContents()
- removeChild()
- render()
- renderContents()
- renderSVG()
- setActivityCheck()
- setComponentId()
- setHidden()
- setOverlayMode()
- setProperty()
- setPropertyAll()
- setTraceOption()
- showHelp()
- startModal()
- startProgressBar()
- stopProgressBar()
- triggerLogoutNotification()
- verifyUsername()