Page 1 of 1
Add-In in object menu and from command window?
Posted: Mon Mar 16, 2015 6:38 am
by KrilleJ
Hi,
I have not managed to register Add-Ins as a specific "Menu/Procedure type" (say series Add-In) and yet call it from the command window. It would be nice to be able to have the Add-In appearing in a specific object meny but still being able to call it from the command window.
Do you have any suggestions as how to accomplish this?
Best,
Kristian
Re: Add-In in object menu and from command window?
Posted: Mon Mar 16, 2015 8:56 am
by EViews Gareth
I'm not sure I understand the question. What have you tried, and how did it not work?
Re: Add-In in object menu and from command window?
Posted: Tue Mar 17, 2015 1:40 am
by KrilleJ
Sorry about that. I'll try again.
So, I have written an Add-In that can be applied to a series object only.
The next thing I do is to register my Add-In under "Add-ins>Manage Add-ins...>Add" in EViews main window.
Here I have several options. Under "Attributes" I can set the "Menu/Procedure type". If I choose "Global command" the Add-in will appear under "Add-ins" in EViews main window. I also can state a command that will invoke the Add-in procedure from the command window in EViews main window. That's all fine.
An alternative would be to specify that I want the Add-in to appear under "Proc>Add-ins...>" in the SERIES object window. This would be nice since then I can be sure that the Add-in will be called from a SERIES object. This is done by setting "Menu/Procedure type" to "Series Proc". But if I do this, the registered command will not be recognized in the command window of the main EViews window. This is bad since I would like to be able to associate the Add-in with a SERIES object, while still being able to call it from the command window.
So my question is: Is there any possibility to register the Add-in to appear in the "Proc>Add-ins..." in the SERIES object window while still retaining the possibility to call the Add-in from the command window?
Hope this is a little bit clearer than the previous post.
/Kristian
Re: Add-In in object menu and from command window?
Posted: Tue Mar 17, 2015 10:03 am
by EViews Gareth
When you set the types to be "series proc", then the command will take the form:
Re: Add-In in object menu and from command window?
Posted: Wed Mar 18, 2015 1:05 am
by KrilleJ
Ok, I see.
Thanks.
/Kristian