
Public Folder home page with Outlook View Control and Restriction problem
I have a home page with an OVC embedded, and I'm trying to create
command buttons that will filter by the [Categories] field. With the
code below I am getting an error message, "Unspecified error"
referring to the line that sets the restriction. I have a custom view
set on the folder.
<HTML>
<HEAD>
<SCRIPT language="VBScript">
Sub showCategory(strSearch)
Dim strRestrict
strRestrict ="[Categories]='" & strSearch & "'"
ViewCtl1.Restriction = strRestrict
End Sub
</SCRIPT>
</HEAD>
<BODY>
<img src='CCLOGO.GIF' height='10%'>
<TABLE WIDTH='100%'>
<TR><TD ALIGN='right'>
<A href="KMAdmin.asp">Admin?<%=CHR(187)&CHR(187)%></A></TD></TR></TABLE>
<FONT size=5>Systems Knowledge Management</FONT>
<object ID="ViewCtl1"
CLASSID="CLSID:0006F063-0000-0000-C000-000000000046"
style="width:100%;height:82%"
</object>
<input type=button name='btnHardware' value='Hardware'
onclick="showCategory('Hardware')" ></input>
</BODY>
</HTML>