Hello everyone,

I am writing a report and encountered an enigma...

i am using the function setValue for an attribute on an object.

about the report in general: the report set numbers to all the functions in the selected models and after that he looks for objects with assigned models, if he found some he enter the new model and try to set values to the inner function set there.

Some important facts:

1. When i am executing the report from the closed model - it works great

2. If the report is open, BUT i am executing the report from the debug mode and i put a break point on the line with the setValue command - it works

3. When i run the report from the designer regularly (as Designer users do) or without a break point the report crash.

4. The error msg is ""Error while executing script: an error occurred in the report object model. error running Attr.setValue(1). An error occured in the reportobject model. Unable to save modified objects.

5. I am adding some of the problematic lines

if (SubModel != null)
                SubFunctionObjectList = SubModel.ObjOccListFilter(FunctionTypeNumber);   
                 SubFunctionObjectList = ArisData.sort(SubFunctionObjectList,Constants.SORT_Y,g_nloc);
                for (var t1=0; t1<SubFunctionObjectList.length;t1++ )

The lucky winner who will supply me with the solution will recieve....

1. A lot of thank you in the follow up thread

2. My everlasting gratitude


Thank you very much in advance


by Didier Nowak
Posted on Wed, 03/28/2012 - 16:59

Hello Gilad,


Try to use a macro to run the report.

In this macro, you can check if the model is open, and if it's the case, you can save it and close it.

Then you execute the report, and finally you re-open the model.

for ( var i = 0; i < selection.length; i++){
        var wasopen= false;
        var oModel = selection[i];
        if (Designer.isOpen(oModel)){
            wasopen= true;

       //call report
     if (wasopen){
        Designer.openModel(oModel,false, true, false); 



by Gilad Wilk Author
Posted on Thu, 03/29/2012 - 08:32

Hi Didier,

1. as promised - Thank you ! Thank you ! Thank you ! Thank you ! Thank you !

for the quick response,

I am going to try it :)

with everlasting gratitude


by Gilad Wilk Author
Posted on Thu, 03/29/2012 - 09:03

Works like a charm!!!

Once again Thank you very much Didier

by Didier Nowak
Posted on Thu, 03/29/2012 - 09:27

You're welcome !


Enjoy scripting with aris ! :-)


Featured achievement

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
  • SS
  • MZ
  • Profile picture for user kbiront
  • Profile picture for user Tony Iliev
  • Profile picture for user amandeep.7.singh
  • PacMan


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