possible to set page size with an embedded QWP?

LabKey Support Forum (Inactive)
possible to set page size with an embedded QWP? Ben Bimber  2010-08-06 11:40
Status: Closed
 
I'm loading a QWP in a custom HTML view using code along the lines of below. Can I set the page size in javascript?

A second comment: quite often when we embed a QWP, we have a consistent set of params to set. Basically we take away anything that would allow the user to alter records or would expose anything that could give them UI to take them somewhere to alter records. I realize we're supposed to handle permissions by placing lists in different folders and setting folder permissions accordingly, but this frequently breaks down or would result in an impractical amount of folders (ie. practically one per table). In this case the user needs to be able to insert records, not edit records, read a subset of records, but not read all records. Controlling the UI such that the user never is exposed to anything that allows them to do inappropriate things is working well enough, since we dont have high enough security concerns over this particular data. However, it's not always easy to prevent the UI from giving links to inappropriate areas (like navtrails giving links to the schema browser).

Below is how we're loading this QWP:

    new LABKEY.QueryWebPart({
        renderTo: 'employeeQWP',
        dataRegionName: 'employeeQWP',
        title: 'List of WNPRC Staff',
        schemaName: 'lists',
        queryName: 'employees',
        viewName: 'No Personal Info',
        buttonBarPosition: 'top',
        showRecordSelectors: true,
        showInsertNewButton: false,
        showDeleteButton: false,
        showUpdateColumn: false,
        showDetailsColumn: false,
        allowChooseQuery: false,
        allowChooseView: false
    });
 
 
kevink responded:  2010-08-06 12:39
You can limit the page size with by adding the 'maxRows' parameter to the QueryWebPart config.

As far as re-using a common set of properties, you could do something like:

Ext.applyIf({schemaName: 'lists', queryName: 'employees'}, commonConfig);