Skip to content

List components are rendered with 3 rows -> Portals 9.7.4.6 -> app.bundle-4b56564cd3.js #1158

@AndrewElans

Description

@AndrewElans

Ref. learn.microsoft.com/en-us/power-pages/configure/list-attributes-relationships stating:

Page Size -> An integer value that specifies the number of records per page. This field is required. Default: 10

Problem: Currently lists are always rendered with 3 rows, list settings in the Portal Managemenet App are ignored since the pagesize is hardcoded to 3 rows as explained in the code snippet below.

Portal version: 9.7.4.6
Dataverse version: 9.2.25042.222

// from app.bundle-4b56564cd3.js
(function (be) {
    // ...
    o.prototype.load = function (e, t, a, n, i, V, r) {
        // ...
        var f = B.children(".view-pagination");
        // ...
        f.data("pagesize", "3"); // Why is this hardcoded to "3"
        var S = f.data("current-page");
        if (S == null || S == "") {
            S = 1
        }
        n = n || Q.getCurrentFilter();
        a = a || S;
        var E = f.data("pagesize");
        if (E == null || E == "") { 
            // this never evaluates to true 
            // due to the above part f.data("pagesize", "3") 
            E = 10
        }
        // ...    
    }
    // ...
}
)(jQuery);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions