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" <(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
|