MK

Hi Guys

With the below code i get the below error when i try to run the macro

"Cannot find method Designer.setFillColor(.........

var def =  Designer.getObjDefByGUID(Context.getLoginInfo(model).getDatabase(),"c291d085-8d58-11e1-124f-b9143ee134aa");                

var occs = Designer.getOccs(def);    

 for(var i=0; i<occs.length; i++){     

      setColor(occs[i]);

   }

     function setColor(occ)

   {    

   Designer.setFillColor(model,occ,Constants.C_BLACK);

Could you please tell me what went wrong.

Thanks and Regards

Manojna Kadiri

by Ciska de Jager
Posted on Thu, 06/28/2012 - 06:39

Hi Manojna,

You need to use the java colors... example

Designer.setFillColor(model, occ, java.awt.Color.green);

Ciska

0
by Stefan Geis
Posted on Wed, 07/17/2013 - 11:33

Hi,

I use the java colors and still get an "Wrapped java.lang.UnsupportedOperationException" when I try to use Designer.setFillColor.

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

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