WPSC and default custom properties values
The following post was retrieved from my SharePoint blog: http://vspug.com/kwanl/2006/06/05/wpsc-and-default-custom-properties-values/
I had done everything correctly in defining my custom property and used the correct namespace in the Properties collection of my Part variable. But I still couldn’t get a valid reference to the property in my script.
It turned out the problem was that my custom property had it’s default value (set to the same as the initial value) and so SharePoint didn’t bother storing it since, “Specifying the default value minimizes the Web Part’s storage requirements by storing the property’s value only if it is different from the default.” (WSS SDK)
My solution, make the custom property’s initial value differ from the default value so SharePoint has to store the property value.