Profile picture for user pattinelson

I am trying make a change to the standard "Export RASCI chart" report.   We are putting a Step Id in AT_UA_TXT_22.   I was able to change the sort so the functions are output in the order of the Step Id.   I would like to display the value of StepId  (AT_UA_TXT_22)  either as a new column or combined with the function name.  I can't get this part to work!      Any help would be appreciated.

by Mayur Patel
Posted on Tue, 04/02/2013 - 14:36

Hi,

 

You could update the following line in the script(line 173)

 

oOutputFile.TableCell(arrOuter[i][0].funcDef.Name(g_nLoc) + " - mytxt", 20, getString("TEXT_3"), 10, Constants.C_BLACK, new java.awt.Color(0.72265625, 0.99609375, 0.72265625).getRGB(), 0, Constants.FMT_BOLD | Constants.FMT_LEFT | Constants.FMT_VTOP, 0);

 

See where I put " - mytxt"

 

0
by Patti Nelson Author
Posted on Wed, 04/03/2013 - 17:48

My issue is the  mytext  - finding the AT_UA_TXT_22 value.   For updating the sort - I used: 

  

 oFuncObjects = ArisData.sort(oFuncObjects, Constants.AT_UA_TXT_22,  g_nLoc);  

But Contants.AT_UA_TXT_22 does not work here...

 

0
by Mayur Patel
Posted on Thu, 04/04/2013 - 09:25

No problems there

 

To get the value of an attribute try something like:

arrOuter[i][0].funcDef.Attribute(Constants.AT_UA_TXT_22, g_nloc).GetValue(false)

 

Make sure to check the letter cases as ARIS is finicky about that

 

 

0
by Patti Nelson Author
Posted on Thu, 04/04/2013 - 18:41

I've tried that and I get the following error: 

 oOutputFile.TableCell(arrOuter[i][0].funcDef.Attribute((Constants.AT_UA_TXT_22(g_nloc)).GetValue(false)) +

I got sytax error with  ...  AT_UA_TXT_22, g_nloc   so changed it to the above code.    The error I'm getting is: 

TypeError: Cannot call property AT_UA_TXT_22 in object constants.  Its is not a function, it is "number". 

0
by Mayur Patel
Posted on Tue, 04/09/2013 - 11:06

oOutputFile.TableCell(arrOuter[i][0].funcDef.Attribute(Constants.AT_UA_TXT_22,g_nloc).GetValue(false), 10, "Arial"...

 

This is an actual line from one of my working scripts:

g_ooutfile.TableCell(oObjOcc.Model().Attribute(Constants.AT_USER_ATTR5, g_nloc).getValue(), 10, "Arial", 12, Constants.C_BLACK, Constants.C_TRANSPARENT, 0, Constants.FMT_CENTER | Constants.FMT_VCENTER, 0);

 

Notice that the get value is different but either should work.

 

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CP
  • BZ
  • Profile picture for user TEF_Bernd
  • ПЦ
  • CR
  • 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