Solved

selected item object in view control in folder home page

Posted on 2000-03-19
8
280 Views
Last Modified: 2008-02-26
Having an outlook view control in a DHTML page used as a MAPIfolder home page, I can't find a way to get the Item
Object currently selected in the view control.
Selection is a property of Explorer, but
it seems to be empty or there is no Explorer for a folder home page?
I know I can use the Open method to open
the Item, but it's not a good solution
for me.
Anyone with an idea?
Thanks
0
Comment
Question by:dansir97
  • 4
  • 3
8 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 2632873
Hi dansir97,

Don't know if it helps but worth to look at

from the Digital Dashboard Guide

"By default Outlook Today hosts a subset of Internet Explorer to achieve the best possible rendering performance.

Outlook Today is capable of hosting the full Internet Explorer functionality at a small performance penalty. When Outlook displays a Web page or folder home page, it uses the complete version of Internet Explorer. The complete version enables back and forward buttons, full Iframe support and, most important, support for the Internet Explorer Offline cache.
Switching to the Full Version of Internet Explorer
More sophisticated digital dashboard solutions will require the full version of Internet Explorer. The full version allows a much greater degree of development flexibility and the ability to take the page offline, even if hosted on a Web server. You can use the full version of Internet Explorer to display Outlook Today by adding two settings to the Microsoft Windows® registry.
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Outlook\Webview\mailbox]
"url"=http://digidash/home.htm (Enter the location of your digital dashboard here.)
"navigation"="yes"

Note:   If you switch to the full version of Internet Explorer, you lose all the performance enhancements associated with using a DLL. For example, the RENSTATICTABLE tables are no longer displayed when the page first loads, and your data is displayed more slowly.
"

Hope this helps,
:O)Bruintje
0
 
LVL 3

Expert Comment

by:SMosher
ID: 2639939
The Outlook View Control itself provides no Selection object like an Explorer does. However, if the OVC displays the same folder as the Explorer window for which it's the folder home page, you should be able to get the Selection from the ActiveExplorer.
0
 

Author Comment

by:dansir97
ID: 2657937
Thanks for the answers.

I progressed a bit and I am now able
to get A selection. The problem is that
I get the selection of the explorer
window under my home page with the view
control. So, after changing the selection in my view control, I still
get the original selection in the outlook explorer. Maybe there is a way
to force synchronisation on the explorer
before getting the item selected.
I am still working on it.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 3

Expert Comment

by:SMosher
ID: 2658272
I think there may be something in how you initialize the OVC. If you change the folder that the OVC is displaying, it won't remain tied to the home page's folder.
0
 

Author Comment

by:dansir97
ID: 2659723
BUt the OVC is displaying the Inbox by
default and it doesn't matter on which
folder your home page is. So I don't
think I have a choice but changing
the folder. By the way, in my test the
folder displayed is also the current
folder; If there is any kind of synchro.
I don't disturb it.

Thanks for the answers
0
 
LVL 3

Expert Comment

by:SMosher
ID: 2660850
The OVC defaults to Inbox only if you don't set the folder. For example, here's the HTML I use on an OVC on a home page to go with the Contacts folder. Note the Folder parameter:

<object classid="clsid:0006F063-0000-0000-C000-000000000046" width="771" height="458" id="OVCtl1">
  <param name="View" value="Phone List">
  <param name="Folder" value="\\Personal Folders\Contacts">
  <param name="Namespace" value="MAPI">
  <param name="DeferUpdate" value="0">
</object>

Now, if I set this as the home page for the Contacts folder and turn it on, select a couple of items and run this code in my VBA window, it lists the contacts I selected in the OVC:

Sub CheckOVCSelection()
    Set objApp = CreateObject("Outlook.application")
    Set objSel = objApp.ActiveExplorer.Selection
    For Each objItem In objSel
        Debug.Print objItem.Subject
    Next
End Sub


0
 

Author Comment

by:dansir97
ID: 2663148
Thanks but I must set the OVC Folder property during run time, because I use
the same home page for different public folders and I switch to other folders
following user interaction.
Anyway, and after I have been told by some "experts" that it can't be done,
It finally works and I don't know what change I made who did the trick.
At least, I have a working example!

Thanks
0
 
LVL 3

Accepted Solution

by:
SMosher earned 50 total points
ID: 2663751
I'm pretty sure it only works when you initialize the OVC to display the folder whose properties set the home page. If you later switch the displayed folder, that new folder won't give you a Selection.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Read this checklist to learn more about the 15 things you should never include in an email signature.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question