Solved

selected item object in view control in folder home page

Posted on 2000-03-19
8
276 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
 
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Suggested Solutions

Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
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 …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now