The listed episode covers the use of the BDC
Sharepoint Podcast
The listed episode covers the use of the BDC
Random outpourings of a software developer
Another option is to export the web part definition in the web part hosting to a .webpart file.
The content can be used as-is in an elements.xml file
Adding web parts to a web page programmatically:
The GetSiteData method on the SPWeb returns all of the columns as datatype string. This does not appear to be documented anywhere. It is however the only single method that can query across lists.
CAML is a very weak query language. You can’t do much in the way of joins.
TFS refuses to check in a changed file. You need to restart visual studio to allow it to be checked in.
A tale of three guids:
Sharepoint
Features require a guid of the form “this-is-a-guid”
For a content type you need a guid of the form “0x100thisisaguid”
For a field definition you need a guid of the form “{this-is-a-guid}”
One team, three distinct guid formats WTF
A great technique when developing a sharepoint feature receiver:
Create yourself an announcements list and have the feature log the install (or failure to do so) to this location.
This is much less messy than debugging on a production box.
This announcement list can be locked down so only developers and admin’s can read it.
I have found that you can create and populate a custom list and a view in 20 lines of code (genericly).
This contrasts to 4000 lines of xml per list/view.
Those who don’t know unix are doomed to reinvent it badly…
TFS is inadequate as a VCS.
The developers think that all development occurs in VS.NET.
This does not work if you use code generation
Example
I have a spreadsheet that I was to control in VCS.
If I lock the file and then replace it I get a (false) claim that the file has not changed – which automatically unlocks the file.
In order to get the file checked in I need to edit another text file in Visual studio. By changing this it notices that both have changed.
Example
Why can’t it perform keyword expansion like every other modern vcs!