In this post I will show how to create a SharePoint readonly site column with following characteristics:
Long story short, I noticed that InfoPath promoted properties which are not editable have all these characteristics. So, I created site column defintion similar to one that is generated automatically for site columns based on an InfoPath form's readonly promoted property.
Here is a sample readonly site column definition:
<
Essentially, add these attributes to any site column definition to make it readonly:
Hidden="FALSE" ReadOnly="TRUE" Required="FALSE" PITarget="" PrimaryPITarget="" PIAttribute="" PrimaryPIAttribute="" Node=""
Following is a sample code to modify the value of list column based on above sample site column when it's added to a custom list called "Test":
{
oListItem[
oListItem.Update();
}
Hi
I am new to Customization
Can you please tell me step by step how to slove this ??
Thanks
Harish
Harish,
How to create site columns and corresponding features is fairly documented in SDK, also found this article, hope you find it useful:
http://sharethispoint.com/archive/2006/07/17/11.aspx
have been trying for this kind of solution for a long time, u saved my day.
thnx
Rajesh
@Manish Ahuja
Not Found
HTTP Error 404. The requested resource is not found.