Skip to main content
 
Go Search
Home
Categories
Bloggers
By: Amol Ajgaonkar | Posted: October 19, 2009 at 11:12 AM
To add a button to the ribbon in SharePoint 2010 we use the SPUserCustomAction class. Get  hold of the SPList object whose ribbon you want to customize. Access the UserCustomActions property and create a new instance of the SPUserCustomAction class. Set the appropriate properties of the new instance. Call update on the SPUserCustomAction instance. There are different locations where the button will be added depending on the properties being set. If you don’t set the CommandUIExtension prope ... [more]
By: Amol Ajgaonkar | Posted: October 19, 2009 at 11:09 AM
  There are different ways of adding your own custom actions to the ribbon in SharePoint 2010. The ribbon is made up of tabs and groups. Each tab consists of Groups. So when we want to add a custom action we need to identify the correct tab and group. This is referenced by Tab.Group ID.   1. SharePoint Designer Using SPD 2010, open the list that you want to customize. You can see the Custom Actions section on the page. In the Ribbon, click on Quick Step and you will get 5 options to choose fr ... [more]
By: Amol Ajgaonkar | Posted: October 19, 2009 at 11:07 AM
Enterprise Content Types and Service Applications are interesting features of SharePoint 2010. Enterprise content types can be used to provide a consistent entity definition to different web applications. Consider an example of a textile company who has implemented an Extranet and an Intranet application. Their clients can log on to their extranet site and order different products. To add a product the client needs to fill up a form. The form data will be stored in a list on the extranet. The li ... [more]
By: Amol Ajgaonkar | Posted: January 18, 2009 at 10:06 PM
  Professional Microsoft SharePoint 2007 Development Using Microsoft Silverlight 2 Authors: Steve Fox, Paul Stubbs A few days back I had the pleasure of interviewing Steve Fox, author of "Professional Microsoft SharePoint 2007 Development Using Microsoft Silverlight 2" . This interview gives an overview of the book and what all will be covered in it. Tell us a little about yourself? I am a Sr. Technical Evangelist with Microsoft. I’ve worked in the IT industry for 15 years, 10 of wh ... [more]
By: Amol Ajgaonkar | Posted: December 21, 2008 at 11:06 PM
Last week we came across a very interesting problem. A routine deployment made some of the web parts throw an exception whenever you made a change to its properties and tried to save the changes. This exception was also seen when we tried to add a web part to a page. It was not only for custom web parts but also for OOTB (Out of the box) web parts. Now what could have possibly happen that would make the OOTB web parts break and throw an exception. Looking into the issue, I found that the culprit ... [more]
By: Amol Ajgaonkar | Posted: December 21, 2008 at 11:04 PM
I don't know how or why but sometimes the fields in a content type can get hidden. And you wont get an option of un-hiding the field using the UI. Actually if you try and un-hide the field using the object model, it wont let you. The CanToggleHidden property will be false. And the object model does not allow you to reset this property. There is a way to reset this property. The following code uses reflection to invoke the right method and reset the property. After the code executes the field (SP ... [more]
By: Amol Ajgaonkar | Posted: December 21, 2008 at 11:00 PM
I saw some applications making use of the carosel to display their products and that made me think. What if I had a set of products related to each other. Like if I was displaying Vaccum cleaners then clicking on of the vaccum cleaners would show me another carousel which would display different accessories for that vaccum cleaner. We can architect this by creating different entities. 1. Carousel - This class handles the items in it and rotates them at the set speed. 2. Carousel Controller - ... [more]
By: Amol Ajgaonkar | Posted: September 7, 2008 at 9:15 PM
  To implement a search UI quickly, we can use the content editor web part to generate the UI.  After you get the UI on track, how do you get the search working. 1. Add the search core results web part to the page. 2. Configure the search core results web part:          a) Set the number of results to display.  b) Set the selected columns that you want to display. These columns are basically managed properties which can be changed/added in the shared service provider. Once you add the co ... [more]
By: Amol Ajgaonkar | Posted: August 17, 2008 at 1:03 PM
  Handling RichText Fields while saving the form content back to the SharePoint List Item is a little tricky. If you try and save the value from this field in the following manner, you won’t see your text in the item. if (objValue is Microsoft.SharePoint.Publishing.WebControls.RichTextField){    Microsoft.SharePoint.Publishing.WebControls.RichTextField richText = (objValue as Microsoft.SharePoint.Publishing.WebControls.RichTextField);    item[richText.Field.Title] = richText.Value;   } ... [more]
By: Amol Ajgaonkar | Posted: August 13, 2008 at 11:23 AM
  According to the current implementation you will get an error when you click on Attach File link. I guess most of you have seen this dialog box some time or the other after customizing the edit or new forms for a list.     The problem: The JavaScript is trying to find the element “part1” (which is the ID of the table which has all the field controls) and though we have set the ID of that table to “part1”, the JavaScript does not find the element. The cause: Since we have rendered the inpu ... [more]
By: Amol Ajgaonkar | Posted: August 12, 2008 at 10:21 PM
  To develop an edit/new/display form for a SharePoint list we have to implement the following steps: Get the list. Get the collection of all the columns If the form is in EDIT mode, get the item which is being edited. Render the columns that you want according to your requirements. Add the Save, Cancel buttons to the form and add the handler to it.   The first 3 steps are pretty straightforward. All of this information is available in the query string and SPContext. The fourth step is in ... [more]
By: Amol Ajgaonkar | Posted: August 12, 2008 at 10:21 PM
  Accessing the values of the controls is actually very easy. All the controls that you render using the FormField class are collected and stored in a collection. This collection resides in the current FormContext. To access the collection use the following statement:  SPContext.Current.FormContext.FieldControlCollection This collection has all the fields that were rendered using the FormField class. The FormField class when instantiated registers itself in the FieldControl collection. Toolbar ... [more]
By: Amol Ajgaonkar | Posted: July 27, 2008 at 11:07 PM
  Often we need to add more tabs to the global navigation of a MySite. By default, you get to see "My Site" and "My Profile" and even if you add more links using the Top Link Bar tool in Settings page, they wont show up in the Top navigation.This is because the provider specified in the web.config for the MySites Navigation ignores the Global navigation nodes specified by the user.   This is the provider for the mySites in the web.config. <add name="MySiteMapPro ... [more]
By: Amol Ajgaonkar | Posted: February 16, 2008 at 7:12 PM
Sometimes when you delete a column from a list, it does not get deleted completely. If this happens, you don't see the column in the list settings, but if you try and create a column with the same name, Sharepoint throws an error saying that a column already exists with that name. If you try and add a site column to the list, it creates the column in the list with the Display name as what is required, but the internal column name is the column name + 0 e.g region0, budget0   To delete this colum ... [more]
By: Amol Ajgaonkar | Posted: February 16, 2008 at 10:45 AM
  If you want to try and modify the Display Form of a document library using SPD, you should be aware of the following problems: Deleting the existing web part on the page and adding new content might break the document library. (When you click on View Properties of an item, it redirects the user to the root site) Modifying the existing web part, might work but it could break the edit forms functionality. To understand what is breaking the document library, do the following: Change the display ... [more]
By: Amol Ajgaonkar | Posted: October 22, 2007 at 4:45 PM
Dynamic controls & Post back Problem: Managing an array of Controls.   Problem: When you create an array of controls dynamically there are chances that you would notice the following behavior: 1.       When you click on one of the controls a post back will be triggered for some other control in the array of controls. 2.       When you click on the same control again then the post back will occur for the selected/clicked control. Reason: When a web request is received, a series of ob ... [more]
By: Amol Ajgaonkar | Posted: July 16, 2007 at 9:26 AM
    To add an item to the Welcome menu in MOSS.   Create a feature.   Feature xml should like:   <?xml version="1.0" encoding="utf-8"?><Feature Id="GUID"    Title="Welcome menu Item"    Description=""    Version="1.0.0.0"    Scope="Site"    xmlns="http://schemas.microsoft.com/sharepoint/">  <ElementManifests>    <ElementManifest Location="elements.xml"/>  </ElementManifest ... [more]
By: Amol Ajgaonkar | Posted: April 26, 2007 at 11:52 AM
Scenario: Workflow is waiting on the OnItemChanged event of a SP list. We need to update the same item from the workflow.   Solution: Do not use the Update method of SPListItem. This will surely make the workflow go into recursion.   Instead add a CallExternalMethod Activity. Select the interface type as IListItemService Method : UpdateListItem   Bind the following properties: 1. ListId : Bind to the workflowproperties.ListID 2. ItemId : Bind to the workflowproperties.ItemID 3. Id. ... [more]
By: Amol Ajgaonkar | Posted: April 26, 2007 at 11:49 AM
Assume you have mapped a URL to a Sharepoint Site and are accessing the site from the extranet. This sharepoint site gets accessed locally from a port other than 80.If you develop a custom aspx page then you would generally put the page in the _layouts folder and the dll in the Bin folder of the Site:port Virtual directory.The page would work fine if the user accesses the site from the Intranet using the local url i.e http://site:portBut try accessing the page using the mapped URL. It wont wor ... [more]
By: Amol Ajgaonkar | Posted: April 26, 2007 at 11:46 AM
To catch the onItemChanged event of any Sharepoint list in a workflow, the following needs to be done: Add a CallExternalMethod Activity, set the interface to Microsoft.SharePoint.Workflow.IListItemService Set the method name to InitializeForEvents Bind the ItemId, ListId to ItemID and ListId in the workflow properties. Add a HandleExternalEvent activity and specify the following properties:InterfaceType to Microsoft.SharePoint.Workflow.IListItemServiceEvent Name : OnItemChangedNO ... [more]
By: Aaron Steele | Posted: September 5, 2006 at 12:17 AM
Before I start with my articles, I would like to explain why I have named my blog as Axon.   The nervous system consists of a large number of cells, called neurons. Each neuron has numerous extensions called dendrites. These extensions receive chemical signals from other neurons. An Axon is a little different from dendrites. It is responsible for transmitting signals to other neurons over considerable distance. Now compare this with our work environment. Each individual is a processing unit, ... [more]
 

 About

 [more]

 ‭(Hidden)‬ Admin Links

 Tag Cloud

 External Links