Packageat.db
Classpublic class GetBookmarkStructureByIndicationIDXML

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



Public Properties
 PropertyDefined by
  bookmarkstructurexml : XMLList
Holds the bookmarkstructurexml value for the XMLList returned from the data queries to the application database.
GetBookmarkStructureByIndicationIDXML
  getSlideDataByID : SelectSlideData
Class for retrieving original attribute settings for a slide
GetBookmarkStructureByIndicationIDXML
  id : int = 0
Holds the id value for the bookmark for XML parsing.
GetBookmarkStructureByIndicationIDXML
  idInput : int = 0
Holds the idInput value to be used in query to return bookmark data.
GetBookmarkStructureByIndicationIDXML
  indicationID : int
Holds the indicationID value for queries used to locate the bookmark database records.
GetBookmarkStructureByIndicationIDXML
  isEditable : String = ""
Holds the isEditable value for the bookmark for XML parsing.
GetBookmarkStructureByIndicationIDXML
  myPattern : RegExp
Regular expression variable for use in XML parsing
GetBookmarkStructureByIndicationIDXML
  title : String = ""
Holds the title value for the bookmark for XML parsing.
GetBookmarkStructureByIndicationIDXML
  titleAbbr : String = ""
Holds the titleAbbr value for the bookmark for XML parsing.
GetBookmarkStructureByIndicationIDXML
  type : String = ""
Holds the type value for the bookmark for XML parsing.
GetBookmarkStructureByIndicationIDXML
Public Methods
 MethodDefined by
  
Constructor.
GetBookmarkStructureByIndicationIDXML
Protected Methods
 MethodDefined by
  
init():void
Init.
GetBookmarkStructureByIndicationIDXML
  
onDBStatementSelectResult(event:SQLEvent):void
Retrieves the records from the application database that comprise the slide data for a set of bookmarks for an indication from associated joined tables.
GetBookmarkStructureByIndicationIDXML
  
onEveDBError(event:SQLEvent):void
Error handler method for database connection errors.
GetBookmarkStructureByIndicationIDXML
  
onEveDBOpened(event:SQLEvent):void
Retrieves the root records from the application database that comprise a set of bookmark structures for a call based on the variable indicationID.
GetBookmarkStructureByIndicationIDXML
Property detail
bookmarkstructurexmlproperty
public var bookmarkstructurexml:XMLList

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

getSlideDataByIDproperty 
public var getSlideDataByID:SelectSlideData

Class for retrieving original attribute settings for a slide

idproperty 
public var id:int = 0

Holds the id value for the bookmark for XML parsing.

idInputproperty 
public var idInput:int = 0

Holds the idInput value to be used in query to return bookmark data.

indicationIDproperty 
public var indicationID:int

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

isEditableproperty 
public var isEditable:String = ""

Holds the isEditable value for the bookmark for XML parsing.

myPatternproperty 
public var myPattern:RegExp

Regular expression variable for use in XML parsing

titleproperty 
public var title:String = ""

Holds the title value for the bookmark for XML parsing.

titleAbbrproperty 
public var titleAbbr:String = ""

Holds the titleAbbr value for the bookmark for XML parsing.

typeproperty 
public var type:String = ""

Holds the type value for the bookmark for XML parsing.

Constructor detail
GetBookmarkStructureByIndicationIDXML()constructor
public function GetBookmarkStructureByIndicationIDXML(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 for an indication 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 bookmark structures 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