PC Review


Reply
Thread Tools Rate Thread

DASL Filter doesn't work when defined programatically

 
 
escamoteur
Guest
Posts: n/a
 
      4th Dec 2009
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.olTableView,
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
 
Reply With Quote
 
 
 
 
escamoteur
Guest
Posts: n/a
 
      4th Dec 2009
Hi,

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

Ich I use this one:

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

Everything works fine.

Best
Tom

"escamoteur" <(E-Mail Removed)> schrieb im Newsbeitrag news:5F20FE39-3DDF-4824-A456-(E-Mail Removed)...
> 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.olTableView,
> 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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DASL Filter function? Mark B Microsoft Outlook VBA Programming 3 4th Feb 2010 02:51 PM
DASL Filter function? Mark B Microsoft Outlook Program Addins 3 4th Feb 2010 02:51 PM
birthday DASL-filter rainer.100 Microsoft Outlook VBA Programming 1 20th Dec 2007 08:57 PM
Please fix a new bug in the user-defined DASL filter in Outlook 20 =?Utf-8?B?ZXJpY21rY2M=?= Microsoft Outlook Contacts 1 9th Jul 2007 04:37 PM
dasl filter Pete JP Microsoft Outlook 1 8th Aug 2003 04:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:47 PM.