A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , , ,

Programmatically setting a filter on a day/week/month view in Outlook 2003





 
 
Thread Tools Display Modes
  #1  
Old March 13th 07, 09:13 AM posted to microsoft.public.outlook.program_addins
sn
external usenet poster
 
Posts: 2
Default Programmatically setting a filter on a day/week/month view in Outlook 2003

I am using OL2003 and am trying programmatically to set a filter on a
calendar view by editing the View.XML.

I have no problems settings filters programatically on table views in
the XML of table views, but for calendar views, the filter tag does
not seem to part of the XML, and the exact same filter works on table,
timeline, card and icon views.

When I change a day/week/month view manually in Outlook and set a
filter to only include items with the category 'b', then I would have
expected to find something like this in the View.XML:

filter"urn:schemas-microsoft-comfficeffice#Keywords" = 'b'/
filter

But the filter works, and only appointments having the category b is
shown in the view, but there is no filter tag in the xml for day/week/
month views.

When I try to set the filter programmatically by inserting filter tag
in the view.xml for a day/week/month view then the filter does not
work, ie. nothing is filtered in the view. This is probably related to
the fact that filters are not shown in the view.XML as I described
above.

The way I am setting filters programmatically works for table, card,
timeline and icon views, so it is not there the problem is.

Has anybody found a way to programmatically filter day/week/month
views? or is this a known bug in calendar views ?

Ads
  #2  
Old May 7th 07, 03:36 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Programmatically setting a filter on a day/week/month view in Outlook 2003

Outlook Spy definitely shows a filter tag here in ActiveExplorer.CurrentView.XML. In XML, you need to use special character tokens for both kinds of quotation marks. See if this works better:

filter"urn:schemas-microsoft-comfficeffice#Keywords" = 'b'/filter

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"sn" wrote in message s.com...
I am using OL2003 and am trying programmatically to set a filter on a
calendar view by editing the View.XML.

I have no problems settings filters programatically on table views in
the XML of table views, but for calendar views, the filter tag does
not seem to part of the XML, and the exact same filter works on table,
timeline, card and icon views.

When I change a day/week/month view manually in Outlook and set a
filter to only include items with the category 'b', then I would have
expected to find something like this in the View.XML:

filter"urn:schemas-microsoft-comfficeffice#Keywords" = 'b'/
filter

But the filter works, and only appointments having the category b is
shown in the view, but there is no filter tag in the xml for day/week/
month views.

When I try to set the filter programmatically by inserting filter tag
in the view.xml for a day/week/month view then the filter does not
work, ie. nothing is filtered in the view. This is probably related to
the fact that filters are not shown in the view.XML as I described
above.

The way I am setting filters programmatically works for table, card,
timeline and icon views, so it is not there the problem is.

Has anybody found a way to programmatically filter day/week/month
views? or is this a known bug in calendar views ?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Appointments shown in Active appointment View but not in Day/Week/Month View udaymg@gmail.com Outlook - Calandaring 3 March 6th 07 10:27 PM
Sort appointments using categories in the Day/week/month view schmitts726 Outlook - Calandaring 2 October 17th 06 01:12 PM
Outlook 2003, category AND day week month view? brycewoods1977 Outlook - Calandaring 1 April 7th 06 01:31 PM
How do I get Active Appointments to show in Day/Week/Month view? Alison Outlook - Calandaring 15 March 14th 06 02:24 AM
Unable to view appts. in Day/Week/Month Angela Outlook - Calandaring 3 February 7th 06 12:57 PM


All times are GMT +1. The time now is 01:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Best Credit Cards - Gas Suppliers - Property for sale in Spain - Loans - Mortgage insurance