Adobe COLDFUSION 9 Manual page 657

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Returns
An instance of
coldfusion.air.SessionToken
Syntax
public function keepClientObject(conflict:coldfusion.air.Conflict):SessionToken
Parameters
Parameter
coldfusion.air.Conflict
Example
See the example in the section keepAllClientObjects. For
iterate over each conflict in the conflictarray collection.
Offline AIR SQLite API enhancements
The following new parameters for
New Parameters
Type
encryptionKey
ByteArray
cacehDirectory
File
SessionToken class is dynamic
A class is dynamic in ActionScript if you can add additional key-value pairs to the instance of the class.
In this release,
sessionToken
where the API is called to the success or fault handlers.
Example
private function fetchData():void
{
var token:AsyncToken= syncmanager.fetch("fetch");
token.addResponder(new mx.rpc.Responder(fetchSuccess, fetchFault));
// Test For SessionToken class to be Dynamic, so that Dynamic Properties could
be added
token.userdefined_key = "value";
}
public function fetchSuccess(event:SyncResultEvent):void
{
if(event.token.userdefined_key == "value")
{ .... }
}
Support for AutoCommit
SyncManager supports a Boolean property
The default value is
.
false
associated with
Description
The conflict that the server raises.
keepClientObject
:
openSession
Required/Optional
Description
Optional
Used to encrypt offline SQLite database. For details, see
the
database" on page 648.
Optional
Used to specify a custom cache directory. For details, see
the cache
is dynamic class. Therefore, you can add additional information that can be passed from
.
autoCommit
Last updated 8/5/2010
call.
keepClientObject
, the only difference is that you must
directory" on page 648.
652
"Encrypting
"Specifying

Advertisement

Table of Contents
loading

Table of Contents