Learn how to set a default view and view priority as well as limiting the number of results returned and how to set a data refresh interval.
- [Instructor] You have a few more options inside of this configure view that I want to call out right now. If I come into configure the view right now, on that first tab you can set a default view and assign a view priority. So I just want to make sure that you understand what that's doing for you. So obviously Set as Default, if I save that, will change the default view, meaning the one with the checkbox, the one that people will see automatically when the first load up the page.
So notice right now that all of these views are listed in alphabetical order. If for whatever reason you want to change that, you can come into configure the view and you can set this as a different view priority. So you probably want your default to be the first one all the time. It's just in this particular case it was first because it started with the letter A. So let me try to force this here. If I just name it Tasks and give it a view priority of 1 and have it set as my default and then Save, then what happens here on my dropdown is that now Tasks is at the top regardless of the fact that it is not in alphabetical order.
So again, just to show you what would happen if I went back into configure view and did not assign it a view priority of one, notice that it would show up in alphabetical order inside of that list. So typically just a best practice to set your default view with a priority of one and then you can arrange your views in any other order that you'd like. So priority one, two, three, four, five for example. You can list out these views in whatever order you prefer.
Let's take about pagination. That's where you have something like down here. So Showing 1 to 7 of 7 entries, and then it gives you this Previous and this Next. Now with seven items, that's probably not enough to paginate, but if you had a lot of documents for example, you would probably want to control how many were returned on each page. So when you go to configure the view, remember we've applied this JSON Display Provider. So when I go to Display, I don't see all of those normal pagination options that I would.
So it's just something to keep in mind that it's a bit of a give and take here. So if you want to control pagination, you're going to need to go back to your Grid View Display Provider, then click on Display, and this is where we would be able to come in and click on Records per page and we could choose for example 5 and then hit Save. And now do you see how I have this nice little one 1 and 2, so I have five that were returned and then the other two now will show up on a second page. Now something else you can do, I want to make sure that you see this when I go into configure view, I don't want you to mix up pagination with the option that we have here under data source.
Data source is limiting the amount of items returned to 1000 in this particular case. If I were to change this number to five and then click Save, it would only show me the first five tasks in that list. Now that also has some value, so I want to make sure that you know that it exists if you just wanted to show like recent items for example, and it is always good to keep this number as low as possible just from the perspective of performance, 'cause it's looking for up to 1000 items, so if there's only seven, then you can kick this number down lower.
The last concept I want to talk about while we're here under App Part is the Configure Data Refresh interval. So if you're using a page as a dashboard, it's not going to update in real time. Now, you can periodically refresh the page yourself, which is fine, but if you'd like for the web part to do that for you, so for example, maybe you want something every 15 minutes. Then you could type in 900. It's in seconds, so you could type in 900 seconds and then Save that, and then that means that every 15 minutes it would refresh that data for you automatically so that you're sure to catch any updates.
So three different things there. Some advanced display options you have. Assigning a default view, a view priority for your views. Pagination, so that you can only return a certain number of results inside of a view to make your page layout look nicer, and then that data refresh interval, just to make sure that you have the most up to date information inside of each view.
- Configuring your first rollup view
- Applying filters to views
- Analyzing data with conditional formatting
- Using web part views
- Creating calculated columns
- Configuring search rollups with managed and crawled properties