showInsertNewButton in QWP does not toggle Bulk Import

LabKey Support Forum (Inactive)
showInsertNewButton in QWP does not toggle Bulk Import Jon (LabKey DevOps)  2017-03-28 17:43
Status: Closed
 
Hi Will,

We added a new option for 17.2, which is to have a showImportDataButton. This will allow you to hide the Bulk Import button, so you can hide inserting new things by doing both:

<div id="MyQuery" />
<script>
new LABKEY.QueryWebPart({
        renderTo: 'MyQuery',
        schemaName: 'lists',
        queryName: 'MyList',
        showInsertNewButtonL false,
        showImportDataButton: false,
        buttonBar: {
              includeStandardButtons: true,
        }
    });
</script>

I've tested this on Trunk and confirmed that it does work.

Regards,

Jon