Retain a K2 List View Page Number Using jQuery

K2 doesn’t provide out-of-the-box functionality to retain the list view page number after a list is refreshed. Whenever a user edits and saves a record on any given page, the user will then be navigated back to first page of the list view.  We can overcome this frustrating issue by using a combination of jQuery and view rules.

This article will take you through a step-by-step solution on how to retain the list view page number after a list refresh with the help of jQuery.

K2 Automated Testing Software

BenchQA allows full test automation of K2, including fully automated K2 SmartForms and K2 Workflow testing. It promotes test driven development for K2 and ensures continued quality assurance for K2 solutions. Easily apply changes to test cases to accommodate changes to K2 apps and ensure all apps are regression tested to avoid defects and assure continuous quality.

DOWNLOAD NOW

BenchQA Logo

 

Free K2 Five Upgrade Review

 

Registration is required to view the full article. Click here to register for FREE access to Synergy resources…
 

Step 1

Start by editing the SmartForm – select the view and give an appropriate name to the list view using the Properties:

Step 2

Add four data labels to the list view:

Note – It is best practice to use the same name for the data labels as have been used in the scripts.  However, if you wish to change the data label names, you will need to ensure that you also update the data label names in the scripts. Each of the data labels should have a unique name, this is to enable you to have multiple list views on the form and to provide functionality to view ‘all lists’.

Please login or register to access the full article.

You may also like

Please complete the below form and a member of the Velocity IT team will call you back.



Please tell us about your automation needs

START HERE