![]() |
Call us at +1 586 62 ELLIE
|
|
Document object
Base prototype for all Document objects SyntaxTo create a Document object: var parameters = new Document.Parameters ( ); var doc = new Document (parameters, "view") Parametersdocument_parameters. Documents.Parameters object. Describes all the sources of data, the mode of comparison and the various settings to use activity. Document Activity string. Purpose of the document. In combination with the options, it helps to determine exactly which type of comparison is appropriate given the sources of data Property Ofnone. Implemented InECMerge 2.1 DescriptionThe Document object is ECMerge object. It is the central object of ECMerge, it realizes the comparison operation, load and saves data. It lets you study the comparison results. Properties
Methodsget_statistics ExamplesExample 1.Creates a document and displays it with focus. var parameters = new Document.Parameters(); See also
Method loadSyntaxfunction load (url) Parametersurl. URL object or String. Location of the ECMS or ECMT file. Method OfDocument constructor Implemented InECMerge 2.1 DescriptionLoads an ECMS or ECMT file from a given location, creates the appropriate type of Document for it and returns this document. ExamplesExample 1.Loads a document from a file with a local path, using automatic upgrade from String to URL: var my_doc = Document.load ("/loca/path/website-sync.ecmt");
Method get_statisticsSyntaxfunction Document.get_statistics ( ) Parametersselection. FolderDocument.Select. Specifies the sub-set of folder items for which the statistics are computed. Method OfDocument object, FolderDocument object Implemented InECMerge 2.1 DescriptionComputes the statistics for the document or sub-set of it, and returns a Statistics object describing the result. Examplessee Statistics object examples. See Also
Method is_in_fully_solved_stateSyntaxfunction Document.is_in_fully_solved_state( ) Parametersnone. Method Ofnone. Implemented InECMerge 2.1.75 DescriptionReturns true when the document is fully solved. This is the case all the data are neither in conflict nor un-written (for folders). Basically, after a merge operation, it means that everything is OK. ExamplesExample 1.This simple tells whether the document currently viewed is in fully solved state: var my_doc =
current_frame.coordinator.document; See Also
Method reloadSyntaxfunction reload (smart, side) Parameterssmart. Boolean. True to get a reload only if specified side
changed. False if reload is systematic. If omitted, true is
implied Method OfDocument object Implemented InECMerge 2.1 DescriptionReloads the given side in a smart or systematic way. Once the data is reloaded, comparison computations are re-done if necessary. ExamplesExample 1.Reloads forcefully the right side of a document: var my_doc; See Also
Methods do_export / do_importSyntaxfunction do_export (format, need_new_name,
questions_answers) Parametersformat. Document
Format string. One of the supported document format. For
import, only "unix_patch" is supported currently. Method OfDocument object Implemented InECMerge 2.1 Descriptiondo_export saves information in the requested format,
following the settings and locations specified in the current
Document.parameters. The Document.Parameters object contains an OptionsSet member called 'settings' which in turn contains under 'export' namespace many options which are used during the import or export operation. NB: a 4th parameter may be later added, which would specify the actual sub-set of options or an OptionsSet distinct from Document.parameters.settings, making the call more practical. ExamplesExample 1.Loads a document from a file with a local path, then exports an XML reports for it at specified location: var report_target_location = "/tmp/test.xml"; See Also
|
||||||||||||||||
|
Select your language English Français | |||||||||||||||||