Packageat.db
Classpublic class CallTransaction
InheritanceCallTransaction Inheritance flash.events.EventDispatcher

The CallTransaction class allows updating of which slides are in a call asynchronously and provides feedback as it progresses.

When finished with all of it's updates associated with a particular request, it dispatches events of type ProgressEvent.Progress after each database transaction and one event of type Event.COMPLETE when all transactions needed for a particular method called have completed.



Public Properties
 PropertyDefined by
  callID : int
[read-only]
CallTransaction
  debugMode : Boolean = false
CallTransaction
  overlay : OverlayWindow
[write-only]
CallTransaction
  xmlData : XML
CallTransaction
Protected Properties
 PropertyDefined by
  _callID : int
CallTransaction
  callstructureEdit : String = ""
CallTransaction
  currentMultipleID : int = 0
CallTransaction
  isEditable : String = ""
CallTransaction
  isMultipleCall : Boolean = false
CallTransaction
  multipleCalls : Boolean = false
CallTransaction
  multpleID : int = 0
CallTransaction
  normalizedCall : XML
CallTransaction
  queriesComplete : int = 0
CallTransaction
  queriesTotal : int = 0
CallTransaction
  queuedUpdates : Array
CallTransaction
  slideCursor : int = 0
CallTransaction
  title : String = ""
CallTransaction
  titleAbbr : String = ""
CallTransaction
  uniqueSlideID : int = 0
CallTransaction
  updateComplete : Boolean = true
CallTransaction
Public Methods
 MethodDefined by
  
CallTransaction(sqlEngine:SQLEngine, target:IEventDispatcher = null)
CallTransaction
  
updateCall(call:XML):void
Method for placing a customized call data into the application database.
CallTransaction
  
updateCalls(calls:XMLList):void
Method for placing a customized call data into the application database.
CallTransaction
Protected Methods
 MethodDefined by
  
CallTransaction
Property detail
_callIDproperty
protected var _callID:int
callIDproperty 
callID:int  [read-only]Implementation
    public function get callID():int
callstructureEditproperty 
protected var callstructureEdit:String = ""
currentMultipleIDproperty 
protected var currentMultipleID:int = 0
debugModeproperty 
public var debugMode:Boolean = false
isEditableproperty 
protected var isEditable:String = ""
isMultipleCallproperty 
protected var isMultipleCall:Boolean = false
multipleCallsproperty 
protected var multipleCalls:Boolean = false
multpleIDproperty 
protected var multpleID:int = 0
normalizedCallproperty 
protected var normalizedCall:XML
overlayproperty 
overlay:OverlayWindow  [write-only]Implementation
    public function set overlay(value:OverlayWindow):void
queriesCompleteproperty 
protected var queriesComplete:int = 0
queriesTotalproperty 
protected var queriesTotal:int = 0
queuedUpdatesproperty 
protected var queuedUpdates:Array
slideCursorproperty 
protected var slideCursor:int = 0
titleproperty 
protected var title:String = ""
titleAbbrproperty 
protected var titleAbbr:String = ""
uniqueSlideIDproperty 
protected var uniqueSlideID:int = 0
updateCompleteproperty 
protected var updateComplete:Boolean = true
xmlDataproperty 
public var xmlData:XML
Constructor detail
CallTransaction()constructor
public function CallTransaction(sqlEngine:SQLEngine, target:IEventDispatcher = null)Parameters
sqlEngine:SQLEngine
 
target:IEventDispatcher (default = null)
Method detail
onOverlayLoaded()method
protected function onOverlayLoaded(e:OverlayEvent):voidParameters
e:OverlayEvent
updateCall()method 
public function updateCall(call:XML):void

Method for placing a customized call data into the application database. This method relies on properly formed XML data and XML data that matches the return model for this item type. Valid attributes consist of any variety, however, it is essential that: 1. 'id' attribute in call node be present (unique identifier). 2. 'dbid' within the slide nodes is present (unique identifier).

Parameters
call:XML

Example
     <call type="default" id="1" title="Default Cialis Call Config 1" titleAbbr="ABC" isEditable="false">
      <slide dbid="9" id="section2-slide2" ... />
      <slide dbid="8" id="section2-slide1" ... />
      <slide dbid="2" id="section1-slide2" ...>
       <slide dbid="2" id="section1-slide2" ... />
       <slide dbid="3" id="section1-slide3" ... />
       <slide dbid="4" id="section1-slide4" ... />
       <slide dbid="5" id="section1-slide6" ... />
      </slide>
     </call>
   

updateCalls()method 
public function updateCalls(calls:XMLList):void

Method for placing a customized call data into the application database. This method relies on properly formed XML data and XML data that matches the return model for this item type. Valid attributes consist of any variety, however, it is essential that: 1. 'id' attribute in call node be present (unique identifier). 2. 'dbid' within the slide nodes is present (unique identifier).

Parameters
calls:XMLList

Example
     <call type="custom" id="1" title="Custom Cialis Call Config 1" titleAbbr="ABC" isEditable="true">
      <slide dbid="9" id="section2-slide2" ... />
      <slide dbid="8" id="section2-slide1" ... />
      <slide dbid="2" id="section1-slide2" ...>
       <slide dbid="2" id="section1-slide2" ... />
       <slide dbid="3" id="section1-slide3" ... />
       <slide dbid="4" id="section1-slide4" ... />
       <slide dbid="5" id="section1-slide6" ... />
      </slide>
     </call>
     <call type="custom" id="2" title="Custom Cialis Call Config 1" titleAbbr="DEF" isEditable="true">
      <slide dbid="92" id="section9-slide2" ... />
      <slide dbid="18" id="section2-slide6" ... />
     </call>