Ellié Computing Home Page
My Shopping Cart

Your shopping cart is empty

Display Cart

Call us at +1 586 62 ELLIE / +1 586 62 35543 Office Closed
sales@elliecomputing.com - Contact us


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