A new version of the file is added to the repository. This method applies only in EPM Workspace. If the number and names of sections are not changed by your script, then the Interactive Reporting database connection (oce) information is not required.
Example 1 using addVersion:
var intV = objRep.addVersion(strUuid, objFile, strDesc);
Parameter | Description |
---|---|
strUuid | The document UUID |
objFile | The file that contains the new content, created by calling env.writeBqyDom() method |
strDesc | The description to add to the repository |
Example 2 using addVersion:
var intV = objRep.addVersion(strUuid, objFile, strDesc, objOce);
Use this method format if the Interactive Reporting database connection files associated with the sections require change, or if you have modified the query or data model. This is used by Data Model Update; see “Using Impact Management Services” in the Hyperion Workspace Administrator's Guide.
Parameter | Description |
---|---|
strUuid | The document UUID |
objFile | The file that contains the new content, created by calling the env.writeBqyDom() method |
strDesc | The description to add to the repository |
objOce | An object that represents section information for the Interactive Reporting document, including the Interactive Reporting database connection information that is associated with each query and data model. |
Example 3 using addVersion:
var intV = objRep.addVersion(strUuid, objFile, strDesc, objOceOld, objOceNew);
This form of the method is tailored to a specific situation, where the updated document has the same query and data model sections as the original (one for one mapping, the same number of each as the original, with identical names to the original) and you want to retain the settings of the previous version.
The oce details are copied from objOceOld (the previous version in repository) to objOceNew, as is.
JavaScript Update uses this form of the method, because it retains the oce settings of the previous version. See “Using Impact Management Services” in the Hyperion Workspace Administrator's Guide.
Parameter | Description |
---|---|
strUuid | The document UUID |
objFile | The file that contains the new content, created by calling the env.writeBqyDom() method |
strDesc | The description to add to the repository |
objOceOld | An object that represents section information for the earlier version of the Interactive Reporting document, including Interactive Reporting database connection information that is associated with each query or data model. |