Call us at +1 586 62 ELLIE Office Opened
sales@elliecomputing.com

Newsletter
Keep up to date with the new features added to ECMerge, the new products that we release and receive special offers! (approx. once a month):
HTML version
Text version
Beta Test - Free licence
WeblogRSS 2.0
Testimonials

NewsRSS 2.0
December 12th, 2008: We just released ECMerge 2.2 beta. This version introduces several new features, from which the Launcher, automatic session, shared options, file types and numerous improvements.

November 21st, 2008: We just parametered ECMerge for a new converter (ExifTool) which extracts metadata from a large number of files types (exe, images, audio, video...), find all the need info on the converters page.
               

Statistics object

 

 

Prototype for Statistics objects. Is a kind of SerializableObject.

Syntax

You cannot create Statistics object. The only way get such an object is currently to call SomeDocument.get_statistics:

var mydoc;
var stats = myodc.get_statistics();

Parameters

none.

Property Of

none.

Implemented In

ECMerge 2.1

Description

Statistics objects give all the information provided for a given type of comparison. These statistics are those available in the Comparison Statistics dialog box.

Properties

The properties of this object are dynamic and depends on the type of comparison. Folder comparison mix the information of the other types of documents for each pair, in addition to the merge statistics.
Each property name is an XPath leading to its value in the XML generated by as_xml( ) which is inherited from SerializableObject.

Methods

 none specific.

Examples

Example 1.

To display a message box with the statistics for a document or current selection in a folder, do this:

var stats;
var currentdoc = current_frame.coordinator.document;
if (!(currentdoc instanceof FolderDocument))
{
    stats = currentdoc.get_statistics ();
}
else
{
   stats = currentdoc.get_statistics (current_frame.coordinator.current_view.clone_selection());
}

var stats_texts = [];
for (var stat in stats)
    stats_texts.push (stat + " = " + stats[stat]);
 
alert (stats_texts.join("\n"));

See Also 

 SerializableObject object

 

Select your language English Français
© Ellié Computing 2004-2009 - Legal information - Resources