Author Topic: How to use the method Repository.WriteOutput  (Read 4831 times)

TheTwo

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
How to use the method Repository.WriteOutput
« on: May 21, 2008, 12:53:04 am »
Hi,

I've created my own output tab and put my text to this tab. I've called the the method

Code: [Select]
Repository.WriteOutput("Error Output", errorMessage, id)
errorMessage is a String
id is the ElementID of an Element.

In the EA User Guide the parameter id is described as follows:

It also associates the text in the Output window with the specified ID.

Now everything is listed in the Output, but when I click at one entry the associated element isn't shown at the GUI.

Why that doesn't work?

Thanks

TheTwo

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: How to use the method Repository.WriteOutput
« Reply #1 on: May 21, 2008, 08:19:54 am »
It isn't associating an EA ID.  If it was, then you would also need to say what type of ID it was (object/package/attribute/operation/connector/etc).

If you want EA to show an object when clicking on the error then implement the broadcast events EA_OnOutputItemClicked and EA_OnOutputItemDoubleClicked.

TheTwo

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: How to use the method Repository.WriteOutput
« Reply #2 on: May 21, 2008, 07:05:43 pm »
Thanks it works, but there is an error in the documentation.

In http://www.sparxsystems.com.au/EAUserGuide/index.html?ea_onoutputitemclicked.htm there is in the signature of the method LineNo As Long, but in the parameter description it is called ID.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: How to use the method Repository.WriteOutput
« Reply #3 on: May 22, 2008, 08:23:42 am »
Thanks.  Although the actual page with the problem is http://www.sparxsystems.com.au/EAUserGuide/index.html?ea_onoutputitemdoubleclicked.htm.  (But I given the way the help hyperlinks work I can understand the error.)

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: How to use the method Repository.WriteOutput
« Reply #4 on: May 22, 2008, 09:14:36 am »
Corrected - the change should be visible with the next release of EA. Thanks for identifying and clarifying the error.
Best Regards, Roy