Tag | WebPart Posts

I've recently had to help a couple of splinq-challenged colleagues with some caml queries. Here are some of my favourite ways to make caml edible. Use '! Too many developers seem ignorant of the fact that xml works just as well with single apostrophes as with double. This is, of course, also true for other things, like html. Use @ and multiline Use string.Format Validate the query using a simple webpart or, much better, powershell Don't use third-party clever stuff I'm not sarcastic when I say "clever," ...
I had a fancy requirement where i had to get all tags associated to a document set in a document library. The normal tag could webpart was not working when i add it to the document set home page, so planned a custom webpart. Was checking in net to find a straight forward way to achieve this, but was not lucky enough to get something. Since i didnt get any samples in net, i looked into Microsoft.Sharerpoint.Porta... and found a solution.The socialdataframemanager control in 14Hive/Template/layouts/Soc... ...
I just spent a good portion of today of part of yesterday on a really weird issue. Our sites had some custom branding for a client and the quick launch displayed perfectly for the root site. When you clicked on all the subsites the quick launch bar would not display. Myself and one of the branding guy’s at Planet, Jaimie Luetjen, were spinning our wheels (and I don’t think it helps that I have a cold). Finally Jaimie is able to login to the site and he threw up a live meeting, so we could figure ...
So lately I have been back in the dev arena more so and working from home. I find that I have some spare time because sometimes I pile directly through lunch. Today I was playing around with a control that I felt I had tested thoroughly. I was completely wrong. So here is an explanation of how to build out the accordion control in a webpart without having the same issues. First off go here and download the jquery-ui-1.8.16.custom.min.js and jquery-1.6.2.min.js. Then what I want you to do is create ...
Just a quick one. I was trying to add and deploy a WSP file.Both went well until i tried adding the webpart and i get the error Web Part Error: No available sandboxed code execution server could be found. After doing some joggling around i came to know i had to start the Solution:You need to start the SharePoint Foundation Sandbox Code Service service instance from services on server.. This has to be done in the SP 2010 Central Admin > App Management > Service Apps > Manage Services on Server. ...
Dears, I've faced an interesting problem which I think must be resolved in the new version of Sharepoint. It's about filtering a data form webpart with a querystring parameter.Actually, when you provide a querystring it filters correctly, but if not then it'll not return any rows. Which that was not the behaviour that I actually wanted, I needed it to display all rows when no querystring is applied. So, here's what I've done to work it around: 1. Drop a data form webpart on a page in Sharepoint Designer. ...
I recently did some training for a client and one of the topics that came up was upgrading existing 2007 code to SharePoint 2010 Projects. I just wanted to share some of the issues that came up and the discussion that might be usefull to others. If you developed customizations for SharePoint 2007 you either Visual Studio 2005/2008 VSeWSS 1.1/1.2/1.3 or you used WSPBuilder. A lot of fellow SharePoint MVP's and experienced SharePoint Developers used WSPBuilder. I personally prefered it over the VSeWSS ...
Yeah I know I don’t blog much anymore, because life has taken me places that don’t involve the interwebs unfortunately. I am in the midst of planning two events, starting a non for profit, creating more sessions for various conferences, submitting to various conferences, working a 40 hour a week job, attempting to hang out with boyfriend/friends/family. So you can see that list does not include this blog sadly that’s how it goes sometimes. The bottom piece very important over any of the top pieces. ...
I was facing a challenge yesterday that I was creating a Visual webpart and I wanted to validate the a submit button is only visible if the user checked a "I agree to terms" checkbox. Something was weired that I tested my code on a normal asp.net website and it worked perfectly while it had a different behaviour inside the webpart which is whenever I check the checkbox, the button is enabled but it will not fire the asp.net validators in client side. It posts back the page and then the validators ...
If you didn’t know, you probably will soon, the SPGridView is not available in Sandboxed solutions. To be honest there doesn’t seem to be a great deal of information out there about the whys and what nots, basically its not part of the Sandbox SharePoint API. Of course the error message from SharePoint is about as useful as punch in the face… An unexpected error has been encountered in this Web Part. Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. You don't have ...
I've faced an issue that I wanted to display the date in the format of ('MMMM dd') that is retrieved from a sharepoint list in an arabic site collection. So, after googling this issue, I've found out that a possible solution to my poblem is using the function ddwrt:FormatDateTime that can be used as long as you'll include the following namespace xmlns:ddwrt="http://schemas... My purpose was solved by writing this line of code in my xsl code behind for the ...
So I’ve been doing some upgrades just to see if things will work from 2007 to 2010. So far most of the stuff I want works, but obviously there are some things that break. Did you guys know that in 2007 you could add a webpart to the view pages for lists and libraries without losing the toolbar? In 2010 the ribbon disappears every time you add a webpart. So if you are using Scot Hillier’s Codeplex project to hide buttons it will not work the same way, because the ribbon is going to disappear altogether. ...
What is Localization/Multilingual and Globalization? The term "Localization" defined as "Process of translating resources for a specific culture/languages", where "Globalization" defined "Process of designing applications that can adapt to different cultures/languages". When we publish a site for different regions then it'll be great if the site content is displayed in that regional language. SharePoint provides Language Packs which can be downloaded and installed from Microsoft Site. but the limitation ...
Language packs enable to view SharePoint site in other languages like Dutch, Spanish, etc. These language packs are available free to download from Microsoft site. Once it's installed and configured in SharePoint then users will get option to select those language and view the site in that language. Where can I download SharePoint 2010 language packs? Microsoft provides 40 different languages (including English) for SharePoint Foundation/Server 2010. Those language packs have the sharepoint site ...
I've installed SharePoint 2010 and create first site collection. When I try to specify Target Audience for Announcements webpart in Home page via WebPart Properties, there is no "Target Audience" option. When I did google, articles which specifies how to set Target Audience for List. But that's not what I need. This article will explain how to get Target Audience for webpart in SharePoint 2010 sites. How to specifiy Target Audience for Webpart in SharePoint 2010? Well, It's obvious that free versions ...
Sandbox solution is a new feature introduced in SharePoint 2010. It's a secured wrapper around webparts and other elements with limitations. There is no thumb rule that every webpart in SharePoint 2010 belongs to Sandbox Solution. But it's recommended to develop webparts with Sandbox solution. It allows administrators to monitor the solutions and control as required. SharePoint Site Collection administrators can view the resource utilization of each solution and can block if it consumes too much ...
In SharePoint 2010, Status bar is used to display information/warnings without disturbing user with Javascript alerts. Please don't think it is Browser's Status bar. It's a special information bar which displays below ribbon/top bar when invoked. No Server side code or manual setup required to enable status bar. The required functions are bundled in SP.UI.Status class that defined in SP.Js/SP.Debug.Js and it's included in SharePoint master page. So no need to include Js manualy to use Status bar. ...
SharePoint 2010 provides pretty good dialog framework. Throughout SharePoint sites, Dialog framework has been used to avoid page redirections and keep user in same page. In SharePoint 2007 with help of Lightbox/JQuery, dialog framework can be enabled and used. But it has some limitations and time consuming. So how to open a page in Dialog framework? Well, It's pretty simple. Just add Content Editor webpart in the page and add the below code. <script type="text/javascript"> //User Defined Function ...
Top Bar, Ribbon, Quick Launch are come up with Application Pages by default. If you want to open the page in Dialog Framework then those elements will take more space and make the layout cluttered. You can remove these elements by creating new page layout which is cumbersome/time consuming. One way to hide these controls is by passing a Parameter with the URL. [ ?IsDlg=1 ] SharePoint will hide these elements when It gets IsDlg Parameter on URL. But every time we can't pass these parameters. Then ...
It's a common question very often I've been asked. Well , Microsoft defines "SharePoint is a Business Collaboration Platform for the Enterprise and the Internet". It's a perfect definition or IT Pros (esp. CXOs), but when it comes to Developers it requires more or different definition. SharePoint first released in the year 2001 as SharePoint Portal 2001. Basically It's a portal which has functionalities for intranet website. The features can be used as it is or can be customized minimum level. SharePoint ...
Have you ever set up a SharePoint farm with multiple WFEs (web front ends) and then wondered later which server you were hitting? Ever have a user get an error but you can’t recreate it, only find to find out much later it’s because the user was hitting a different WFE than you were and that particular WFE was the only one with the error? Or have you ever had a misconfigured hardware load balancer that is directing all of the traffic to just one poor overloaded WFE while the others sit there idle? ...
I started a new SharePoint 2010 project several weeks ago and one of our first assignments was to create a quick demo to highlight some of the new 2010 functionality. In our discussions about 2010, my Sogeti colleague mentioned that far and away his favorite new 2010 feature was the Excel REST API. I wasn’t that familiar with it, so I offered to set up that part of the demo. I have a SharePoint 2010 server running in a virtual machine, with Excel Services already configured. Please note: if you are ...
I have been working with a client that has several metadata property mappings. One of them being a "Yes\No" FIeld. The client has a "Confidential" field wich is really a check box. If a document is confidential then it is checked off, by default all documents are NOT confidential therefore, they field is un-checked. Well needless to say during a search query on that field, it would say, "error occured" What the "H" is going on here!!?? looking at the windows logs didn't help as it was complaining ...
Let’s develop a SharePoint WebPart for executing BAM SSIS Packages. The SharePoint site can be on remote server other than the BizTalk Database Server. This won’t be a fancy UI WebPart, just a basic dropdown to select a BAM SSIS Package and execute it. ;-) The approach I am used is of using a asp.net User Control hosted as a sharepoint webpart. There are bunch of different ways you can develop Sharepoint webpart. This is just one of them and easier one. Less error prone and easily debug able. · Create ...
While i was trying to setup some reports on a SPF 2010 site. After trying to add a Sql Reporting Webpart i get the error: Session state has been disabled for ASP.NET. The Report Viewer control requires that session state be enabled in local mode I never came across that error before when using RSWebaprts in Sharepoint 2007:) But i think is related to ASP.NET sessions state:( Any to fix it you would have to start to make sure the SharePoint Server ASP.NET Session State Service is enabled. Unfortunately ...
Here is the list of Zone ID’s for the Blank WebPart Page (BlankWebPartPage.aspx") that is part of the Publishing Portal with MOSS 2007: TitleBar Header TopLeftRow TopRightRow CenterLeftColumn CenterColumn CenterRightColumn Footer RightColumn I was in need of these and wasn’t able to find them with a simple search on Google so I wanted to share them with you. To get a list of WebPartZone objects for a page that a webpart lives on can be done with the following code: foreach (WebPartZone zone in this.WebPartManager.Zones) ...
Mostly all who works extensively on SharePoint (including meJ) don’t like to use out-of-box list forms (DispForm.aspx, EditForm.aspx, NewForm.aspx) as interface. Actually these OOB list forms bind hands of developers for the customization. It gives headache to developers to add just one post back event, for a dropdown field and to populate other fields in NewForm.aspx or EditForm.aspx. On top of that clients always ask such stuff. So here I am going to give you guys a flight for SharePoint Customization ...
INTRODUCTION If you are a SharePoint developer you know that there are two basic ways to develop against SharePoint. 1) The object Model 2) Web services. SharePoint object model has the advantage of being quite rich. Anything you can do through the SharePoint UI as an administrator or end user, you can do through the object model. In fact everything that is done through the UI is done through the object model behind the scenes. The major disadvantage to getting at SharePoint this way is that the ...
Here are steps on setting up a slideshow on your SharePoint site really fast using a Content Editor WebPart (CEWP), jQuery and a Picture Library. The jQuery for the slide show makes use of the Cycle plug-in located at http://jquery.malsup.com/cy... There are plenty of demos on the site along with instructions on using the API. Here are the steps to implement the slideshow on a SharePoint site: Download the jQuery library and the Cycle plug-in and upload them to a document library Create a picture ...
Action Description Example AddLookupColumnToList Creates a new <b>list</b>-scoped lookup column pointing to an existing list. Download Quickstart AddSiteColumnToContentType Adds a site column to an existing content type. Download Quickstart AddSiteColumnToList Adds a site column to an existing SharePoint list. Download Quickstart CreateLookupColumn Creates a new <b>site</b>-scoped lookup column pointing to a field in an existing list. Download Quickstart EnsureSiteColumn Adds ...
Sharepoint 2010 comes with huge enhancements in the development experience, exists a feature that i am sure a lot of programmers were waiting, this is the capability to create Webparts using a visual interface, in Sharepoint 2010 this is done and is called Visual WebParts To create a Visual Webpart, first we should create a Visual Studio Project, i selected the Empty Project template for Sharepoint 2010, when the project is created the Sharepoint Customization Wizard is launched, the first innovation ...
Introduction Welcome to this series of blog post that deals with Windows Sharepoint Services aka WSS. In this first part we will review the basics of a content management system, the types of content management system and the fitment of WSS in this space. We will delve into the technical details of WSS in the subsequent posts. The content that follows provide a birds eye view into the basics of a CMS system. Overview Basically a CMS is a system for organizing and facilitating collaborative creation ...
In this Issue: Shawn Wildermuth, Beth Massi, Fredrik Normén, Deborah Kurata, Jesse Bishop, Laurent Duveau(2), David Yack, Tim Heuer, and Jeff Handley. Shoutouts: Andy Beaulieu has a beta of a new game up: Froggy Math. He's looking for comments, so have at it! For all you 3D junkies out there, Einar Ingebrigtsen announced Balder 0.8.8.0 Release is out SilverlightGirl announced New achievements and contests on Mashooo ... and check out their website... wow... how cool! From SilverlightCream.com: Silverlight ...
This post is the ninth in a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. To read all posts in this series, or to get started with the RSSBus WebPart, go here. #9 – Microsoft Dynamics CRM The credit for this particular web part template goes to one of my co-workers Shannon Prue. I asked him if he could put together a MS CRM template example for me, and a few minutes later I had in my inbox a 10 line example template! In the past, integrating ...
This post is the eighth in a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. To read all posts in this series, or to get started with the RSSBus WebPart, go here. #8 – Twitter Many times since I originally posted about it months ago, I’ve been asked for more details about including Twitter searches and streams inside their SharePoint pages. Thanks to the Twitter API and feeds, this is very simple to do, and to change from showing searches, ...
This post is the seventh in a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. To read all posts in this series, or to get started with the RSSBus WebPart, go here. #7 – Search Email History One of my good friends here recently asked me to give him an easy way to quickly bring up a list of email correspondence to and from a particular email address over the past 6 months. This way, if he is assisting someone on the telephone or email, he can ...
After the keynote sessions and lunch the first set of breakout sessions kicked off. Needless to say with the session line up it was difficult to choose only one to attend. However I thought it would be wise to at least see what is new and get an overview of the platform. I got to the session a bit late, but I don't think that I missed much. Arpan Shah was the speaker and it was a packed house. One of the largest rooms I have seen so far. Easily over 300 people in attendance. Here is what I caught. ...
[code] /// <summary> /// Gets or sets the site URL. /// </summary> /// <value>The site URL.</value> [WebBrowsable(true), WebDescription("Url of the site to process reports on"), WebDisplayName("Site Url"), Personalizable(Personalizat... public string SiteUrl { get { if (string.IsNullOrEmpty(siteU... { return SPContext.Current.Web.Url; } return siteUrl; } set { siteUrl = value; } } [/code] The above code snippet looks like a reasonable WebPart Propperty. In-fact ...
This post is the sixth in a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. To read all posts in this series, or to get started with the RSSBus WebPart, go here. #6 – Shipment Tracking Web Part! I’ve been holding on to this one for a while. Until recently it was just a FedEx shipment tracker, but now the UPS and USPS Connectors have been published at RSSBus.com so this can be what I wanted it to be. This sample will allow the user to input ...
I started a series that I titled Mission Impossible. Read the Introduction if you have not already done so, you can find it here. This Post will cover the quota issue and some ideas I put out for the client to decide. This solution can be approached in two different ways, a passive approach and a pro active approach. Let me describe. Let me describe the problem first. A site collection exists with sub sites. The client wanted a quota set to a 2G limit on each sub site. There are no way that can be ...
I feel a series coming on! I have been involved with a client to develop and customize their present SharePoint Environment. I have incorporated several solutions I would like to share. It was a learning experience and it was definitely Fringe SharePoint!!! The purpose of this post is to set up the scenario and to describe all the factors that were involved with the decision making of the overall solution. I hit several walls and blocking issues and feel it's important for anyone doing anything remotely ...
This post is the fifth in a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. To read all posts in this series, or to get started with the RSSBus WebPart, go here. #5 – QuickBooks Web Part! I accidently overwrote the original post. Sorry about that. Below are the steps for the QuickBooks webpart. If there are other QB searches you need to do, I can help with that. The RSSBus QBOps Connector has a ton of functionality. Step one is to make sure ...
The other day I was working with a class that pulls back all the audit information for a user, SPAuditQuery. It has some really good options, especially query by user. I was trying to pull information from the site collection for the user, however I continued to receive a non-descript error message. Finally, I thought to myself what permissions does this user have and sure enough the user was a Site Admin and not Site Collection Admin. If you are pulling audit logs from a Site, then check that the ...
This post is the fourth in a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. To read all posts in this series, or to get started with the RSSBus WebPart, go here. #4 – List Active Directory Groups and Users This web part will list each user group and its members, as defined in your Active Directory (or other LDAP server) installation. Step one is to make sure you have the RSSBus Web Part installed. See here for instructions. Step two, make ...
http://msdn.microsoft.com/e... Temporary Tables vs. Containers Microsoft Dynamics AX supports a special data type called a container. This data type can be used just as you would use a temporary table. For more information, see Containers. Data in containers are stored and retrieved sequentially, but a temporary table enables you to define indexes to speed up data retrieval. Containers provide slower data access if you are working with many records. However, if you are ...
This post is the third in a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. To read all posts in this series, or to get started with the RSSBus WebPart, go here. #3 – Custom SQL Queries This web part will perform a custom SQL query, and allow you to display them however you like. Unlike previous examples, this one won’t be just cut and paste, since you’ll have to provide your own SQL connection string and query, and make replacements inside ...
After a year of answering questions at the WebParts and Personalization forum section, I consider the following items below as “frequently asked questions”. I decided to write this so that I can point them to this post whenever I find a question that can be found here. The following are the list of items that I consider as FAQ: 1. How to Get Started with ASP.NET WebParts? ASP.NET Web Parts Overview ASP.NET WebPart Controls Implementing ASP.NET WebParts with Different Authentication modes Video: Utilizing ...
This post is the second in a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. To read all posts in this series, or to get started with the RSSBus WebPart, go here. #2 – List Document Libraries and Documents For this example, we’ll make a web part that displays a list of the most recently modified document libraries/documents on the site. Lots of SharePoint sites contain many libraries, each containing dozens or even hundreds of documents. Often ...
This post marks the beginning of a series of postings, containing examples of SharePoint WebParts that anybody can build all by themselves. After that intro you’re probably already wondering what the catch is, and yep, there is one. These examples will require the use of the highly acclaimed RSSBus SharePoint WebPart. To read all posts in this series, or to get started with the RSSBus WebPart, go here. And now…let’s get on with it! #1 – SharePoint Image Rotator Step one is to make sure you have the ...