JavaScript
{dialog.object}debugInfoToS3 Method
Syntax
{dialog.object}.debugInfoToS3(data,connectionString,objectName [,append [,silent]]);
Arguments
- dataAny Type
The data you want to write to the file. If the data is an Object, you must serialize it using JSON.stringify()
- connectionStringstring
The connection string to the S3 bucket. (Use the Tools > Storage connection strings menu item to define storage connection strings.)
- objectNamestring
Name of the S3 object (i.e. filename)
- appendboolean
Defaults to false. If true, the data are appended to the end of an existing file
- silentboolean
Defaults to false. If true, the confirmation message is suppressed.
Description
Writes client-side data to a file stored in an Amazon S3 bucket.
Discussion
This method is useful when debugging an application. It allows you to write data to a S3 bucket. See {dialog.object}.debugInfoToFile() for more information.
Example
var list = {dialog.object}.getControl('list1'); var connectionString = 'mys3connectionstring'; var objectname = 'debugdata.txt'; {dialog.object}.debugInfoToS3(data,connectionString,objectname,true,false);
See Also