Profile picture for user jdamrau

Has anyone experienced formatted attributes losing their formats during report evaluation? Prior to our SR5 upgrade of ARIS Business Architect for SAP 7.1, we would place our descriptive narrative in the Description/Definition attribute, format select text with bold or italics (see example), and then run our custom ARIS report to build our Business Process Narrative document.

example

Since the upgrade, we can still format the text in the Description/Definition attribute, but when we run build our Business Process Narrative, the attribute formatting is removed.

Any ideas on how we can make the formatting remain in place!

by Martin Schröder
Badge for 'Contributor' achievement
Posted on Fri, 07/09/2010 - 15:29

It depends on the methods used in your custom report script (cf. Aris Script Help, Class Attr):

  • Attr.GetValue ( boolean bRemoveLineBreaks ) returns unformatted text only
  • Attr.getHTMLFormattedValue () returns the attribute value in HTML format, ready to be used by Output.OutputFormattedText
0
by Jackie Damrau Author
Posted on Fri, 07/09/2010 - 16:36

Thanks, Martin, for you feedback. I've forwarded your comment to the person who developed the custom ARIS report. I'll update this posting when I hear back.

0
by Anders Jensen
Posted on Thu, 05/26/2011 - 03:10

Hi, 

I have a similar problem which relates to a combination of preserving the attribute formatting (specified in the ARIS attribute editor), but adding in text alignment pre-defined in the report. It is as if ARIS does not allow the HTML formatted output to adhere to an overall text alignment, which can only be defined in the output report (and obviously not in the attribute editor since text alignment is defined on a attribute occurrence basis instead). 

The train of thought is as follows: 

1. We want to output a set of ARIS attributes to a Word report. All text formatting specified in the ARIS attribute editor (e.g. bold, italics, font size, font weight etc) should be kept in the output so that bold is bold, italic is italic, font size is retained etc. 

2. However, all attribute output in the report must use justified text alignment. 

3. ARIS attribute editor does not support text alignment specified on the ARIS attribute level. This is defined on the attribute occurrence level. 

4. Combining the formatted attribute value with a pre-formatted, justified paragraph in the output report does not help. 

As you can see in the report below, I have tried to combine these two conditions, but with no result. Does anyone here know how to combine the pre-formatted attribute and the text alignment of the output report?

My code is as follows:

var out = Context.createOutputObject(Context.getSelectedFormat(), Context.getSelectedFile());
out.Init(Context.getSelectedLanguage());
out.SetPageHeight(297);
out.SetPageWidth(210);

var model = ArisData.getSelectedModels()[0]; 
var attrib = model.Attribute(Constants.AT_DESC, 1033); 

Layouts = { };
Layouts.PARAGRAPH = "Paragraph";
out.DefineF(Layouts.PARAGRAPH, "Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_JUSTIFY, 0, 0, 0, 2, 0, 0);          

out.BeginSection(false, Constants.SECTION_DEFAULT);
// Write paragraph start, which marks the paragraph written with FMT_JUSTIFY
out.OutputF("\n", Layouts.PARAGRAPH); 

// Output the model description using the HTML formatted attribute value
var html = attrib.getHTMLFormattedValue().getHTML(); 
out.OutputFormattedText(html); 

// Finish off the paragraph and close the document output
out.OutputLnF("", Layouts.PARAGRAPH); 
out.EndSection(); 
out.WriteReport(); 
out.close();

 

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