Solved

selected item object in view control in folder home page

Posted on 2000-03-19
8
279 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Outlook hang (Not Responding) issue 9 51
Outlook 2012 VBA: Object missing 14 33
How to restrict users sending out emails to all 1 22
MailTips Exchange 2010 5 13
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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