The difference between web parts and lists

Did you try adding another web part to a page and it displays the same data as another web part on the page? Here is the answer.

As part of my habit of posting in this site an answer for any question I see more than once in the forums, I want to share with you an explanation I use in the forums to let sharepoint beginners realize what is the difference between a web part and a list.

The confusion sounds like this:
I’m a newbie to the SharePoint world so if this is a really amateur question, you know why. I am currently tasked with setting up the SharePoint site for my department. I have tried to put two instances of the Links web part on the top-level of my site. It will allow me to do this but when I make a change to one of the web parts the change also occurs in the other Links web part.” (taken from an msdn forum post)

To which I reply:
You are confusing “web parts” and “lists
A “web part” is a mechanism to display data, while a “list” is like a small database – a mechanism to store data.

What you did, is have one list (links, or contacts) and two web part displaying the same list – same data.

If you want two different sets of data then the easy way would be to create another list, and add a web part to look into that list.

Another option is to create a field in the list by the name (for example) “show in web part 1” of type boolean, and then configure the two webparts that show the same information to show based on that field (this method is known as a filter).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s