Event to display current view name

Event to display current view name

Kevin.Bell
Advisor Advisor
654 Views
2 Replies
Message 1 of 3

Event to display current view name

Kevin.Bell
Advisor
Advisor

Hi All,

 

I'm writing an addon to do various browser tasks, essentially it will be a modeless dialog box which will display some links to various views.

 

As part of this I'd like to get the name of the active view, and get it to change as the user swaps between views and different documents.

 

I'd appreciate some points on the best way of doing this. I guess I would have to subscribe to some sort of event which then triggers code to update the dialog?

 

Does that sound about right?

 

Thanks.

0 Likes
Accepted solutions (1)
655 Views
2 Replies
Replies (2)
Message 2 of 3

perry.swoboda
Advocate
Advocate
Accepted solution

Looks like Jeremy has a possible solution for you in his blog.  The ViewActivated event.
https://thebuildingcoder.typepad.com/blog/2012/02/build-your-own-document-changed-event.html


Message 3 of 3

Kevin.Bell
Advisor
Advisor

Perfect - exactly what I was looking for!

 

Thanks.

0 Likes