ppbb123 Posted April 1, 2015 Report Share Posted April 1, 2015 When there are multiple records in the results page, there will be a navigation with message "Record 1 of X" in the details page. But if there is only one record in the results page, there will be no navigation. I wonder to know how to show the message "Record 1 of 1" in the details page. Quote Link to comment Share on other sites More sharing options...
HongTaiLang Posted April 1, 2015 Report Share Posted April 1, 2015 Hi, I could not find a standard setting for this. You can add id around paging message "Record %r of %t", add another message "Record 1 of 1" with a different id in the details page, use JS code to hide the "Record 1 of 1" message when default paging message displays, show the "Record 1 of 1" message when there is no default paging message. 1. Add id around paging message in the Localization <span id="paging">Record %r of %t</span> 2. Add another message "Record 1 of 1" with a different id in the details page. Hide the message as a default. For example: <div align="center" id ="pageNumber1" style="display:none;" class="cbFormNavigationCell cbFormNavigationMessage"> <span>Record 1 of 1 </span> </div> 3. JS code to display the previous message when id= "paging" id is not found. <script> if (!document.getElementById("paging")) { document.getElementById("pageNumber1").style.display = 'inline'; } </script> Quote Link to comment Share on other sites More sharing options...
HongTaiLang Posted April 1, 2015 Report Share Posted April 1, 2015 By the way, this method is not so perfect because it is hard to center the message. The form container size is dynamic. If the DataPage size is fixed with <div width = "****px"> in the Header, and </div> in the Footer. The style of the message can be set to the center. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.