There is a tool on http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502 called "Uniuq Column policy Feature", download it (*.wsp file) then install it on your server using the following command:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o addsolution -filename "C:\Documents and Settings\Administrator\Desktop\UniqueColumnPolicy.wsp"
then go to Central Administration>Operations> Solution management, you will find a solution called uniquecolumnpolicy.wsp, go and deploy it.
Then go to your document library or list> Settings> docuemnt library settings>Information management policy settings > Select Define a Policy, you will find "Unique Column Policy" then check the "Unique Column Policy" box next to it, then you will have the list of columns in your document library, select the column you want to apply a unique constrains on.
Tuesday, June 16, 2009
Monday, June 15, 2009
Pagging Problem in SharePoint Blog list
When you have pageing enabled in sharepoint list, when you click next button in pagging u lost the query string. this error can be resolved by using below Java Script in javascript above the ListView
<script language="JavaScript">
function getQueryVariable(varname) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++)
{
var pair = vars[i].split("=");
if (pair[0] == varname)
{
return pair[1];
}
}
}
function SubmitFormPost1(cmd, varname)
{
//alert(getQueryVariable(varname));
SubmitFormPost(cmd.split("?")[0] + "?" + varname + "=" + getQueryVariable(varname) + "&" + cmd.split("?")[1]);
}
</script>
<script language="JavaScript">
function getQueryVariable(varname) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++)
{
var pair = vars[i].split("=");
if (pair[0] == varname)
{
return pair[1];
}
}
}
function SubmitFormPost1(cmd, varname)
{
//alert(getQueryVariable(varname));
SubmitFormPost(cmd.split("?")[0] + "?" + varname + "=" + getQueryVariable(varname) + "&" + cmd.split("?")[1]);
}
</script>
Labels:
WSS 3.0
Thursday, June 11, 2009
Internal RSS Feed in SharePoint Without enabling Kerberos
Today I come accross with Custom RSS Feed Solution for Internal RSS Feed in SharePoint. As you all know to display Internal RSS Feed in Default SharePoint RSS Viewer WebPart need Kerberos authentication otherwsie give error message:The RSS webpart does not support authenticated feeds.
Best thing about Custom WebPart is its Open Source, you can modify source code as per requirment.
click here for custom RSS Viewer WebPart download
click here for Open Source Code download
Note: If you are not using VS 2008 and got error: The imported project “C:\Microsoft.CSharp.targets” was not found then
Open your csproj file in notepad (or notepad++) Find the line:
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />and change it to
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Best thing about Custom WebPart is its Open Source, you can modify source code as per requirment.
click here for custom RSS Viewer WebPart download
click here for Open Source Code download
Note: If you are not using VS 2008 and got error: The imported project “C:\Microsoft.CSharp.targets” was not found then
Open your csproj file in notepad (or notepad++) Find the line:
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />and change it to
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Subscribe to:
Posts (Atom)