Book a Demo

Author Topic: fixed operation parameters in generated reports  (Read 4423 times)

Luke1410

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
fixed operation parameters in generated reports
« on: November 29, 2008, 01:31:54 am »
Hi,

I've got a simple class diagram, containing a class with a single operation. The operation has a single parameter which is set to "Fixed".

From the EA help documentation (Operation Parameters): "Fixed - Set the parameter to const, even if passed by reference.". This is exactly the behavior I want to design.

Now I generate a report (HTML or RTF, in RTF using the template: basic template). My problem is that I don't see any place where the report mentions that the parameter is set to fixed.

Did I simply overlook it in the report? Do I have to change a setting in EA so that the "fixed" flag gets exported, too?

[Edit]
I'm using EA build 833
[/Edit]
« Last Edit: November 29, 2008, 01:32:52 am by Luke1410 »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: fixed operation parameters in generated report
« Reply #1 on: December 01, 2008, 08:41:37 am »
For RTF inside a parameter section you can right click and insert "Const".  But I don't know how to do it for html reports.

Luke1410

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: fixed operation parameters in generated report
« Reply #2 on: December 01, 2008, 11:20:09 pm »
I feel a bit dump having to ask that question, but where is that parameter section you refer to?

If I flag a parameter in EA as const (right click on the class -> attributes... -> tick the "const" checkbox), this information is then also meantioned in the generated report (in both RTF and HTML reports). For instance as: "private const foo*".
However, for parameters of class operations, I don't see the info in the generated reports.

I suspect you are talking about an entire different dialog here, since u said to "insert "Const"" inside a parameter section, but I seem to be unable to find the dialog you are refering to.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: fixed operation parameters in generated report
« Reply #3 on: December 02, 2008, 09:16:32 am »
Look in the EA Help for the index entry RTF Style Template Editor   Description (Enhanced), and double-click on it. The topic on the RTF editor displays. Read that, then find the RTF Style Editor screen for your package in EA.

On the editor screen, look at the Sections panel. Scroll down the panel until you see, in the Element list the checkbox for Method, which has a subordinate checkbox for Parameter. Select them both. In the right hand Contents panel, the Parameter entry Right-click to insert parameter fields is highlighted, Right click on it and select Const from the context menu.
« Last Edit: December 02, 2008, 09:18:04 am by RoyC »
Best Regards, Roy

Luke1410

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: fixed operation parameters in generated report
« Reply #4 on: December 05, 2008, 07:03:04 am »
Thanks a lot for the detailed explanation. I finally was able to get the const being exported to the report.

Is it impossible to add the const to the HTML report? I tried to add #CONST# to the Content - Operations Item Parameters in the HTML and CSS Style Editor but all it resulted in was the string #CONST# being added to the generated HTML report.

Because of this fact and the note in the HTML Reports section of the EA help document
Quote
The current implementation is based on internal and external templates and generated Javascript. The ability to edit all templates is to be added in a future version of Enterprise Architect.
I suspect that it's not supported atm by EA. Or is there a way?

I normally favor the HTML report over the RTF report, because in my opinion it's easier to work with than the RTF version.
« Last Edit: December 05, 2008, 07:04:05 am by Luke1410 »