YD

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!

by M. Zschuckelt
Posted on Wed, 12/19/2018 - 10:02

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.

0
by Ye Ding Author
Posted on Fri, 01/11/2019 - 15:01

In reply to by M. Zschuckelt

Hi M. Zschuckelt,

Thank you very much for your help. I would try the method you mentioned.

Best,

Ye

0
by Martin Schröder
Badge for 'Contributor' achievement
Posted on Wed, 01/09/2019 - 17:34

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

0
by Ye Ding Author
Posted on Fri, 01/11/2019 - 14:49

In reply to by smarty

Hi Martin,

thank you very much for your answer. 

Unfortunately I can't open your link. Could you please post the link again, thank you very much for your help!

Best,

Ye

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks
  • Profile picture for user frankweise
  • Profile picture for user Henrik Buckler
  • Profile picture for user UffeK
  • SS
  • MZ
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock