SO
Hi,
I want to create s script which will run on database context and will create a version of the same database.
Can any one suggests how this can be done.
Thanks in advance.
Hi,
the following example shows how to use versioning in a report script:
var versioning = Context.getComponent("Versioning") var options = versioning.createOptions() options.setRecurseChildGroups ( true ) var rootGroupToArchiveEntireDB = ArisData.getActiveDatabase().RootGroup() versioning.archive ( [rootGroupToArchiveEntireDB], "new version", options, true)