Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Adding page number in Opportunity form

(0) ShareShare
ReportReport
Posted on by 5,056

Can we add Page number in Opportunity form if yes how ? Actually we have booking forecast sub grid in Opportunity form where we have more data we are having only arrow mark . is that possible to keep number in between arrow mark

*This post is locked for comments

  • Verified answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Adding page number in Opportunity form

    Please try below options

    1.Create "Page No" in the Associated view of the subgrid

    2.Use the below logic to get the total record count of the grid 

    //getSubGridRecordCount:
    function()
        {
            var BookingforecastSubGrid = Xrm.Page.getControl("bookingforecast").getGrid();
            var TotalRecordCount = BookingforecastSubGrid.getTotalRecordCount();
        }
    3. Get the Total record displayed per page in the subgrid
     
    No-of-Records-Displayed.PNG
     
    4. Divide the TotalRecordCount /Number of Rows
     
    var TotalRowsPerPage = TotalRecordCount /NumberOfRows;
     
    5. Write your script logic to increment the PageNo Upon click on the Subgrid pagination button. You can find the pagination icon id from the Developer tool.
     
    Hope this might be helpful, If this works for you pls mark it as verified.
  • sandeepc Profile Picture
    sandeepc 5,056 on at
    RE: Adding page number in Opportunity form

    But in booking forecast subgrid is not showing page number ,just showing arrow mark..can we add page number using script if yes how? As it is important. Pls reply

  • Verified answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Adding page number in Opportunity form

    Latest version by default it gives the page number in the subgrid.

    Subgrid-PAgeNo.PNG

  • sandeepc Profile Picture
    sandeepc 5,056 on at
    RE: Adding page number in Opportunity form

    Any suggestions will b make as verified

  • sandeepc Profile Picture
    sandeepc 5,056 on at
    RE: Adding page number in Opportunity form

    can it be changed to page 1,2,3….

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,287 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans