ZS

Hi !

I inherited a report which rearrange the object position in a model. It had worked in version 7.1, but when we moved to 7.2, it failed.

When the report calls the method object.SetPosition(x,y), an error occured which says that the script is trying to write a read only attribute.

I'm new with aris scripts, but I found a documentation about reports and macros that says the report is designed to collect a data about model and the macro is designed to manipulate the model. I guess it's a wrong concept to change object place in the model with report, but in the past it worked.

Please make me be sure, I'm on the right way when I intended to reimplement the script as macro to correct the error.

And can anybody explain if how worked the script in the earlier versions? I guess It shouldn't have worked as report.

 

Thank's

 

Zoltan

 

by Rick Bosworth
Posted on Mon, 02/24/2014 - 20:18

Both reports and macros can change models. There are some differences in what you can do with a report vs a macro but they both can change models. Sorry though I can't give you any help with why the script is not working in the newer version.

0
by Thierry Caro
Posted on Tue, 02/25/2014 - 17:44

Hello

I confirm that the object.setPosition(x,y) is supported in 7.2.   Start by looking at the ArisData.openDatabase statement to check if the database is not opened ReadOnly (p_bReadOnly=true).  Also check the executing-user's access rights on the model.  Those are the "usual suspects"...

Thierry

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CR
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • 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