Profile picture for user ismail29033

What's up guys, so I'm busy creating this report that creates a model each time it is run, to create an overview of the business' capabilities etc.



Thing is the higher-ups want all these fancy graphical content, so I've been struggling calculating the x and y co-ordinates

[well not really struggling, but if I wasn't good at maths at school I probably wouldn't have a clue of how to go about doing this]



anyways, basically my problem is, I need the output (a RoundedRectangle) to look something like this:



 

but what I'm getting is this:

with the textOccurrence "CAPABILITIES" sitting underneath that green RoundedRectangle object

 

//this code creates the RoundedRectangle:
var capabilityHeading = newModel.createRoundedRectangle(0, 50, headingWidth, headingHeight);
capabilityHeading.setFillColor(Constants.C_GREEN, Constants.C_GREEN, Constants.FILLTYPE_SOLID);

//and this creates the textoccurrence:
var capabilityText = newModel.CreateTextOcc(capTextPositionX, capTextPositionY, "CAPABILITIES"); //
var def = capabilityText.TextDef();
var sHtmlValue = "\<html\>\<body color=\"#90EE90\" \>\<p style\=\"color:#90EE90;margin-left\:0\;margin-bottom\:0\;margin-top\:0\"\>\<span style\=\"font-size\:16pt\;\"\>\<span style\=\"color\:\#000000\;\"\>\<b\>CAPABILITIES\<\/b\>\<\/p\>\<\/body\>\<\/html\>";
def.Attribute(Constants.AT_NAME, lang).setStyledValue(sHtmlValue);
by Amol Patil
Posted on Tue, 02/19/2013 - 09:50

Hi Abdul,

Try setting Z axis order for the occurrences you create, with method setZOrder()

for e.g. with your code

//this code creates the RoundedRectangle:
var capabilityHeading = newModel.createRoundedRectangle(0, 50, headingWidth, headingHeight);
capabilityHeading.setFillColor(Constants.C_GREEN, Constants.C_GREEN, Constants.FILLTYPE_SOLID);
capabilityHeading.setZOrder(0);
 
//and this creates the textoccurrence:
var capabilityText = newModel.CreateTextOcc(capTextPositionX, capTextPositionY, "CAPABILITIES"); //
capabilityText.setZOrder(1);
var def = capabilityText.TextDef();
var sHtmlValue = "\<html\>\<body color=\"#90EE90\" \>\<p style\=\"color:#90EE90;margin-left\:0\;margin-bottom\:0\;margin-top\:0\"\>\<span style\=\"font-size\:16pt\;\"\>\<span style\=\"color\:\#000000\;\"\>\<b\>CAPABILITIES\<\/b\>\<\/p\>\<\/body\>\<\/html\>";
def.Attribute(Constants.AT_NAME, lang).setStyledValue(sHtmlValue);

Regards,

Amol Patil

0
by Abdul Ismail Author
Posted on Tue, 02/19/2013 - 13:50

Life Saver Amol!

I got that working just now on the last minute!

demo started about 20mins ago and I finished 5mins before that 10mins after getting the email about your reply (^^_)

0
by naresh k
Posted on Tue, 02/26/2013 - 08:12

HI..may i know how to get Arish Mash Zone Source code..??

and help me if u have idea about enabling ''onclick'' option in Arish Mash Zone.

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • 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