Delete All Button Jon (LabKey DevOps)  2015-07-07 11:24
Status: Closed
 
Hi Cheryl,

There are two ways to get rid of the buttons. You can either:

A.) Edit the XML Metadata on the table/query via the Schema Browser and set the includeStandardButtons option to "false".

or

B.) You can use Javascript that renders the Query Web Part to set the includeStandardButtons to "false".

The first option removes all the standard buttons whenever that web part renders. The second option just removes it off of the one instance.

Now, if you remove the standard buttons, you will have to then insert your own buttons if you wish for some of the functionality to still be there, like having views or an export.

For more information and code samples, please review the following information below:

https://www.labkey.org/wiki/home/Documentation/page.view?name=customButtonBars
https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.QueryWebPart.html#constructor

Regards,

Jon