Hello Community,
I have question regarding the aris report and its guid number.
Is there any function that I can find the report's name and where it's stored with a given GUID number?
Thank you very much in advance!
Best regards!
Hi,
have you taken a look at the API of the ScriptAdmin component?
I have not tried this, but from what I gather, this may be a solution to get the GUID of a report:
Use ScriptAdmin.exportFile to generate a ZipEntry object.
Ask the ZipEntry for the file name. As far as I know, all files of a report export contain the GUID in their name, such as <GUID>.script
I'm not sure, what this code snippet (found in the online help) will deliver:
var scriptAdminComponent = Context.getComponent("ScriptAdmin") var aScriptComponentInfo = scriptAdminComponent.getScriptComponents() for(var i=0; i<aScriptComponentInfo.length; i++) { var ID = aScriptComponentInfo[i].getComponentID() var sComponent = aScriptComponentInfo[i]. getComponentName() }
ComponentName is supposed to be a technical name of the report. Maybe that is the GUID. If not, try my first suggestion.
Hello Ye,
you can find the right methods in a standard report, category administration "Output overview of reports, macros, and semantic checks". Unfortunately in our Aris 10.0.4 the source is locked/encrypted (why? too many secrets reduce the value of Aris). But in this post you can find an extended script version.
It iterates through all script categories and collects a list of script names, guids and further properties
var aScriptInfos = scriptAdmin.getScriptInfos(...) accesses the script properties,
then you can use scriptInfo.getID() for the guid
Regards, Martin
Here's the fixed link https://www.ariscommunity.com/users/sylviavangiersbergen/2018-12-06-report-which-gives-overview-reports-including-last-…
Cheers
Rune