Browse by Tags
All Tags »
MOSS 2007 (RSS)
I was building an InfoPath and it was necessary to retrieve information from a SharePoint List in XML format so i used this simple URL: http://YOUR SITE/_vti_bin/owssvr.dll?Cmd=Display&List={LISTGUID}&View={VIEWGUID}&XMLDATA=TRUE With this
Read More...
I'm always forgetting this simple but very useful line so here it is :) FormContext has this very cool Method SetFormMode and also this two properties FieldControlCollection (Get a collection of the Field Controls) , FormMode (Get the Current SPControlMode)
Read More...
Code Access Security (CAS) is an important technology for both SharePoint administrators and developers. But everyone that have the need to create one of this CAS policies would agree that isn't very easy to create them. Today i've discovered
Read More...
When you need to do something in a list or item, in SharePoint, with a specific user you can use the SPUserToken. Here is an example: try{ SPWeb webOrigUser = SPContext.Current.Web; //get the token for the impersonation user SPUserToken token = webOrigUser.AllUsers[USERNAME].UserToken;
Read More...
What to do when you try to execute a SPSiteDataQuery and sharepoint returns this error m essage: "The query cannot be completed because the number of lists in the query exceeded the allowable limit". You should, limit the scope of the query
Read More...
When you want to create a masterpage you should start with the Minimal.master page up on MSDN. It's a basic master page. It has everything you need in a masterpage, but no look and feel. You can then go and add everything you need. http://msdn2.microsoft.com/en-us/library/aa660698.aspx
Read More...
When implementing a masterpage or page layout that needs to have breadcrumb, there are two providers for that, one that shows the entire path with list and folders and subfolders and other that only shows sites sub sites and page. So the first one is
Read More...
When you are creating a SharePoint page layout and what to have a specific datetime format ex: Friday, 15 February 2008 it's not possible using just the publishing date field of SharePoint. But there is a very nice and clean trick: Add a new calculated
Read More...
Some SharePoint objects needs an instance to work perfectly, one example is here; Sample 2 works however the Sample 1 doesn't :) Sample1 SPSite site = new SPSite(" http://server "); SPWeb web = site.OpenWeb(); web.RootFolder.WelcomePage=”default1.aspx”;
Read More...
This week i'm migrating a SPS 2003 portal to MOSS 2007 using the DB Migration model. One of the problems that a i had was that in some sites the url was /pages/UpgLandingPgRedir.aspx . To resolve this issue i needed to go to welcome page on site settings
Read More...
On WSS or MOSS it's easy to retract and remove solutions but sometimes the process gets stuck. And when this happens we have only one solution to the problem. When the solution status maintains for along time with "Retracted...." whe need
Read More...
Today one of my colleague, actually one of my bosses :) was preparing a MOSS presentation and when he was Publishing a InfoPath Form to MOSS a strange thing happened. The url inserted on InfoPath was http://SERVER/sites/xpto and InfoPath returned an error
Read More...
http://www.wssdemo.com/Lists/stsadm/AllItems.aspx
Read More...
When we work with MOSS 2007 and BDC we realize that to create BDC XML files is very complicated, a Intellisense for Visual Studio, would be welcome... And that it is possible, thanks to Bdcmetadata.xsd file. This file is on the Bin repository generally:
Read More...
There are two ways to do this: The first way is to authenticate via IE first, making sure that you save your credentials. SP Designer should be able to use that authentication cookie. The other way is to extend your web application onto a secondary IIS
Read More...