J
John Riddle
Hi,
I have a Public Folder View on my machine that filters items based on me being
the owner or my name being in a custom property of task item. Here is portion
of the XML for the view that contains the filter:
<filter>("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/811c000b"
= 0 AND
("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/811f001f"
LIKE '%"John Riddle"%' OR
"http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Candidate%20Source"
LIKE '%"John Riddle"%'))</filter>
What I need to do is modify this XML so that instead of the string "John
Riddle" (my name) being the filter, that a variable strUserName is used
instead. How can I modify the above code to accept a string variable? I know I
can't just replace John Riddle with " & strUserName & " since it doesn't
appear this XML accepts quotes. I see that everywhere quotes should be used,
there is a " instead.
Can anyone help?
Thanks,
John
I have a Public Folder View on my machine that filters items based on me being
the owner or my name being in a custom property of task item. Here is portion
of the XML for the view that contains the filter:
<filter>("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/811c000b"
= 0 AND
("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/811f001f"
LIKE '%"John Riddle"%' OR
"http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/Candidate%20Source"
LIKE '%"John Riddle"%'))</filter>
What I need to do is modify this XML so that instead of the string "John
Riddle" (my name) being the filter, that a variable strUserName is used
instead. How can I modify the above code to accept a string variable? I know I
can't just replace John Riddle with " & strUserName & " since it doesn't
appear this XML accepts quotes. I see that everywhere quotes should be used,
there is a " instead.
Can anyone help?
Thanks,
John