Packageat.db
Classpublic class GetBookmarkDataByIndicationIDXML

Class for retrieving bookmark data from the application database based on indicationid.



Public Properties
 PropertyDefined by
  bookmarkdataxml : XMLList
Holds the bookmarkdataxml value for the XMLList returned from the data queries to the application database.
GetBookmarkDataByIndicationIDXML
  getAttributeXML : GetAttributeXML
Instantiates the GetAttributeXML class.
GetBookmarkDataByIndicationIDXML
  indicationID : int
Holds the indicationID value for queries used to locate the bookmark database records.
GetBookmarkDataByIndicationIDXML
Public Methods
 MethodDefined by
  
Constructor.
GetBookmarkDataByIndicationIDXML
Protected Methods
 MethodDefined by
  
init():void
Init.
GetBookmarkDataByIndicationIDXML
  
onDBStatementSelectResult(event:SQLEvent):void
Retrieves the records from the application database that comprise the slide data for a set of bookmarks from associated joined tables.
GetBookmarkDataByIndicationIDXML
  
onEveDBError(event:SQLEvent):void
Error handler method for database connection errors.
GetBookmarkDataByIndicationIDXML
  
onEveDBOpened(event:SQLEvent):void
Retrieves the root records from the application database that comprise a set of bookmarks for a call based on the variable indicationID.
GetBookmarkDataByIndicationIDXML
Property detail
bookmarkdataxmlproperty
public var bookmarkdataxml:XMLList

Holds the bookmarkdataxml value for the XMLList returned from the data queries to the application database.

getAttributeXMLproperty 
public var getAttributeXML:GetAttributeXML

Instantiates the GetAttributeXML class.

See also

indicationIDproperty 
public var indicationID:int

Holds the indicationID value for queries used to locate the bookmark database records.

Constructor detail
GetBookmarkDataByIndicationIDXML()constructor
public function GetBookmarkDataByIndicationIDXML(indicationID:int)

Constructor.

Parameters
indicationID:int
Method detail
init()method
protected function init():void

Init. Establishes connection to the application database.

onDBStatementSelectResult()method 
protected function onDBStatementSelectResult(event:SQLEvent):void

Retrieves the records from the application database that comprise the slide data for a set of bookmarks from associated joined tables.

This method utilizes a system of looping to extract all the relevant information for a bookmark set, with a predecessor query that obtains the value for the isEditable setting. Once data is retrieved from the application database it is constructed into a string and then cast into XMLList for eVE use.

If there are no bookmarks at all for this indicationid this method uses the calltypeid to grab data from the calltype table and create a childless bookmark element in the XML

Parameters
event:SQLEventSQLEvent

See also

onEveDBError()method 
protected function onEveDBError(event:SQLEvent):void

Error handler method for database connection errors.

Parameters
event:SQLEventSQLEvent
onEveDBOpened()method 
protected function onEveDBOpened(event:SQLEvent):void

Retrieves the root records from the application database that comprise a set of bookmarks for a call based on the variable indicationID.

The bookmarks in eVE are linked to calls. In the application database the calls are represented primarily by 2 tables: tbl_CallType and tbl_CallConfig. Similarly the bookmarks are represented in the application database by these 2 tables: tbl_Bookmark and tbl_BookmarkAttributes.

A set of bookmarks is comprised of slides. The slides correlate to a state that users can navigate to during a presentation.

Parameters
event:SQLEventSQLEvent

See also