Hi,
I am trying to build an EA Javascript AddIn following the example in the EAExample project.
I am firstly trying to get the GUID of the item selected. The signature of EA_OnContextItemChanged defines 3 parameters:
- Repository (EA.Repsoitory)
- GUID (String)
- ot (EA.ObjectType)
My first example just takes the GUID and attempts to print it out to the System Output Window.
This is the error I receive:
--------------------------------------------------
Invocation error in: addin.EA_OnContextItemChanged
------------------------------------------------
24: }
25: ExampleAddIn.prototype.EA_OnContextItemChanged = function(Repository,GUID,ot) {
26:
27: Session.Output(GUID); [!!!! Parameter 1 type mismatch]
28: }
29: var addin = new ExampleAddIn();
30: var _pa_ = [];
--------------------------------------------------
Any help or suggestions would be much appreciated.