开发者

A minimal code webpart that displays a single picked item from a list

I'm not sure this is possible, but figured I´d give it a shot. First a few pre-requeistes and environment details:

  • I´m using SharePoint 2010, SharePoint Designer 2010, VS 2010
  • I want to create as little code as possible, preferably, create it all via UI or Designer
  • use out of the box components as much as possible

Here is What I want to do:

  • Have a custom list with custom columns (easy part)
  • Create a webpart with an edit interface to select a s开发者_StackOverflow社区ingle item from this list
  • This same webpart when visible would display the contents of this selected item in a given layout

I know I can do this creating a custom web part and code it all from scratch, I guess my main question is, is there a way to do this with less code and more out of the box components in SP2010. If not, I guess I'm left with lots of C# code.

Any tips, or pointers in this direction will be most welcome. Thanks in advance.


I think what you're looking for is the Data Form Web Part.

Unfortunately, I can't find any good tutorials for 2010, but hopefully the steps should be similar to setting it up in 2007.


Thanks all for the update. In the end, i had to create quite a bit of code to get this to work:

  • created a web part that enumerates the content type,
  • creates a light box that has a picker
  • then stores the ID of the content in a column

Not the easiest way,but the only way I could get it working. Thanks again!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜