Maintain form values between Inspector and Explorer when POP OUT is clicked

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

Maintain form values between Inspector and Explorer when POP OUT is clicked
 
Alex Carter




Posts: 55
Joined: 2019-02-21
I have seen a couple of forum posts referencing this however they don't seem to fully answer the question of how you get the form data from the previous inline window that was open.

Articles here:
https://www.add-in-express.com/forum/read.php?FID=5&TID=14339
https://www.add-in-express.com/forum/read.php?FID=5&TID=14177

This blog post states it is possible to determine if the user clicked the "pop out" button using the InspectorActivate event:
https://www.add-in-express.com/creating-addins-blog/2012/10/03/outlook2013-whats-new-developers/

When I click the "pop out" button on an inline reply I'd like to maintain all form selections and set them in the new Inspector window that opens. I have hooked into the InspectorActivate event, but how do you determine if the user has clicked "pop out" and maintain data entries between form instances?
Posted 29 Aug, 2019 08:34:51 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Alex,

See the ADXOutlookAppEvents.ExplorerInlineResponseCloseEx event to get the moment when the user clicks that button.

Consider architecting the form so that it doesn't have any data. Instead, the form should display data from a store - a class instance located in your add-in module. In this case, closing the inline response will require your form to display data from the store.


Andrei Smolin
Add-in Express Team Leader
Posted 29 Aug, 2019 09:16:44 Top
Alex Carter




Posts: 55
Joined: 2019-02-21
Ah OK sounds pretty doable! Looking into I think I'll maybe index the store by the ConversationID and ConvertationIndex as the EntryID changes as you move it between folder's etc. Will update this post once I have managed to get a working version in place in case anybody else is interested.
Posted 29 Aug, 2019 09:54:45 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Great!


Andrei Smolin
Add-in Express Team Leader
Posted 29 Aug, 2019 10:00:15 Top