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

DASL Filter doesn't work when defined programatically



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 4th 09, 09:07 AM posted to microsoft.public.outlook.program_addins
escamoteur
external usenet poster
 
Posts: 147
Default DASL Filter doesn't work when defined programatically

Hi,

I have a strange problem.

I define a new View like:

void CreateViews()
{
string FilterActiveBOs = GetResourceString("ViewActiveOpportunities");
Outlook.Views BOViews = BO_Folder.Views;

if (BOViews[GetResourceString("ViewNameActiveBO")] == null)
{
Outlook.View activeView = BOViews.Add(GetResourceString("ViewNameActiveBO"),
Microsoft.Office.Interop.Outlook.OlViewType.olTabl eView,
Microsoft.Office.Interop.Outlook.OlViewSaveOption. olViewSaveOptionThisFolderEveryone);
activeView.XML = FilterActiveBOs;
activeView.Save();
activeView.Apply();

}

As Filter I defined:
"http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/boStatus" 'closed'

But entries that contain "closed" are still displayed

No The strange part. If I built a View via the Outlook GUI that has excatly the same filer expression it works.

Any idea?
Best
Tom
Ads
  #2  
Old December 4th 09, 10:30 AM posted to microsoft.public.outlook.program_addins
escamoteur
external usenet poster
 
Posts: 147
Default DASL Filter doesn't work when defined programatically

Hi,

don't know why the Outlook GUI Builder seems to display a wrong DASL expression.

Ich I use this one:

NOT "http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/boStatus" LIKE '%closed%'

Everything works fine.

Best
Tom

"escamoteur" schrieb im Newsbeitrag ...
Hi,

I have a strange problem.

I define a new View like:

void CreateViews()
{
string FilterActiveBOs = GetResourceString("ViewActiveOpportunities");
Outlook.Views BOViews = BO_Folder.Views;

if (BOViews[GetResourceString("ViewNameActiveBO")] == null)
{
Outlook.View activeView = BOViews.Add(GetResourceString("ViewNameActiveBO"),
Microsoft.Office.Interop.Outlook.OlViewType.olTabl eView,
Microsoft.Office.Interop.Outlook.OlViewSaveOption. olViewSaveOptionThisFolderEveryone);
activeView.XML = FilterActiveBOs;
activeView.Save();
activeView.Apply();

}

As Filter I defined:
"http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/boStatus" 'closed'

But entries that contain "closed" are still displayed

No The strange part. If I built a View via the Outlook GUI that has excatly the same filer expression it works.

Any idea?
Best
Tom

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
How-to remove DASL filter from taskpad Ole Lauridsen Outlook - Calandaring 0 June 30th 08 11:43 AM
birthday DASL-filter rainer.100 Outlook and VBA 1 December 20th 07 08:57 PM
Junk Mail Filter does not work Jim Kearns Outlook - General Queries 6 July 30th 07 04:31 PM
Please fix a new bug in the user-defined DASL filter in Outlook 20 ericmkcc Outlook - Using Contacts 1 July 9th 07 04:37 PM
DASL Filter on custom property Jeff Graves Add-ins for Outlook 0 April 8th 07 04:58 AM


All times are GMT +1. The time now is 08:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.