How to "refresh" a list

LabKey Support Forum
How to "refresh" a list jenica abrudan  2023-10-12 12:56
Status: Active
 

What is the best way to truncate and re-populate a list using JavaScript. Can that be done without LABKEY.Query.executeSql ?

 
 
mohara responded:  2023-10-12 13:55

Hi Jenica:

One option would be to use Query.truncateTable(), then Query.insertRows(). You would not typically use executeSql(), which is an action more for viewing/querying data, not editing it.

I'm going to move this question to your private support portal, where we can give more customized assistance about the context of your question and use case.

Thank you for reaching out,

--Molly