Dev Team Assemble

Evil beware!
Add to Technorati Favorites

Archive

Tag: web parts

Day three was a lot of fun as I got to spend three hours in the labs and ran through some pretty cool stuff.  Linq to Sharepoint, Upgrading sites, REST API etc.

As far as the sessions went I was hoping the MultiLingual sites session was going to make me happy with some great news about variations.  Instead it seems to be status quo on that system with MS playing the line that you need to plan ahead for this...makes sense but not always possible.  The multi language user interface or MUI for all the chrome is available in every site now and you can switch languages off the site actions bar.

MindSharp had an awesome evangelistical session in the big room on Developiong with REST and LINQ in Sharepoint 2010.  This was another really great session on developing against the new Client Object Model, the Server OM, the ListData.svc REST service.

All in all it was another good day...If I didn't have to spend thenight doing homework it actually would haev been mouch more fun :|

Technorati Tags: , ,

The second day of the conference was great and a couple of sessions really stood out above the others in my mind....there was a great session in the morning on web part development and some of the new things coming up in that.  AJAX is baked into SP now which is great but there is also a bit of a learning curve surrounding XSS and making sure we understand cross-site scripting and how SharePoint really cracks down on this.

There was an amazing session on SharePoints new COM or client object model that exposes all sharepoint objects to the client (.NET CLR, silverlight and javascript).  Essentially we will be able to a LOT more work on the client side which makes me feel warm inside.

I finally got to play around with SharePoint 2010 in the labs which was great.  I was dying to get a feel for the product because it feels weird listening to all these sessions without actually having your hands on it.  I definitely will be spending more time in the labs.

The Huey Lewis and the News Beach Party was a lot of fun but I left there feeling a little...drunk for lack of a better word.  Good times in vegas...

Technorati Tags: , ,

I came across this problem recently. Its a little strange and only happened once I changed my base webpart class to inherit from Microsoft.SharePoint.WebPartPages.WebPart. There seems to be two fixes for this problem that I implemented:

  • remove the XMlNamespace from class declaration
  • Use a .dwp file instead of a .webpart file in your feature folder

Technorati Tags: , ,

Inside the Microsoft.SharePoint namespace there is the SPBasePermissions enumeration. It specifies the built-in permissions available in Windows SharePoint Services / MOSS 2007.  This was taken from the MSDN site, but I am posting it here because sometimes they move content around and I can't find it...ha ha you can't fool me Microsoft!!!

Using the enumerations below you can wrap some markup on your page in an SPSecurityTrimmedControl like so:

<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="CreateGroups">

and only allow users with the defined permission to see the contents of the security trimming control.

Member name Description
AddAndCustomizePages Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Windows SharePoint Services–compatible editor.
AddDelPrivateWebParts Add or remove personal Web Parts on a Web Part Page.
AddListItems Add items to lists, add documents to document libraries, and add Web discussion comments.
ApplyStyleSheets Apply a style sheet (.css file) to the Web site.
ApplyThemeAndBorder Apply a theme or borders to the entire Web site.
ApproveItems Approve a minor version of a list item or document.
BrowseDirectories Enumerate files and folders in a Web site using Microsoft Office SharePoint Designer 2007 and WebDAV interfaces.
BrowseUserInfo View information about users of the Web site.
CancelCheckout Discard or check in a document which is checked out to another user.
CreateAlerts Create e-mail alerts.
CreateGroups Create a group of users that can be used anywhere within the site collection.
CreateSSCSite Create a Web site using Self-Service Site Creation.
DeleteListItems Delete items from a list, documents from a document library, and Web discussion comments in documents.
DeleteVersions Delete past versions of a list item or document.
EditListItems Edit items in lists, edit documents in document libraries, edit Web discussion comments in documents, and customize Web Part Pages in document libraries.
EditMyUserInfo Allows a user to change his or her user information, such as adding a picture.
EmptyMask Has no permissions on the Web site. Not available through the user interface.
EnumeratePermissions Enumerate permissions on the Web site, list, folder, document, or list item.
FullMask Has all permissions on the Web site. Not available through the user interface.
ManageAlerts Manage alerts for all users of the Web site.
ManageLists Create and delete lists, add or remove columns in a list, and add or remove public views of a list.
ManagePermissions Create and change permission levels on the Web site and assign permissions to users and groups.
ManagePersonalViews Create, change, and delete personal views of lists.
ManageSubwebs Create subsites such as team sites, Meeting Workspace sites, and Document Workspace sites.
ManageWeb Grant the ability to perform all administration tasks for the Web site as well as manage content. Activate, deactivate, or edit properties of Web site scoped Features through the object model or through the user interface (UI). When granted on the root Web site of a site collection, activate, deactivate, or edit properties of site collection scoped Features through the object model. To browse to the Site Collection Features page and activate or deactivate site collection scoped Features through the UI, you must be a site collection administrator.
Open Allow users to open a Web site, list, or folder to access items inside that container.
OpenItems View the source of documents with server-side file handlers.
UpdatePersonalWebParts Update Web Parts to display personalized information.
UseClientIntegration Use features that launch client applications; otherwise, users must work on documents locally and upload changes.
UseRemoteAPIs Use SOAP, WebDAV, or Microsoft Office SharePoint Designer 2007 interfaces to access the Web site.
ViewFormPages View forms, views, and application pages, and enumerate lists.
ViewListItems View items in lists, documents in document libraries, and view Web discussion comments.
ViewPages View pages in a Web site.
ViewUsageData View reports on Web site usage.
ViewVersions View past versions of a list item or document.

Technorati Tags: , , ,

I got the following error the other day (it has been shortened...):

"the web part you attempted to add no longer exists in the closed web parts gallery."

This was a pretty disturbing error...there was no real apparent cause for this problem...nothing in the logs. After messing about with it for a while I figured out that it was a dll version in the GAC that was causing the problem. On my dev box I had an updated version but the version in our prod envs is different.

It would be nice if the server was a little more helpful with its error messages....HTH if you come across it

Technorati Tags: , , , ,

Funny thing. I was trying to create a custom menu on the side of the default.master page in SharePoint. I can't seem to find anyway to add security to pages so that they are trimmed out properly when the menu loads.....(help me please).

So I removed some of the xslt and added my own methods for adding a couple of hyperlink controls and having them link to the right pages. Apparently this is not a good thing to do....somehow the session state stopped working after this????  Whats nice is reverting to site definition fixed it so...at least it works again. but I am back to my original problem, which is security trimming at the page level. More work to be done on this...

FYI as a followup before I forget...looks like this was related to me using a server control as opposed to a web part on the page. After changing the controls to webparts I was able to bastardized the page to my hearts content.

Technorati Tags: , ,