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.
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!
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
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();