Jan
27
2012

New SPServices Page on Facebook

SPServicesYesterday, due to a suggestion from Stefan Bauer (@StfBauer) (though he wasn’t the first, truth be told), I created a Facebook page for SPServices. I’ll use it to post some of the same information that you see here, but obviously it’ll be more SPServices-focused.

Christian Stahl (@CStahl) pointed out that it’ll be a great place for folks to post information about how they are using SPServices in the wild, and I totally agree. Sometimes people use the discussions on the Codeplex site to do this, but I doubt that very many people see the posts. Perhaps using the ubiquitousness of Facebook will help get the word out more.

Let me know what other things you might find useful on the Facebook page, and enjoy!

Permanent link to this article: http://sympmarc.com/2012/01/27/new-spservices-page-on-facebook/

Jan
20
2012

SPServices v0.7.1ALPHA13 Available for Testing

Faster and more furious, that’s what I always aim for.

SPServices

I’ve been working hard on this next release of SPServices. I’ve been lucky to have some down time between projects to do it. Yes, I’m happy to have the gap so that I can do more and do it better; I’ve been able to make even more significant improvements because I’ve has the focused time. It’s a great feeling to look at my old code and know that I can do a lot better now. This version of SPServices is going to be leaner and faster than ever before. As I tweeted the other day:

Developing, documenting & maintaining open source software is a hell of a good way to become a better developer.
@sympmarc
Marc D Anderson

Alpha13, which I just posted is, I think, a good one to think of as RC1. Before I get too busy again with client work, I want to get it out there for some of you to test. If you are an SPServices user and can do some testing, especially regression testing, I’d really appreciate it.

There’s also some new stuff that I’ve built into the last few alphas:

  • Better error messages for SPCascadeDropdowns, SPDisplayRelatedInfo, and SPFilterDropdown. If you have debug mode on and the listName is incorrect, you’ll get a clearer message.
  • Improvements to the new SPXmlToJson function. All of the documented options now work as advertised and I’ve optimized the code quite a bit.
  • SPCascadeDropdowns and SPDisplayRelatedInfo now have a matchOnId option. If matchOnId is set to true, the ID of the Lookup column is used rather than the text value. This can be handy where the same text value means different things, like the place-name of Springfield, which can be found in 34 of the US States. By default the behavior of the function remains the same, of course.
  • New operations: Lists.ApplyContentTypeToList, Lists.CreateContentType, Lists.DeleteContentType, Lists.GetListItemChanges, Lists.UndoCheckOut, Lists.UpdateContentType, SiteData.GetWeb
  • Numerous (and I do mean numerous) improvements for efficiency.

Enjoy, and let me know if you have a chance to try it out.

Permanent link to this article: http://sympmarc.com/2012/01/20/spservices-v0-7-1alpha13-available-for-testing/

Jan
11
2012

SPServices v0.7.1ALPHA8 Available for Testing

Yup, the alphas are coming fast and furious these days.

SPServicesI just posted a new alpha of SPServices v0.7.1. The most significant change in this alpha is the ability to have multiple child columns for a parent column in SPCascadeDropdowns. This was something I always intended it to do, but the last time I tried to work through it, probably well over a year ago, I wasn’t up to the challenge. This time I was, and I think that the function may also even be a teeny bit faster than it was in ALPHA7.

Here’s an example. In this simple list form, I’ve got a parent column called State and two child columns, one called City and the other called Second City.

By making two calls to SPCascadeDropdowns, both City and Second City are filtered based on the choice of State. I’ve also chosen to convert Second City from a “complex” dropdown to a “simple” dropdown by setting the simpleChild option to true.

$().SPServices.SPCascadeDropdowns({
  relationshipList: "Cities",
  relationshipListParentColumn: "State",
  relationshipListChildColumn: "Title",
  parentColumn: "State",
  childColumn: "City", // Child 1
  debug: true
});
$().SPServices.SPCascadeDropdowns({
  relationshipList: "Cities",
  relationshipListParentColumn: "State",
  relationshipListChildColumn: "Title",
  parentColumn: "State",
  childColumn: "Second City", // Child 2
  simpleChild: true,
  debug: true
});

Enjoy, and let me know if you have a chance to try it out.

Permanent link to this article: http://sympmarc.com/2012/01/11/spservices-v0-7-1alpha8-available-for-testing/

Jan
10
2012

Trials and Tribulations: Migrating My Demos Site to Office365

Over a year ago, I built myself a virtual machine in VMWare Workstation so that I could hack around with it. I’ve used it for some client development, but mostly it’s where I work on the demos I use when I speak at events.

Recently, when FPWeb decided to get out of the Exchange hosting business (I was sad to leave them – they are awesome to work with) I set up an Office365 account with Microsoft, at first just for Exchange. Not only did I feel that it was a good value, I also wanted to be able to eat some of the dog food that I talk about all the time. I like Exchange over plain old free POP or IMAP email services because I get the same view on all of my devices; the synching provides just the right solution for me and I’m willing to pay for it. (No free ride for us Microsoft MVPs, sadly.)

Office365 is pretty cool to work with. It’s got a little bit too much of a system administrator feeling, but not nearly as much as I had worried about. The menus and pages are cleanly laid out (more of that fresh Metro UI-ish goodness, though I’m sure we’ll all be tired of it in due course) and generally pretty easy to figure out. It may be that’s because I know the underlying products reasonably well, but it’s certainly a giant leap forward from what Microsoft has done with admin interfaces in the past. I don’t think that the average small company person could figure out how to use it all, but it suits me just fine.

Now that I’ve got things set up, I wanted to port my demo stuff to SharePoint Online from my VM. The VM works just fine, but porting is a useful exercise, plus I would like to move my Sympraxis Consulting Internet site to SharePoint Online at Office365 at some point, so this is a good first step. (I still have my Sympraxis site hosted with FPWeb in WSS 3.0, believe it or not. It’s good enough for now, frankly.)

It seemed as though this should be a fairly easy process. I’ve got a few sites in a separate Site Collection for the demos, and all I thought I’d need to do is to save them each as a Site Template (actually, a Solution – the Save “Site as Template” item wording doesn’t match the gallery name that it ends up in – the Solution Gallery) and then rehydrate it in SharePoint Online. The way I work in SharePoint’s Middle Tier, I don’t need to activate any wacky features, so how hard could it be?

I already had a Solution saved for my Middle Tier site, so I uploaded that to the Solution Gallery in SharePoint Online and activated it with no problem.

image

It can be pretty easy to forget to activate the Solution, so I’ve highlighted the button above.

Once the Solution was activated, I went to create a new site with it.

image

Hey, this was going well. It was really easy!

WHAM! The easy stage was over.

image

OK, so somehow I’ve got a feature activated in my VM that isn’t activated in my SharePoint Online site. No big deal, right? I can just go and find the {b5934f65-
a844-4e67-82e5-92f66aafe912} feature and activate it for SharePoint Online. But what the heck is the {b5934f65- a844-4e67-82e5-92f66aafe912} feature?

I Bingled the GUID (see my post on using OneNote to get the text from a screen grab for a tip – for some reason you can’t copy the text in the error to the clipboard) and found the answer on Ian Morrish‘s excellent WSSDEMO site.

{b5934f65- a844-4e67-82e5-92f66aafe912} feature

Well, not the actual answer, but something sort of informative. Since the DisplayName is ReviewWordflowsSPD and the Title1 is Routing Workflows – SharePoint 2010, I could reasonably assume that it had something to do with workflows. I compared the two environments and realized that I needed to activate the Wordflows (Aggregated set of out-of-box workflow features provided by SharePoint) Site Collection Feature:

Workflows Feature

Well, maybe this wouldn’t be so bad, after all, I thought. I activated the feature and went to create the site again. WHAM! Out of the fast lane again.

{af6d9aec-7c38-4dda-997f-cc1ddbb87c92} error

This is where I got a little annoyed and tweeted:

Moving existing sites to #Office365 not easy. Feature GUIDs will be my undoing. Looks like af6d9aec-7c38-4dda-997f-cc1ddbb87c92 isn't there.
@sympmarc
Marc D Anderson

and then later

No end user should ever have to look at a GUID or figure out what it means. What's so wrong with words?
@sympmarc
Marc D Anderson

So far, I haven’t been able to figure out what the {af6d9aec-7c38-4dda-997f-cc1ddbb87c92} feature is. The hits I get by searching tell me things about the Help Desk Template from the Fantastic (not so much) 40 templates, but I’ve never had that in any of my environments. One of the hits I got from searching was right back on my own blog (always a delicious irony).

So I’m stuck, and there’s no obvious way to figure out what that feature actually is. The point is that the GUID is pretty uninformative. SharePoint shouldn’t give me such unactionable, vague information. Even if I can find the GUID written up somewhere (as in Ian’s helpful site above), it’s not always obvious what to do with the information.

I’ve talked to quite a few people about the fact that I think one of the critical success factors for Office365 will be portability. What I was trying to do was pretty basic. I wanted to understand how Office365 might work for me if I wanted to use it for hosting my stuff. We all need to be able to move content in and out of The Cloud at will.

This is probably the first thing that any large enterprise would want to do as well. “Hey, let’s get Sandie down in the SharePoint admin pit to copy some of our typical sites over to SharePoint Online and see how they work.” At least, that’s what I’d do if I were a CIO thinking about moving some of my stuff to The Cloud. I’d want to see how easy it was to do something basic. Poor Sandie probably doesn’t have much of a chance of completing the task, though. As CIO, I’d want to know that I can *reasonably* easily move my stuff into the Cloud and back again. This would give me a comfortable feeling that I could trust Office365 with my stuff and not worry about changing my mind (or having my business requirements change it for me) down the road.

I’m pretty sure that I’m going to work out my little problem with good old {af6d9aec-7c38-4dda-997f-cc1ddbb87c92} – after all, I can hit up some of the best SharePoint minds on the planet through the MVP network – but I’m not so sure that Sandie and her CIO will get past these types of things as they look at using Office365. My suggestion to the Microsoft folks is to come up with some really brain dead easy tools to facilitate this sort of thing. (I know for a fact that my friends at MetaVis have a great toolset to enable this, but should I need to work that hard?)

Even better: stop putting GUIDs in front of end users and expecting them to know what to do with them.

Permanent link to this article: http://sympmarc.com/2012/01/10/trials-and-tribulations-migrating-my-demos-site-to-office365/

Jan
09
2012

SPServices v0.7.1ALPHA7 Available for Testing

I posted a new alpha of SPServices v0.7.1 today.logo250x150

Even though I just released v0.7.0 in early December, I’ve been working steadily to get some great new functionality and performance improvements into v0.7.1 as well as to fix some rather obscure bugs.

You can see the details of what is included in this alpha on the download page, but perhaps what will be of widest interest are some significant performance improvements to SPCascadeDropdowns and SPDisplayRelatedInfo. If you use those functions, I’d really appreciate you trying the alpha out and letting me know whether the improvements are noticeable to you. The initial setup time in the form won’t be faster, but the cascading in the page ought to be. (The better tuned your SharePoint farm and the more horsepower you have, the less improvement you are likely to see.)

I’ve also added a new function called SPXmlToJson. With it, I hope to offer a generic XML to JSON conversion utility. The first focus is on the XML returned by GetListItems, but I plan to expand upon it as people request additional capabilities. If you’re into playing with JSON, please take a look and give me your thoughts and suggestions. Be kind and remember that this is just an alpha.

JQuery
Image via Wikipedia

The main reason for getting v0.7.0 (the prior release) out there was to release a version which was compatible with jQuery 1.7.x. As goeth jQuery, so goeth SPServices; the jQuery team doesn’t sit still for long, so I can’t really, either. In fact, jQuery 1.7.1 has already been out for a while and we can see 1.8 on the horizon. As part of the new jQuery releases, there are always some significant performance improvements as well as new capabilities. As with most software, there are also capabilities which are deprecated, which may by removed in the future.

Because of all of these changes to jQuery itself, along with my accompanying changes to SPServices, I would strongly encourage you to try to keep up with the releases as best you can. I know that this can be difficult, especially in large enterprise environments where the release cycles can be complex and time consuming.

Given the constraints that many people probably have when it comes to upgrading SPServices, I’m wondering what a good release cycle would be. There have already been over 2000 downloads of v0.7.0, yet I’m getting near the time when I might want to put v0.7.1 out there. What would work best for you? Fewer releases with more changes or more releases with fewer changes? There are many considerations to this, I know. If nothing else, the documentation can only represent one point in time (I’m loathe to try to keep historical versions; maintenance would be a nightmare). If you are using an older version of SPServices, like say v0.5.8, then the docs are pretty far off for you, as will be my blog posts and articles elsewhere. Let me know what you think!

Enhanced by Zemanta

Permanent link to this article: http://sympmarc.com/2012/01/09/spservices-v0-7-1alpha7-available-for-testing/

Page 1 of 13812345...102030...Last »