Compartilhar via


Request for SharePoint code sample ideas (Frank Rice)

The Office Developer & Interop Documentation Group is currently defining the specifications for a project to provide 101 Code Samples for SharePoint. We are looking for your help with the types of code samples to include in the project. Please reply to this post with suggestions for code samples that would be helpful to you and other developers. Please provide enough detail to accurately describe each sample requested. The samples will be created in managed code (C# and VB.NET). The deadline for taking suggestions is 931. Thank you and we look forward to your valuable feedback.

Technorati Tags: 101 Code Samples project

Comments

  • Anonymous
    August 23, 2011
    Hi there, Some ideas for the 101 Code Samples project:
  • Site Definition sample.
  • Web Template sample.
  • List Definition sample
  • Content Type sample (either declarative or porgramatic creation).
  • Custom Field type sample: single column, multicolumn, cascade lookups, cross site lookups, etc.
  • Custom forms (Edit, Display and New) for lists / document libraries.
  • WebParts Connections (either Visual or not) sample.
  • WebParts Toolpart (either Visual or not) sample.
  • Custom authentication provider sample.
  • Timer Job sample.
  • Delegate Control sample.
  • Custom Ribbon Actions sample: download as a zip file the selected files (just a simple sample).
  • Custom Ribbon controls sample.
  • Custom Workflow Action for SharePoint Designer Workflows (either Sandbox or not).
  • Property Bugs use sample.
  • Event Receiver (Sync / Async) with redirections or cancellations sample.
  • Application Page with code behind sample.
  • Starter Master Page sample for Team Sites / Publishing Sites including the deployment to the site.
  • Custom Navigation sample (by means of a control), either for the vertical or horizontal menu.
  • Custom Service Application sample.
  • Custom SandBox Solution Validator sample.
  • Custom Visual Studio Extension for SharePoint Development sample.
  • Custom controls for list/document libraries forms smaple.
  • Working with classic SharePoint Objects: SPSite, SPWeb, etc... sample.
  • InfoPath Forms with code behind (either sandbox or not) sample.
  • Use of the search engine sample.
  • Extension of the SharePoint 2010 rich text editor sample (new styles, new controls). My name is Juan Carlos González and I'm a Spanish SharePoint MVP (mvp.support.microsoft.com/profile=B44512C7-6C48-40E7-9710-97F51900DDED)...you can contact me if you are thinking also in localized documentation for the Samples. Regards
  • Anonymous
    August 23, 2011
    I agree with the comments of Juan. Many of them i have it allready  and  many otherw that does not described. I have archieve them in my personal company sharepoint wiki. So if you want i can share all this Code samples. If you think i can help just let me know in my email.

  • Anonymous
    August 23, 2011
    Here in my web site you can check for some object model codes. http://www.fewlines4biju.com and also in www.onlysharepoint2010.com

  • Anonymous
    August 23, 2011
    A few ideas:

  • Web templates using the publishing feature
  • Examples with unit tests (preferably with stubs/mocks)
  • Application pages using user controls
  • Calling full-trust proxy code from a sandboxed solution
  • A timer job
  • A service application with custom database Ben
  • Anonymous
    August 23, 2011
    My a few ideas:
  • Master page with Silverlight (Fundation/Server version)
  • Apply Branding with CSS(or combination custom CSS and Theme)
  • JQuery and SharePoint Web Service Best regards, Martin Bodocky
  • Anonymous
    August 23, 2011
    Some simple BCS examples would be very useful; ones which do nothing complex from a LOB application perspective, just a simple text/xml/csv filestore or something, but something that demonstrates the BCS infrastructure. This is a great idea, I look forward to seeing the results!

  • Anonymous
    August 24, 2011
    A sample content type feature using managed metadata (Taxonomy - single and multi) fields that hooks to the managed meta data service in any farm you deploy it to. I had quite a time getting this to work to where it worked in any farm i deployed it to. Also, setting a default value for the fields in this same scenario. (Since the values are specific to the MM service because of the guid the service assigns to the values)

  • Anonymous
    August 24, 2011
    AJAX-enabled web part deployed as a part of a sandbox solution.  Based on what I've seen, there doesn't appear to be anyway to put an update panel within a web part because the ScriptManager isn't available to web parts on a UserCodePage, though clearly it should be possible as the ScriptManager is on the base SharePoint v4 master page.

  • Anonymous
    August 24, 2011
    Hi, As part of security and claims based security.

  1. Step by Step guide for configuring Claims authentication with Microsoft Federation Manager or third party Federation Managers.
  2. How to consume SAML token genererated by Federation Managers (MS or NON-MS products)
  3. How to Write custom people picker for claims authentication.
  • Anonymous
    August 29, 2011
    A Server -> Client example depicting the mirroring of a document library to a client machine using a thin .NET desktop client would be helpful. This does not need to depict full synchronization, but a one-way push to the client machine would be sufficient. Thank you, Brandon

  • Anonymous
    September 01, 2011
    Please provide sample code for modifying new lists or existing lists permissions. The challenge is that many document libraries are created which contain records which need to be accessed by specific employees and their direct managers. The name of the list contains the name of the employee. How can one identify this employee, assign access exclusive access to the list and then using AD, determine the employee's manager and grant them access as well. just a thought.

  • Anonymous
    September 07, 2011
    For the love of all that is good, please include a sample of how to implement an ISPDocumentParser. I'm wading through a lot of internet to try to figure this out, and it seems to be nearly impossible, and very poorly documented on the site. Thanks.

  • Anonymous
    September 08, 2011
    -BI Sharepoint List with analityc chart sample. -BCS Sample -KPI With Sharepoint List

  • Anonymous
    September 12, 2011
    Hi, I would like to have a code sample for export to Word and excel from sharepoint. In the sharepoint advanced training video for developers this functionlaity is already previewed and it would be nice to view the code for the same. Regards, Ramana

  • Anonymous
    September 13, 2011
    Here's my two cents,

  • SharePoint search configuration step by step guide
  • Integrating 3rd party API's (google maps, twitter etc..)
  • Enable mobile sites for SharePoint
  • Branding SharePoint mobile sites I also think easy to understand SharePoint licensing guide will also help a lot for new developers/companies who are coming in to SharePoint world. Regards,
  • Anonymous
    September 13, 2011
    Determining the current SharePoint edition using C#: sharepointmagic.wordpress.com/.../determining-the-current-sharepoint-edition-using-c

  • Anonymous
    September 13, 2011
    Determining the current SharePoint edition using C#: sharepointmagic.wordpress.com/.../determining-the-current-sharepoint-edition-using-c

  • Anonymous
    September 14, 2011
    I sure would like to see some more detailed examples of complex JSGrid solutions: Conditional Formatting for cells (not columns) Grouping example Exporting to Excel Printing the JSGrid content Saving bulk changes from JSGrid to custom database Gantt example (with links between tasks) Kind regards, Roy

  • Anonymous
    September 14, 2011
    I sure would like to see some more detailed examples of complex JSGrid solutions: Conditional Formatting for cells (not columns) Grouping example Exporting to Excel Printing the JSGrid content Saving bulk changes from JSGrid to custom database Gantt example (with links between tasks) Kind regards, Roy

  • Anonymous
    September 15, 2011
    I agree with most of Juan's samples.  But even more simple would be a good BCS example, something with Chart Webpart or Excel Services to show the BI side off a little more.  Maybe a quick chart tied to a list?

  • Anonymous
    September 19, 2011
    Powershell scripting samples could ne usefull.. and specially some sample using client object model.

  • Anonymous
    September 19, 2011
    Some ideas for the code samples

  • Custom service applications
  • BCS solutions including server side caching
  • Custom Claims provider
  • Custom Content Jobs -Balaje Sankar http://dotnetech.wordpress.com
  • Anonymous
    September 19, 2011
    Please work more on integration, Connecting Twitter, Facebook, LinkedIn, Yammer would be really helpful. Also how to work with general interoperability techniques... Connecting to  SOAP, REST, JSON would also be great... Thanks,

  • Anonymous
    September 19, 2011
    The comment has been removed

  • Anonymous
    September 19, 2011
    A complete working sample of a External Content Type based upon your own .NET assembly with filters etc...

  • Anonymous
    September 20, 2011
    Basic examples of common things we do with each service application.  How to create a new service app of each type, how to connect to and view/edit properties, how to do some common tasks with each. Add some more code samples using Publishing namespace and capabilities - we do a lot of heavily publishing-leaning sites and find we need to dig hard for these types of code examples frequently.

  • Anonymous
    September 20, 2011
    -automated unit testing of custom SharePoint app. - sample

  • external content type and infopath
  • Anonymous
    September 20, 2011
    The comment has been removed

  • Anonymous
    September 21, 2011
    Are you planning to integrate this with All-in-one-code Framework (http://1code.codeplex.com/)?

  • Anonymous
    September 21, 2011
    Code Samples I think useful are:

  • Master page code, so we can change where to put company logo...

  • View/Report creating code, so  we have more options to customized views/reports.

  • Anonymous
    September 21, 2011
    Knowlegebase webpart (not 2007 one upgraded) Fab 40 - (not 2007 upgraded ones - new on 2010). Status Report or Timesheet webpart - maybe link to Project Tasks or extend it. Color coded Calendar with ability to add Icons/pics for Holidays. Color color coded or conditional formatted tasks/alerts. Surveys - more examples and Better Survey Report webpart. HR webpart - orientation, new employee list, class organizer, etc. Goalkeeper - organization of goals/tasks to accomplish goals. Team Foundation webpart - whats been deployed? Change Management, config management, and/or Bug Tracking webpart. Classroom or student organizer webpart/app (not old one, better one) Office Communicator webpart or Skype Webpart BDC/BCS built in connector to each and all Microsoft apps. SCOM Dashboard webpart/connector CRM 2011 Dashboard webpart/connector SCCM hierarchy/Search webpart/connector SL8 Dashboard/webpart/connector SharePoint Broken Links/Error webpart or sandbox app/report -  PPPLLLEEEAAASSSEEE Fax webpart/connector to send docs to a fax or internet fax. Fax reporting - manage incoming/outgoing faxes.   SharePoint reporting or performance dashboard for admins/dba's. SQL Data Collection webpart - send the SQL datacollections information to webpart. Picture Rotator webpart. Mary

  • Anonymous
    September 21, 2011
    Hello! -It would be great to have a web part example that includes changing the settings of the web part to include custom parameters. -use the model dialog, but open the page layout instead of the properties page for publishing content.

  • Anonymous
    September 22, 2011
    SharePoint CMIS provider examples, especially with REST bindings!

  • Anonymous
    September 25, 2011
    The comment has been removed

  • Anonymous
    September 26, 2011
    Looking for more/better examples for putting prettier front end forms on Sharepoint back end lists...

  • Anonymous
    September 26, 2011
    How about examples for coding migrations, like pulling document libraries and lists from Sharepoint 3 to Sharepoint 2010 sites?

  • Anonymous
    September 26, 2011
    Deployment of Branded Site / Template and Resources

  • Anonymous
    September 26, 2011
    Bulk upload of images/files with additional required fields for every file.  (User will specify the additional required fields once, then they are applied to every file uploaded.)

  • Anonymous
    September 26, 2011
    A couple of routine tasks I'd like to see included:

  • auto archive a document
  • automatic tagging of content
  • Anonymous
    September 26, 2011
    My request for samples is listed below.
  1. InfoPath that share the XML Schema and List Definition
  2. VS 2010 Site migration from development to production Thanks
  • Anonymous
    September 26, 2011
    My a few ideas,
  • Event / Course Registration
  • Cross list / lib queries
  • Public holiday import Regards, K.Mohamed Faizal
  • Anonymous
    September 26, 2011
    My a few ideas,
  • Event / Course Registration
  • Cross list / lib queries
  • Public holiday import Regards, K.Mohamed Faizal
  • Anonymous
    September 26, 2011
    Hi I know most of SP 2010 features and technologies and need a SharePoint 2010 Project(from first step to Deployment)that apply these technologies. Thanx.

  • Anonymous
    September 26, 2011
    I would like to be able to print a multi-page Excel services web part from SharePoint.

  • Anonymous
    September 26, 2011
    I'd appreciate some silverlight examples :)

  • Anonymous
    September 27, 2011
    Please provide an example of connection SharePoint Web Part to SAP using .NET SAPConnector for 64bit SharePoint server. The goal is o retrieve some information from SAP.  

  • Anonymous
    September 27, 2011
    I would like to see an example of interaction with the Notify and Status functions. I am writing web parts using C# but need to provide feedback to the user; it would be nice to be able to do that using these two features.

  • Anonymous
    September 28, 2011
    I would like to see Custom Sign In page and Search Center Customization page samples.

  • Anonymous
    September 28, 2011
    Sandboxed solution: Custom silverlight webpart for editing a list item. Sandboxed solution: Adding a custom button to a custom WebPart's Ribbon. Authentication from a standalone application and usage of the sharepoint client object model.

  • Anonymous
    September 29, 2011
    samples in C#:

  • packaging and deploying sandbox solutions.
  • packaging and deploying workflows
  • manage & package site feature dependencies in sharepoint 2010.
  • Configure package designer in SharePoint 2010 projects.
  • Configure Feature designer in SharePoint 2010 projects.
  • Develop Timer Jobs in SharePoint 2010.
  • Develop Custom Ribbons in SharePoint 2010.
  • Deploy Application pages in sharepoint 2010.
  • Develop Visio Services Solutions in SPD 2010.
  • Develop Visio Services Solutions using Visio 2010.
  • Develop KPIs in PPS Designer 2010.
  • Develop Scorecards in PPS Designer 2010.
  • Develop Custom Reports in PPS 2010.
  • Deploy Dashboards to SharePoint 2010 in VS 2010.
  • Develop Twitter WebPart that pulls live tweets.
  • Develop Application pages with ribbon controls. And i'm open for any other suggestions. Regards, Mostafa
  • Anonymous
    September 30, 2011
    I think it's quite interesting to have some code examples regarding integration with third party products:
  • SAP
  • WSRP webpart and portlets
  • Jquery integration samples
  • HTML 5 and SharePoint examples Thanks!!! Kind Regards.
  • Anonymous
    September 30, 2011
    I'm not a coder, so my vocabulary may be off here, but I'm looking for some code that would allow me to create a Single-Sign On link to our hosted LMS from a SharePoint 2010 site.  Our vendor said that I can use SAML and gave me a large manual, but I'm at a complete loss. Care to help out a newb?

  • Anonymous
    October 03, 2011
    Leave request workflow with an infoPath form

  • Anonymous
    October 04, 2011
    Custom Navigation sample.   Such navigation should be able to span multiple Site Collections and web applications to provide an enterprise level navigation control.   Ideally configurable by sharepoint metadata some portion should be able to be drive by user interest as well

  • Anonymous
    October 05, 2011
    The new InifoPath form viewer web part has lots of potential to reduce the navigational drag imposed when IP web forms open in their own window. However information regarding methods to interact with this new web part via code are lacking.  So is an understanding of the object model and methods that are exposed for customizing this interaction.

  1.  How does a user create a web part where they can specify to a Form Web Part what form and what view in the form will open from a given form library? How does one create a Submit method in the IP form that will submit back relative to the form library it is displayed from?  We can "hard code" this data connection  using the data connection wizard, but if this form web part is embedded in for example a site template, there is no good way to retrieve the URL from which the form is opened from.  this is because the URL always references the InfoPath forms server rather than the form library from which the form was opened.  How do we determine or pull what form library the form has been opened from when it appears in a form library web part? tx dave
  • Anonymous
    October 07, 2011
    I am needing coding that will embed a visitor counter on our page.

  • Anonymous
    October 11, 2011
    Hi Frank, I'm a beginner sharepoint 2010 developer, Can you please send some code samples and how to links to my email. Thanks in Advance. Best Regards, Tom

  • Anonymous
    October 13, 2011
    Would be good to get an example of writing applications (Console, WPF etc.) that can connect to SharePoint Office 365. Esp. on how credentials are passed. For example if you wanted to synchronise on premise system with SharePoint Office 365.

  • Anonymous
    October 14, 2011
    I want to know if I can build an online shop, using SharePoint

  • Anonymous
    October 14, 2011
    Look at the FAB40 templates and upgrade them to work and use SharePoint 2010 features.  These are well known and customers have used and experienced their worth.

  • Anonymous
    October 27, 2011
    How to find out Number of times a post has been viewed in SharePoint Discussion Board in WSS 3.0

  • Anonymous
    October 31, 2011
    Wish List:

  • Deployment of specific pieces (files, .xap, forms, workflows) from VS 2010.
  • InfoPath form as content type from VS 2010.
  • Silverlight Authentication (Claims)
  • User Pages from Visual Studio 2010.
  • Site administration task from code in VS 2010. --- create a site, add an admin, permissions.
  • Session Management in VS 2010. How to?
  • Site customization: tabs, modification to the default layout from VS 2010.
  • Site Definition: creation from VS 2010 with custom pages and more functionality.
  • Web part communication : between web parts.Include silverlight.
  • Anonymous
    November 09, 2011
    We want to customize the existing sharepoint tree view control to concatenate columns (folder ID and name) to show. We developed a custom tree view control to do so but when we use it the performance of the site becomes very slow. When we take it off the performance is fine. Following are the columns on our document library:
  1. IndexID
  2. Type
  3. Name
  4. Version
  5. Location of Original
  6. Created By
  7. Created
  8. Modified By
  9. Modified Out of this 9 columns we need to concatenate column (IndexID + Name) to show on the tree in a sorted form. Is there any way without compromising on the performance this can be done. Regards George Thomas
  • Anonymous
    November 14, 2011
    Examples of Databinding data controls such as a repeater to custom lists using the SPDataSource control would be really useful. Currently having a nightmare trying to find anything that actually works!!!