Author Topic: Use AddinBroadcast in Tagged Values  (Read 8025 times)

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Use AddinBroadcast in Tagged Values
« on: March 12, 2012, 10:59:01 pm »
I have created a tagged value to use the AddinBroadcast Function

Type=AddinBroadcast;
Values=SiemensEnvironment.EA_OnElementTagEdit;

Then i created an event function to listen to the event.

public void EA_OnElementTagEdit(EA.Repository Repository, long ObjectId, String TagName, ref String TagValue, ref String TagNotes)
{
     TagNotes = "Hallo";
}

When i klick on the ellipse nothing happens. Any idea what is wrong.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Use AddinBroadcast in Tagged Values
« Reply #1 on: March 12, 2012, 11:56:58 pm »
Did you define the tag as Type=AddinBroadcast in the definition?

q.

[edit:] I tried to return notes/value. None did change. So: as usual. It's broken. Report a bug.
« Last Edit: March 13, 2012, 12:08:39 am by qwerty »

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Use AddinBroadcast in Tagged Values
« Reply #2 on: March 13, 2012, 12:20:02 am »
Yes i defined it correctly. The proposed ellipse button also appeared. But nothing happend. I will submit a bug (maybe i reach 100 bug reports befor summer ...)

Thanks for your support

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Use AddinBroadcast in Tagged Values
« Reply #3 on: March 13, 2012, 12:34:41 am »
I'm only at 50+ but mainly because I gave up sending reports for all findings I had. For a lot of them I just found "Geert-arounds".

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Use AddinBroadcast in Tagged Values
« Reply #4 on: March 13, 2012, 05:29:47 pm »
I'm afraid there's no way to "geert" around this one ;D
EA has to make the call, and not amount of database editing or other dirty tricks will make it do so.
What I think is that you only have to give it the name of your addin, not the complete path to the operation.
From the help:
Code: [Select]
Type=AddinBroadcast;
Values=YourAddinName;
So if your add-in is known by EA by the name of "SiemensEnvironment", then that looks like what needs to be used.
If I find the time I'll try to experiment with it one of these days.
In this case an example would really help :-/

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Use AddinBroadcast in Tagged Values
« Reply #5 on: March 13, 2012, 06:10:22 pm »
Quote
I'm afraid there's no way to "geert" around this one ;D
[size=18]...[/size]Geert
Guys!   This is "geerting" better and better!  ;D ;D

Paolo
« Last Edit: March 13, 2012, 06:10:42 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Use AddinBroadcast in Tagged Values
« Reply #6 on: March 13, 2012, 08:50:26 pm »
Quote
EA has to make the call, and not amount of database editing or other dirty tricks will make it do so.
Sure. And EA does. But it does not take back the parameter values. So that's something to report.

q.

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Use AddinBroadcast in Tagged Values
« Reply #7 on: March 14, 2012, 05:32:31 pm »
The answer from Sparx is
Hello Michael,

Thank you for your enquiry.

The "AddinBroadcast" tagged value type should only specify the name of
the add-in to be called - not the method.

E.g.

Type=AddinBroadcast;
Values=CS_AddinFramework;

Not:

Type=AddinBroadcast;
Values=CS_AddinFramework.EA_OnElementTagEdit;

Try removing the ".EA_OnElementTagEdit" part from your tagged value
definition.

Geert you are right with your tip. I did it and it works. qweryt what do you mean by it takes not back the parameter values ? I just put in

        public void EA_OnElementTagEdit(EA.Repository Repository, long ObjectId, String TagName, ref String TagValue, ref String TagNotes)
        {
            TagNotes = "Notes";
            TagValue = "Value";
        }

and it works correctly.
Is "geerting" a kind oy joke between you and Paolo  ;)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Use AddinBroadcast in Tagged Values
« Reply #8 on: March 14, 2012, 05:38:40 pm »
Hi Michael,

Glad to see you got it working.

Geert

PS. Yes the whole "geerting" thing is a joke :D

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Use AddinBroadcast in Tagged Values
« Reply #9 on: March 14, 2012, 06:15:11 pm »
Quote
[size=18]...[/size]
Is "geerting" a kind oy joke between you and Paolo  ;)
Hi Michael,

If you look carefully, qwerty started it!

But it DID pique my fancy...

Good to see you got it resolved. looks like some cool functionality.

Paolo
« Last Edit: March 14, 2012, 06:19:15 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Use AddinBroadcast in Tagged Values
« Reply #10 on: March 14, 2012, 09:18:35 pm »
I think it could be interesting to play around with it i will next try to raise a dialog to edit my tagged value. I give you input about the results.