{"id":15376,"date":"2016-06-08T11:39:44","date_gmt":"2016-06-08T03:39:44","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=15376"},"modified":"2017-12-14T14:36:48","modified_gmt":"2017-12-14T06:36:48","slug":"paging-control-4-3-2","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/paging-control\/paging-control-4-3-2\/","title":{"rendered":"Paging Control (4.3.2)"},"content":{"rendered":"\n<p class=\"left-bar\">This article applies to the Paging Control in versions 4.3.2 and earlier of P2 Explorer. For help on the latest version, see <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/paging-control\/\">Paging Control<\/a>.<\/p>\n<h3 class=\"page-subheading\">Overview<\/h3>\n<p class=\"intro-text\">The Paging Control allows page designers to split up large amounts of tabular data into smaller chunks, or pages. This allows\u00a0the user to move through those pages to view the data in a table. This is a useful way of displaying many rows of tabular\u00a0data in a small space.<\/p>\n<p class=\"note\">Note: For this component to work with a dataset, <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/creating-a-dataset-datasource\/how-to-write-a-dataset-query\/how-to-write-a-paged-query\/\">paging must be enabled<\/a> on the dataset.\u00a0<\/p>\n<p class=\"intro-text\">The following screenshot shows a Paging Control being configured:<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingconfig1.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3735 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingconfig1-800x370.png\" alt=\"\" width=\"800\" height=\"370\" \/><\/a><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Page Number<\/strong>:<\/td>\n<td>The number that is published when the user clicks through the page control. This is effectively the page of data that the user is viewing. This event is a parameter of the paging-enabled dataset.<\/td>\n<\/tr>\n<tr>\n<td><strong>Page Size<\/strong>:<\/td>\n<td>The\u00a0number of rows of data to display in the table.\u00a0This event is a parameter of the paging-enabled dataset.<\/td>\n<\/tr>\n<tr>\n<td><strong>Total Record Count<\/strong>:<\/td>\n<td>The total number of records in the dataset, rounded up. This is an attribute of the paging-enabled dataset.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 class=\"page-subheading\"><span id=\"Tutorial\">Tutorial<\/span><\/h3>\n<div>\n<p class=\"intro-text\">The Paging Control is a useful component that enables users to move through pages of data displayed in a table. However it will only work on datasets that have been enabled for paging.\u00a0This is done by modifying the dataset query in P2 Server. When the dataset is paging enabled, the configuration panel for the dataset will display an addition section \"<strong>Query Paging<\/strong>\".<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/paged1.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3736\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/paged1-800x276.png\" alt=\"paged1\" width=\"800\" height=\"276\" \/><\/a><\/p>\n<p class=\"intro-text\">The important configuration parameters to note for paged datasets are:<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"160\"><strong>Total Row\u00a0Count<\/strong>:<\/td>\n<td>The total number of records in the dataset, rounded up. This is always an event that publishes an attribute of the paging-enabled dataset. This event should only be set for page enabled datasets.<\/td>\n<\/tr>\n<tr>\n<td><strong>Enable Server Paging<\/strong>:<\/td>\n<td>Select this check box to indicate that you want to take advantage of dataset paging.<\/td>\n<\/tr>\n<tr>\n<td><strong>Page Number<\/strong>:<\/td>\n<td>The page number to display when the display is first opened.\u00a0<\/td>\n<\/tr>\n<tr>\n<td><strong>Page Size<\/strong>:<\/td>\n<td>The\u00a0number of rows of data to display in the table.\u00a0<\/td>\n<\/tr>\n<tr>\n<td><strong>SortBy<\/strong>:<\/td>\n<td>The\u00a0name of the column in the dataset by which to sort the table. Columns containing text will sort alphabetically, those containing numbers will sort numerically, and those containing dates will sort chronologically.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"intro-text\">In this tutorial, we\u2019ll look at adding a Paging Control component that will display pages of data in a large dataset table.<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingshow.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3737\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingshow-800x468.png\" alt=\"pagingshow\" width=\"800\" height=\"468\" \/><\/a><\/p>\n<p class=\"intro-text\">Let\u2019s go through this process, step-by-step.<\/p>\n<hr \/>\n<h3 class=\"page-subheading\"><span id=\"Step_by_Step_Displaying_a_DatasetTable_on_a_Page\"><span id=\"Step_by_Step_Creating_a_Pivot_Table_Driven_by_a_Range_Picker_and_Entity_Selector\"><span id=\"Step_by_Step_Creating_a_Time_Menuthat_Drives_a_LineChart\">Step by Step: Displaying a Paging Control for a Large Dataset\u00a0Table on a Page\u00a0<\/span><\/span><\/span><\/h3>\n<p class=\"intro-text\">Before you start, open a new tab in Explorer and click the \u201cCreate a New Page in Studio Mode\u201d thumbnail. Choose the <a title=\"Grid Layout\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/grid-layout\/\" data-slimstat-tracking=\"true\" data-slimstat-callback=\"true\">grid<\/a>\u00a0layout \u2013 you can adjust the rows and columns if you like but it\u2019s not important for this exercise.<\/p>\n<p class=\"intro-text\">You will need to adjust the configuration to suit your data at your site.<\/p>\n<p class=\"intro-text\"><strong>Step 1. Add the\u00a0source data<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingdata.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3738\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingdata-800x510.png\" alt=\"pagingdata\" width=\"800\" height=\"510\" \/><\/a><\/p>\n<\/div>\n<div>\n<p class=\"intro-text\">As the aim here is to display tabular data, the first thing we want to do is <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/add-data\/\" data-slimstat-tracking=\"true\" data-slimstat-callback=\"true\">add\u00a0the data<\/a> we want to display.\u00a0<\/p>\n<p class=\"intro-text\">The important thing to note here is that <strong>the dataset must be enabled for paging<\/strong>. This is done by modifying the dataset query in P2 Server to enable it for paging.<\/p>\n<ul class=\"intro-text\">\n<li>Add the <em>MiningDataPaged\u00a0<\/em><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/add-data\/add-a-dataset\/\" data-slimstat-tracking=\"true\" data-slimstat-callback=\"true\">dataset<\/a>, and configure it as follows:\n<ul class=\"intro-text\">\n<li>Name: MiningDataPaged1<\/li>\n<li>Query: (Text) MiningDataPaged<\/li>\n<li>Total Row Count: rowCount<\/li>\n<li><strong>Enable Server Paging<\/strong>: <em>(select this check box)\u00a0<\/em><\/li>\n<li>Sortby: (Text) <em>(leave this blank)<\/em><\/li>\n<li>PageNumber: (Event) pageNum<\/li>\n<li>PageSize: (Event) pageSize<\/li>\n<li>StartDate:\u00a0(Datetime) 01\/04\/2015 12:00:00 AM<\/li>\n<li>EndDate: (Datetime) 30\/04\/2015 12:00:00 AM<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<blockquote>\n<p><strong>Note<\/strong>: The <strong>Enable Server Paging<\/strong> check box only appears on datasets that are enabled for paging. If this check box is not present, your dataset cannot be paged. You will first need to modify it appropriately in P2 Server.<\/p>\n<\/blockquote>\n<p class=\"intro-text\"><strong>Step 2.\u00a0\u00a0Add the Paging Control\u00a0component to the page<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingdrag1.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3739\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingdrag1-800x379.png\" alt=\"pagingdrag\" width=\"800\" height=\"379\" \/><\/a><\/p>\n<p class=\"intro-text\">Drag and drop the Paging Control\u00a0component\u00a0onto a grid cell.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 3. Configure the Paging Control component<\/strong><\/p>\n<\/div>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingconfig2.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3740\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingconfig2-800x370.png\" alt=\"pagingconfig\" width=\"800\" height=\"370\" \/><\/a><\/p>\n<p class=\"intro-text\">Configure the Paging Control component as follows:<\/p>\n<ul class=\"intro-text\">\n<li>Page Number:\u00a0pageNum<\/li>\n<li>Page Size: pageSize<\/li>\n<li>Total Record Count: rowCount<\/li>\n<\/ul>\n<p class=\"intro-text\">These parameters must all be entered as events. We will create defaults for them later in this tutorial.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<div>\n<p class=\"intro-text\"><strong>Step 4. Choose a Dataset to Show along with the Paging Control<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingshowdata.png\" rel=\"lightbox-6\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3741 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingshowdata-800x426.png\" alt=\"\" width=\"800\" height=\"426\" \/><\/a><\/p>\n<p class=\"intro-text\">Drag and drop a <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/show-dataset\/\" data-slimstat-tracking=\"false\" data-slimstat-callback=\"true\">Show Dataset<\/a> component onto the canvas, and configure it as follows:<\/p>\n<ul class=\"intro-text\">\n<li>Dataset Name: MiningDataPaged1<\/li>\n<\/ul>\n<\/div>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 5. Add Event Defaults<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingevents2.png\" rel=\"lightbox-7\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3742 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingevents2-800x468.png\" alt=\"\" width=\"800\" height=\"468\" \/><\/a><\/p>\n<p class=\"intro-text\">Click the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/events\/\" data-slimstat-tracking=\"false\" data-slimstat-callback=\"true\">Event Defaults<\/a> button on the Studio toolbar, and add the following events:<\/p>\n<ul class=\"intro-text\">\n<li>Add an event called \u201cpageNum\u201d with a Number value of 1<\/li>\n<li>Add an event called \u201cpageSize\u201d with a Number value of 10<\/li>\n<\/ul>\n<p class=\"note\"><strong>Note<\/strong>: You do not need to add an event default for\u00a0rowCount, as this is automatically published by the dataset.<\/p>\n<div>\n<p class=\"intro-text\"><strong>Step 6. All done!\u00a0\u00a0<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingshow.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3737\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/pagingshow-800x468.png\" alt=\"pagingshow\" width=\"800\" height=\"468\" \/><\/a><\/p>\n<p class=\"intro-text\">Great work! You now have a fully functioning Paging Control that displays the tabular data in pages.<\/p>\n<ul class=\"intro-text\">\n<li>Click the preview\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/preview.png\" rel=\"lightbox[1419] lightbox-9\" data-slimstat-tracking=\"true\" data-slimstat-callback=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2896\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/preview.png\" alt=\"preview\" width=\"13\" height=\"14\" \/><\/a>\u00a0button on the Studio toolbar\u00a0to see what your page\u00a0will look like in run-time.<\/li>\n<li>Click through the pages to get a feel for the behaviour of the control.<\/li>\n<li>In the settings, change the page number and size to see what happens.<\/li>\n<\/ul>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1348\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save.png\" alt=\"save\" width=\"48\" height=\"53\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-22x24.png 22w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-33x36.png 33w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-43x48.png 43w\" sizes=\"auto, (max-width: 48px) 100vw, 48px\" \/>\u00a0Don\u2019t forget to <a title=\"Saving Your Page\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-create-your-first-page\/saving-your-page\/\" data-slimstat-tracking=\"true\" data-slimstat-callback=\"true\">save your page<\/a>!<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Paging Control allows page designers to split up large amounts of tabular data into smaller chunks, or pages. The allows\u00a0the user to move through those pages to view the data in a table. This is a useful way of displaying many rows of tabular\u00a0data in a small space. For this component to work with a dataset, paging must be enabled on the dataset. This article describes how to configure the paging component, and applies to version 4.3.2 and earlier of P2 Explorer.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/paging-control\/paging-control-4-3-2\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":4652,"parent":1429,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[11],"tags":[445],"class_list":["post-15376","page","type-page","status-publish","has-post-thumbnail","hentry","category-tutorial","tag-paging","Product-ex"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/15376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=15376"}],"version-history":[{"count":0,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/15376\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/1429"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/4652"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=15376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=15376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=15376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}