LABKEY.QueryWebPart.standardButtons documentation is out of date

LabKey Support Forum
LABKEY.QueryWebPart.standardButtons documentation is out of date Will Holtz  2018-06-08 10:18
Status: Closed
 

It appears that some of the LABKEY.QueryWebPart.standardButtons no longer work on v18.1.

<div id="ExampleDiv" />
<script>
new LABKEY.QueryWebPart({
        renderTo: 'ExampleDiv',
        schemaName: 'core',
        queryName: 'users',
        containerPath: '/',
        buttonBar: {
            items:[
              LABKEY.QueryWebPart.standardButtons.insertNew,
              LABKEY.QueryWebPart.standardButtons.pageSize
            ]
        },
 });
<script/>

Results in a message at the top of the grid, "WARNING: button bar configuration contains reference to buttons that don't exist. Invalid original text: insert new, paging."

-Will

 
 
Jon (LabKey DevOps) responded:  2018-06-15 15:29
Hi Will,

I tested this back to 17.2 and it appears the insertNew hasn't worked since then. However, we had changed how we did the insertNew functionality to where it was layered with an individual row insert and a bulk insert, so I'm suspecting that this may have changed things.

The paging was changed as well, but sometime after 17.2.

I'll setup an investigative bug to confirm what needs to be changed here. Either our Javascript docs and other associated docs need to be revised with the correct information if these features were just changed or we will need to fix this in the code.

Thank you for your patience.

Regards,

Jon
 
Jon (LabKey DevOps) responded:  2018-06-15 15:59
 
jill payne responded:  2019-08-23 04:54
Status: Active
Hi everyone,

Just checking to see if there was an update on this one? I'm running into this as well as I try to customize the button bar on a Query Web Part I'm setting up...

Thanks,
Jill
 
Jon (LabKey DevOps) responded:  2019-08-23 09:10
Status: Closed
Hi Jill,

There doesn't appear to be any updates. I'll have this checked with our developers.

Regards,

Jon
 
Jon (LabKey DevOps) responded:  2019-09-25 15:18
Hi Everyone,

The bug https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=34562 has been resolved and verified, but there have been some changes made for 19.3

The fix here did the following:

1. Removed pageSize from the list of supported options
2. Code changes were made to be tolerant of undefineds being passed in.
3. Charts were added in.

In relation to the example that was used in the original post however isn't a good one to use though since the SiteUsers table that the above call is making doesn't utilize your typical Insert New button, but rather directs a user to a special Add Users page, which is why if you try to use the code example above, it will still generate an error message. That said, if you were to use a different table to view, such as a list, errors will not appear when the grid renders.

Regards,

Jon