SharePoint
There are 26 entries for the tag
SharePoint
I was given with a simple requirement – create an online component that has the ability to pull RSS feeds asynchronously from websites. I could have written a server control, but that would mean I would need to write the logic to read the xml and parse it. Totally doable, but it was late in the day when the requirement came in and I wasn’t about to slave over Visual Studio to write manage code. OK, so long story short I used the Google Feed API to get the job done. Assuming you know jQuery the code...
When you create a Publishing site that has anonymous access enabled, you will notice that anonymous users will not be able to access pages that reside in the “_layouts” virtual directory (e.g. http://siteX/_layouts/viewl... This is because the publishing infrastructure activates a hidden feature that prevents anonymous users from accessing these types of pages. However, if you were to create a site collection based of Blank Site Template, you would notice that these pages are accessible by...
Here’s how: Open up the Central Administration site and click on “Manage Web Applications” under the “Application Management” section From the ribbon click on “New” (Note: if its an existing web app, then click on “Extend”) Fill in the fields with appropriate values. Under “Security Configurations” make sure to select “Yes” for “Allow Anonymous” Click OK Once the web application has been created, a site collection would need to be created. Navigate to “Application Management” –> “Create Site Collection”...
The following issue was encountered on a developers machine when trying to create a SharePoint project using Visual Studio 2010. From the File menu the developer selected New->Project and then selected ‘Empty sharepoint project’ (SharePoint 2010) and then typed in the url into the dialog box that appeared and then hit the Validate button. Upon clicking the button, the following error message was shown: Cannot connect to the SharePoint site: http://serverX:6666/. Make sure that the Site URL is...
If you want to see the RAW xml returned by the Refinement Panel web part then replace the existing XSL with the following (do remember to backup the original): <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.or... <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <xmp><xsl:copy-of select="*"/></xmp> </xsl:template> </xsl:stylesheet> Technorati...
Here’s the scenario: The user navigates to the NewForm.aspx page of a list and enters values into the necessary fields. As soon as the user click the OK button the browser should take the user to the EditForm.aspx page and load the previously entered item in edit mode and also start the approval workflow on the item. Solution: Create a event receiver for the list that hooks up to the ItemAdding event. There are quite a few blog posts out there that talk about this, so instead of typing down the same...
Here’s the scenario: You have a handful of images which you need people to rate. Unlike SharePoint 2010, 2007 does not offer a rating control so you’ll either have to purchase a commercial product or install the open source alternative or even develop something custom. All these are possible if the server ‘belongs’ to your team/department. But (like me) if the SharePoint farm is owned by some other team and is utilized by the whole company for day-to-day activates then admins would frown on such...
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...
Here’s the scenario: I have a form which contains a textbox. This textbox should be populated with a query string value. Users should not be able to edit the value of the textbox while adding the item. Solution: The above can be achieved using a Content Editor Web Part (CEWP) and jQuery. Steps: 1. Append the NewForm.aspx url with the following: &PageView=Shared&To... 2. This will cause the ‘Add Web Part’ tool pane to show up. 3. Add a CEWP to the page. 4. Go the webparts properties...
Quite simple really :) Open up an existing DVWP or create one. Right click the DVWP and select ‘Common Data View Tasks’ (or click the little arrow that appears on the top right of the DVWP) Click the ‘Parameters’ link In the dialog that opens up click the ‘New Parameter’ button. Provide a name for the parameter (e.g. IPAddress) In the ‘Parameter Source’ dropdown select ‘Server Variable’ In the ‘Server Variable Name’ text box enter REMOTE_ADDR Leave the ‘Default Value’ text box empty Click OK Now...
When I updated the ‘Filter Criteria’ of a fully functioning DVWP through SharePoint designer I was presented with the following error: The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator. Took me a while to figure it out. This is what caused it and how to fix it: When you create a DWVP, SPDesigner adds a parameter called ListID and assigns it the GUID...
This post is common knowledge to all SharePoint professionals out there, but for newbie's it can save hours of hair pulling (as I’ve got to learn from a bunch of people I’ve helped out) ;) Scenario: There is a distribution list you can see and use in outlook, but when you search for the same list in SharePoint it doesn’t show up in the people picker. What gives? Chances are that the distribution list is not security enabled. This would need to be done by your domain administrator. He would need to...
A discussion list in unlike a normal list in that it consists of two content types - a Discussion content type that maps to the discussion topic and a Message that maps to all replies to the topic. If you examine the Discussion content type you’ll see that its inherited from the Folder content type. The reply contains a field called ‘ParentFolderId’ and as the name suggests it holds the ID of the discussion topic. So naturally if you were to do a query on the list for all items with the same ParentFolderId...
We have a document library which makes use of the 'Link to a Document' content type which lets users add links to a document library. We noticed that users were using this feature to add links to documents hosted on sites outside of the SharePoint farm. This is all good as far as they are concerned because the content type does its job and end-user can access the external documents by clicking the link. However, we noticed that none of these links were showing up in the search results. When we looked...
If you were to restart (i.e stop and then start) the search service, in a SharePoint farm, from the 'Services on server' page in Central Administration chances are that you might encounter both or either of the following errors when yo do a search on your web application: Your search cannot be completed because of a service error. Try your search again or contact your administrator for more information. The search request was unable to connect to the Search Service. This happens because after restarting...
ASP.Net does not provide a rich text box control in its set of web controls. So, if you need to place a rich text box on your SharePoint page you'll have to use a commercial, free or open source text box control (and there are plenty out there). However if you don't want to introduce another dependency, in the form of an external control, you can use SharePoint's built-in rich text box. If you're creating a page layout that binds to a content types field then its straight forward and you can use...
We had configured a publishing site's Pages library to make use of the built-in approval workflow. However, we noticed that when users submits a page in the library for approval the workflow fails with the message 'Error Encountered'. There were no other messages provided by SharePoint explaining as to why an error occurred (and even the workflow history option yielded nothing). We then went into the workflow settings and started examining all the fields. We noticed that the 'Approvers' field was...
I had a request to exclude items contained in the approval tasks list from appearing in SharePoint's search results. At first glance it could be as simple as making changes to the lists properties (List Settings -> Advanced Settings) to explicitly exclude it from appearing in search results. This would work if you only had a few lists to update, but lets say, that like me, you had well over 100 lists to update....You could develop a utility that makes use of SharePoint's API to update the list,...
Blogging this mainly for my benefit, but if anyone else finds it useful - you're welcome :) In case you're working on a SharePoint site where the branding requires the removal of the Welcome links control then you'll loose the ability to 'Sign in as a Different User' to check the look-and-feel and functionality that different users will experience. One possible solution is to adjust you browser settings to always prompt for credentials and then restart your browser every time you need to sign in...
Incase you didn't know- when you set your index server to use a dedicated server for crawling, SharePoint updates the host file on the index server with the IP address of the WFE. However, there are times where SharePoint adds an invalid host entry when there are 2 or more WFE's. Example - Say there have 2 WFE's - MOSSWFE01 & MOSSWFE02. Setting MOSSWFE02 as the dedicated crawler will cause SharePoint to update the host file in the index server. It adds an entry for MOSSWFE01 with the IP address...
If you have multiple SharePoint web applications running on a server you would see multiple instances of w3wp.exe in TaskManager. When you need to monitor the performance of a SharePoint web app there is no way in TaskManager to figure out which w3wp process is the right one. Here's a quick way to identify the app pool associated with the running worker process: In the TaskManager menu select 'View' -> 'Select Columns' and check the 'PID (Process Identifier)' column Open command prompt window...
I was creating a custom page layout for a publishing site and one of the requirements was to display the 'Created By' field. Piece of cake, I thought, all I need to do was to all add the following: <SharePointWebControls:T... FieldName="Created_x0020_By" runat="server"/> However, this resulted in the field being rendered in the format- 'domain\username'. But on the 'View Properties' (DispForm.aspx) for the page the Created By field shown at the bottom of the page is in the correct format...
If you're developing webparts using VSeWSS and going to run the setup.bat that that VSeWSS creates, you might need to modify the deploy solution line before running it. The deploysolution instruction that VSeWSS adds contains the -local argument. This is all good if you're going to run it on an implementation with only 1 WFE, but for farms with 2 or more WFE's then you will need to change -local to -immediate. I also make it a habit to call the execadmsvcjobs command before and after adding and deploying....
Had a situation the other day where, after playing with the different installing options, WSS would not uninstall. Even running the repair option was of no help. Searching the net for solutions I came across this. Here are the steps I did: Disable and Stop the following services (If any): Windows SharePoint Services Administration Windows SharePoint Services Search Windows SharePoint Services Timer Windows SharePoint Services Tracing Windows SharePoint Services VSS Writer Backup and then delete the...
This is how to reduce the number of characters displayed in a blog post on the default.aspx page of a blog site created from the OOTB SharePoint blog template. Open up the site in SharePoint Designer Open the default.aspx and switch to Code View Perform a Find & Replace for the following: Find- <Field Name="Body"/> Replace- <Limit Len="99" IgnoreTags="TRUE" MoreText="...">&... Name="Body&quo... This would limit the...
OOTB the Search Core Results webpart simply emphasizes the search string you entered in the Search Box by wrapping it within the <b></b> tags. But let’s say you need to highlight the search terms in different colors; what do you do? Write a new results webpart? No! you only need to adjust the Search Core Results XLS. This is how it’s done: Open up the XLS editor and copy the contents to notepad or some other editor (if your fine with editing it in the MOSS’s default editor, go right ahead)...