1 minute read
Laura Rogers over at EndUserSharePoint.com has a new series on the Data View Web Part (DVWP). All of her posts are great, but the Data View Web Part, The Basics – Multiple Edit Forms one showed me something I didn’t know that I could do with SharePoint Designer just by making some dialog box choices: add editing links.
First, check out her post above to find out how to display a multiple item form. The part that really caught my eye, though, was the second section about the Editing tab. Somehow I’ve never noticed that tab was even there. I’ve accomplished what it lets you do by writing my own XSL, and it isn’t horribly hard, but if Designer will let you do this without any work, why not?
First, add a plain old multiple item view DVWP to your page. Yes, that’s a view, not a form. Then, on the Common Data View Tasks, click Data View Properties, and go to the Editing tab. There you can decide if you’d like to:
- Show edit item links
- Show delete item links
- Show insert item link
Depending on which you select, you’ll see something like the screenshot below (thanks for the image, Laura). Each link lets you take actions on the items and save your changes right in the existing form (albeit with a browser refresh). No need to visit EditForm.aspx.
From here, you may decide to style the links differently, use different words, or make the links images rather than just text, but you’ve got a nice, full featured multiple item edit form in just a few minutes, tops! BTW, this UI choice is much safer than the Datasheet view, as your users have to click save once they’ve made their changes or they can use the ever-handy cancel.