Class Reference
IRIS for UNIX 2024.1.2
|
|
Private
Storage
|
Template for pages which need to be able to interact with Source Control hooks.
This class extends the basic source control interactions implemented in
|
|
Subclasses | ||
---|---|---|
EnsPortal.BPLEditor | EnsPortal.ComplexRecordMapper | EnsPortal.DTLEditor |
EnsPortal.EDI.devTemplate | EnsPortal.LookupSettings | EnsPortal.RecordMapper |
EnsPortal.RuleEditor |
|
Page to use for managing popups requested by the source control framework.
Page to use for displaying output from the server.
|
onnotifyView event handler: This event is fired when a dataController connected to this dataView raises an event.
|
Determine whether source control is enabled and ensure we don't write out the session cookie if we are running in Studio mode.
Add the EnsException error handling on the client.
This callback is called at the start of the HTML HEAD section of the page (just after the title).
It allows a page to write out meta tags, if desired. The default implementation writes out an IE-specific meta tag to ensure that IE 9 and 10 don't fall back into Compatibility Mode when we are returning an HTML5 page (i.e.cssLevel is set to 3).
Callback to return a list of resources required for a specific HyperEvent. The user must have sufficient privileges on one of the resource/permission pairs to be permitted to execute the hyperevent. An empty string implies the user already has sufficient privileges for the ZenMethod specified in pMethod.
Use%DrawSourceControlCommands () to render the extra source control options in the tool ribbon.
Avoid writing out the session cookie if we are in a Studio session.
Test if the user has write privilege.
Get the title string to add to the locator row. This should be implemented in a subclass.
Gray out ribbon buttons 'Save', 'Save As', 'Compile', and 'Delete'. Invoked in case of read-only mode.
Add check to ensure that we correctly load documents on the client when source control hooks are in use. Also set up a timer to ensure we don't hit timeouts while editing documents in Studio, as well as When in Studio mode, also detect whether we are running IE10, as we need to save documents differently if that is the case.
Note that special handling is required for the LOADCOMPLETE event. We need to ensure that Studio gets the LOADCOMPLETE event, as well as updating the document title later to ensure the correct reload behaviour. The timeout is extra-long for IE9 and up because the main page's onload() sequence may be triggered before the SVG is fully loaded, so we need to build in enough time to let the SVG load before we update the title.
Set the modified flag for the page.
SetreadOnly to the value of readOnly. Subclasses MUST implement this method to update the controls on the page so that the page's behaviour actually matches the value of the readOnly flag.
Set data into the results element for Studio. Note that usingDOMElement should only be true under IE10.
Helper method to hide or show SVG elements when opening a popup. This is primarily to ensure that we don't run into issues with IE and the Adobe plugin when the popup window also uses SVG.