[Home] [Recent] [Site Map] [SharePoint] [XBOX]
Today I learned a hard lesson. A single letter was causing a big problem for me:
The query cannot be completed because the number of lists in the query exceeded the allowable limit. For better results, limit the scope of the query to the current site or list or use a custom column index to help reduce the number of lists.
MaxListsLimit vs MaxListLimit
After a while of researching, I found out that the original example that I had been using for the basis of my SPSiteDataQuery had used MaxListsLimit where MaxListLimit should have been
For the Lists property of my SPSiteDataQuery
I was using
"<Lists BaseType="1" MaxListsLimit="0"/>"When what I needed was just:
"<Lists BaseType="1" MaxListLimit="0"/>"This made the error go away as it let me search all of the lists in the entire site. Not specifying a MaxListLimit would only search 1000 lists, but seems to throw an error if there are more than 1000 lists, instead of just searching the first 1000 that it finds. I would recommend always using "0" if you are not sure that the client will have less than 1000 lists.
HI everyone, my name is Zachary Denholm i have been an ASP.net developer for many years and have just recently started developing is MOSS 2007 and WSS 3.0. I would like to thank www.sharepointblogs.com for giving me this blog.
I"ve seen an increasing number of posts about Windows Live Writer the new Microsoft desktop client for publishing weblog content so I though I"d download the beta and give it a try.
I haven"t been blogging all that long and I"ve always used the online control panel facility provided by Community Server (the software that SharePointBlogs.com runs on) to manage posts which, although perfectly functional, can be a little painful when writing longer posts (in particular the server round tripping when saving draft versions!) It seems to me that a smart client application is the perfect fit for the purpose of publishing web content (blog posts or otherwise), the number one benefit is that I"ll only need an Internet connection at the point I want to publish. Other benefits such as spell checking (as I (mis-)type) and (truly) rich content editing are real bonuses.
Although I clearly have no experience of the competition first impressions of the Live Writer beta are very promising. I had a slight issue connecting to my blog, when it came to selecting the provider I chose Community Server and the default Remote posting URL was http://<hostname>/blogs/metablog.ashx. I changed this to http://www.sharepointblogs.com/blogs/metablog.ashx but that didn"t work. I played around with the URL and eventually found that it should actually be http://www.sharepointblogs.com/metablog.ashx.
So this is my inaugural post using my new found friend and I"m really happy I decided to finally get on board and equip myself with the proper tools for the job. Whether it"s one of the better offerings around remains to be seen but I"ll certainly post any observations I deem useful or worthy. Maybe I"ll even try one or two of the competition to qualify my observations...
I am currently working on a large SharePoint project looking to migrate to MOSS 2007. I have been involved in the investigations into the migration of our custom 2003 web parts over to MOSS.
One of my current challenges is to replace the top navigation bar with custom tabs, as our customer does not require the "standard" set of tabs to be displayed. Also the tabs are dynamic depending on what level of user is logged in and what responsibilities they have to the organisation.
So far I have found 2 strategies:
Will post more details later as I am in the middle of developing something else (non-sharepoint)
Mayo 2007: Bill Gates y Steve Jobs, juntos, discutiendo sobre tecnología, contribuciones tecnológicas, etc: http://d5.allthingsd.com/20070530/steve-jobs-and-bill-gates-together-part-1-of-7/
-.M.-
SharePoint 2007 is based on Microsoft"s .NET 2.0 Framework, and provides an amazing amount of access through its object model. This is a guide to exploring and making use of the SharePoint 2007 object model interactively. We use Python as our language of choice for this task, as it has a great interactive mode that makes inspection easy.
Python is a great modern language that you can use interactively. You can get IronPython, a port of Python to the .NET framework, from the Iron Python home page at http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython.
Once you"ve got it installed, start ipy.exe and you"ll be in the Python shell. Since IronPython needs a bit of assistance in knowing where to find files, copy the Microsoft.SharePoint.dll file in to the folder that you"re running ipy.exe.
The python prompt is >>>. When you see this, you can start entering Python code directly and Python will run it. Let"s get started!
In a C# program, we usually start by importing some libraries by adding a reference to a dll, and then by using the "using" keyword in our code. In Python we do the same kind of thing. Firstly we need the .NET common language runtime:
>>> import clr
We can investigate the methods and properties provided by an object by using python"s built-in dir() function. We"ll be using this a lot to see what SharePoint offers. For now, let"s find out what the clr object provides:
>>> dir(clr)
["Accepts", "AddReference", "AddReferenceByName", "AddReferenceByPartialName", "AddReferenceToFile", "AddReferenceToFileAndPath", "ArgChecker", "Dispose", "Equals", "Finalize", "GetClrType", "GetHashCode", "GetPythonType", "GetType", "LoadAssemblyByName", "LoadAssemblyByPartialName", "LoadAssemblyFromFile", "LoadAssemblyFromFileWithPath", "MakeDynamicType", "MemberwiseClone", "Reduce", "Reference", "ReferenceEquals", "References", "ReturnChecker", "Returns", "Self", "ToString", "__class__", "__doc__", "__init__", "__module__", "__new__", "__reduce__", "__reduce_ex__", "__repr__", "__str__", "accepts", "returns"]
Notice the AddReference method - we"ll be using it to make SharePoint available.
>>> clr.AddReferenceToFile("Microsoft.SharePoint.dll")
If you get an error here, you have to move the .dll file in to the right directory. Note also that the filename is case sensitive - there"s a capital P in the middle of "SharePoint". Now just one more thing to make the namespaces easier to deal with:
>>> from Microsoft.SharePoint import *
Ok, we"re ready to explore.
One of the most important SharePoint classes is the SPSite class. We can investigate it using python"s dir() method as mentioned above. The Python equivalent of C#"s SPSite mysite = new SPSite(url); is as follows:
>>> mysite = SPSite("http://localhost/");
>>> dir(mysite)
[List of methods and properties]
>>> print mysite.Owner
SPSTRIAL\administrator
Next time, we"ll dive deeper in to the object model and investigate SharePoint"s lists and audit logs!
Site List:
>>Xbox Live_s Major Nelson
>>Xbox 360 & SharePoint 2007 Weblog
>>Carsten Keutmann_s Blog
>>Mohamed Zaki_s Blog [Sharepoint MVP]
>>The Mit_s Blog
>>Mart Muller_s Sharepoint Weblog
>>Microsoft SharePoint Products and Technologies Team Blog
>>SharePoint Solutions Blog
>>4GuysFromRolla.com Headlines
>>ASP.NET Blogs
>>SharePoint Blogs
>>SharePoint Blogs
>>Joel on Software
>>ADO Guy_s Rants and Raves
>>Microsoft Live Labs
>>GadgetNews
>>Windows Vista Team Blog
>>VoIP & Gadgets Blog
>>schrankmonster blog
>>Via Virtual Earth Blog
>>Feed
>>MSDN Blogs
>>Mashable!
Links:
Jack's Readings
Month Archives:
Oct 2007
Sep 2007
Top Tags:
social software social networking .NET mashable Sharepoint ASP.NET Web 2.0 Web2.0 Startups Community News Search Marketplace General Software Development AJAX Windows Vista Visual Studio Microsoft myspace Silverlight People Powered! YouTube Vista MOSS Featured News C# Events MOSS 2007 Google WPF Office 2007 Web Community Security General Personal Xbox 360 facebook Tools development SharePoint 2007 Fun Atlas Architecture ASP.NET AJAX myspace codes TheLongTail IIS SQL Server Developers Revenue Sharing Video Pictures WCF Mobile 2.0 Announcements Orcas MIX07 Arcade Team System JavaScript News
@2007 All rights Reserved |