Hi all,
I need to create copies of reports to create new revised versions of them.
Does anybody out there know how to create a copy of an Aris report script without losing any information?
So far, I've tried two different ways to copy reports:
1) Export report and import it again under a new name.
Problem:
Due to the identifier, Aris recognises the report and overwrites the original one.
2) Create new report and copy script code into the new report.
Disadvantages:
- String table isn't copied
- Properties have to be copied manually field by field
- In case the original report was created in the wysiwyg-editor, the copy can only be edited in the script editor.
--> Possible workaround for the string table: To avoid losing the string table, I copied the original string table to excel and created a variable declaration for each string (e.g. var HEADERTEXT1 = "xyz"). Subsequently, I copied this table back into the script to define each string as a global variable.
I confess it's not pretty but, it works...
Does anybody have better solution how to create a copy of a report? Or is there a better way to handled versioning of reports?
Many thanks in advance!
Stefan Geis on
Phillip,
do you know where the identifier is stored in the exported data?
My guess is that it is just the file names (without filename extension) in the exported amx / zip file (to open the exported data, add the filename extension ".zip"). If I am correct, a solution is to extract all the files, change the names from e.g. cfc7a6e0-fc0f-11dd-67f4-aec0902754fe.info to something else, but the same something for all of the files (i.e. .script, .info, .loc), re-zip it, remove the extension .zip and import the data.
But this is a hack because the filename seems to be a GUID. If you change it to something similar, it is more likely that your new filename still satisfies the GUID properties (especially to be unique on your machine) but you never know...
In case you try this, let me know whether this worked & good luck!
Stefan