QueryWebPart deprecated? | trent | 2016-03-17 20:11 |
Status: Closed | ||
Hi Jon, Thanks for the link. This is what I have/had on my page: visitsWebPart = new LABKEY.QueryWebPart({ schemaName : 'offsite_repository', queryName: 'patient_visit' renderTo: renderElement, showRecordSelectors: true, frame: 'none', buttonBar: {//add custom buttons } }); Looking at your page you linked to, I see the Files browser needs some extra libraries loaded. Do I need to do that to access the QueryWebPart now? .. Ok, looking deeper into the page you linked, I found the following: ${labkey.webPart(partName='Query', showFrame='true', title = 'Module Inventory', schemaName ='core', queryName ='Modules', buttonBarPosition ='top', allowChooseQuery ='true', allowChooseView = 'true')} Is there a way I can still use LABKEY.QueryWebPart (in JavaScript) rather that the above syntax? I integrate custom buttons like so, in the existing code: buttonBar: { includeStandardButtons: false, items: [ { text: 'Row Actions', requiresSelection: true, items: customButtons }, LABKEY.QueryWebPart.standardButtons.views, LABKEY.QueryWebPart.standardButtons.exportRows, LABKEY.QueryWebPart.standardButtons.print, LABKEY.QueryWebPart.standardButtons.pageSize ] } Cheers, Trent |
||