Remove views when add-in is disabled

Add-in Express™ Support Service
That's what is more important than anything else

Remove views when add-in is disabled
 
Fabrice




Posts: 144
Joined: 2010-12-13
Hello

I've a problem but don't know if it's related to ADX or not.

In my add-in I add a column in the current inbox view, which is linked to a custom property. That works nice.
But if my add-in is disabled (by the user or by Outlook for whatever reason) the problems start: when user select the folder he got an Outlook popup "Outlook cannot display this view".

And of course then the user is blocked:
- As we change the default view, the problem happen for almost all folders
- the "Reset views" menu is also gone, so he can't revert the view to default state

So the only way is to start outlook with /cleanviews, or in safe mode then reset views.

So my question: this should be a common problem as soon as we modify the views. Is it a way to reset the views when the add-in is disabled ?

Thank you for your help.
-------------
Posted 24 Jan, 2020 09:52:30 Top
Andrei Smolin


Add-in Express team


Posts: 17132
Joined: 2006-05-11
Hello Fabrice,

Fabrice writes:
In my add-in I add a column in the current inbox view, which is linked to a custom property.


Can you show some code?

Also, after you get the "cannot display", close the message box and use View | View Settings to check if your column is there and if removing it solves the issue.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 27 Jan, 2020 02:48:07 Top
Fabrice




Posts: 144
Joined: 2010-12-13
Hello,

Sorry for the late answer. I've sent a code sample on the support mailbox.

This code is executed using a SendMessage from the AddinModule_AddinStartupComplete.
It is used to add or remove the column on the view used on an outlook folder.

When I close the "cannot display" I don't have the view > view setting anymore:
User added an image
-------------
Posted 05 Feb, 2020 07:15:41 Top