One of the great features of LightSwitch is that it lets you connect to and manipulate data inside of SharePoint. Data can come from any of the built in SharePoint lists like Tasks or Calendar or it can come from custom lists that you create in SharePoint.
LightSwitch provides the ability to connect to multiple data sources like external databases and SharePoint and relate them together. However when you want to present data from multiple data sources on the same screen you need to tell LightSwitch the order in which you want to save this data.
See link below for a video presentation on how to achieve this:
LightSwitch is the new way to go…. reduced development time, reduced effort – maximized results!
I love MOSS! But there are some workarounds that you always need to look into if you want your portal to be happy!
Imagine you spent hours on customizing a site that you want to reuse as a template to create new sites. But you hit a dead-end.
The maximum DEFAULT size permitted by SharePoint for a list or site to be saved as a template is 10MB. Even though I have received the message unexpectedly on sites as small as 5MB or 6MB.
Anyways the fix for this is to increase the maximum permitted property “max-template-document-size” using STSADM. See command below:
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 50000000
You should now be able to export your site template and save it to a local drive on your MOSS box.
Now it’s time to use the newly exported site template just incase you need to create a root site collection (you will need to add it to the available Site Collection templates). Simply use the STSADM command below:
stsadm –o addtemplate –filename c:\exercise.stp –title exercise
A recent experience of mine while working with SharePoint lists where we required to customize the out-of-the-box list item display form “DispForm.aspx” to present a design-frenzy item view format.
During the modification process, we never assumed that the list item attachments would abruptly dissapear from the display form. All we were looking to do was to display the list item in a good looking format by modifying the XSLT, but the attachments were gone!
Lesson Learnt: Never modify the out-of-the-box list item display form “DispForm.aspx”. Create a new one if you need to and call it “DispForm_WhateverYouCallIt.aspx”
Now the attachments that were gone seemed quite easy to be brought back on the page. It needed a SharePoint control AttachmentsField that went missing from the picture. Below is the code that you need to add into the XSLT template dvt_1.rowview (into your custom form) that constructs theDataFormWebPart that SharePoint Designer creates for you when you insert a Custom List Form:
Was that easy? The attachments are now showing in the custom form that you just created. Happy Coding!