AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

AdvantageModule Methods

The AdvantageModule type exposes the following members.

Methods


  Name Description
Public method BroadcastEvent
Allows broadcasting of information between modules rendered in an AdvantageTemplatePage. One module can broadcast a message with an event ID and arguments, other modules that override the "ReceiveEvent" virtual method will receive the message. Messages should be broadcast PRIOR to the "PreRender Event" so that other modules may act upon the message.
Public method Client_ObjectClearLocks
Unlocks all object specified by the unique lock key.
Public method Client_ObjectLock

Requests an object lock for a specified user and master identifier.

This will attempt to lock the record on the server and return the status. It will generate the javascript client code to poll for refresh/locking.

Successful API requests will return the status of the lock : { Status: 0, Message: '', UserName: '' }.

Status

  • Error = -1
  • Unlocked = 0
  • Locked = 0
  • LockedByOtherSession = 0

Message

  • The return message from the lock request

UserName

  • The user who currently owns the lock
Public method Client_UnObjectLock
Object unlock. Unlocks a specific object.
Public method GetNavigations
Pass through to AdvantagePageTemplate GetNavigations
Public method ReceiveEvent
Virtual method that can be overridden to receive messages that are broadcast via the "BroadcastEvent" method
Public method RecieveEvent Obsolete.
Recieves the event.
Public method RegisterBottomScript(Literal)
Registers content to the bottom of the page
Public method RegisterBottomScript(String, Literal)
Registers content to the bottom of the page
Public method RegisterBottomScript(PlaceHolder)
Registers content to the bottom of the page
Public method RegisterBottomScript(String, PlaceHolder)
Registers content to the bottom of the page
Public method RegisterBottomScript(String, String)
Registers content to the bottom of the page
Public method RegisterBottomScript(String)
Registers content to the bottom of the page
Public method RegisterTopScript(Literal)
Registers content to the top of the page
Public method RegisterTopScript(String, Literal)
Registers content to the top of the page
Public method RegisterTopScript(PlaceHolder)
Registers content to the top of the page
Public method RegisterTopScript(String, PlaceHolder)
Registers content to the top of the page
Public method RegisterTopScript(String, String)
Registers content to the top of the page
Public method RegisterTopScript(String)
Registers content to the top of the page
Public method RenderControlContent
Renders the content of the control.
Public method SearchIndexUsingBrowserInstance
[AdvantagePageTemplate.SearchIndexUsingBrowserInstance]
Public method SetOpenGraph
Sets the open graph.
Public method SiteSettings()()()()
Sites the settings.
Public method SiteSettings<(Of <<'(T>)>>)()()()()
Pass through to AdvantagePageTemplate SiteSettings