Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 Google 表格中的数据加载到 App Maker 数据源中。现在我对原始工作表进行了更改,并希望导入新数据并覆盖旧数据,或者只是清除现有数据并从工作表中导入新数据。我在文档中看不到任何方法。
我在需要时使用以下命令清除驱动表:
app.datasources.DatasourceName.unload();
编辑:
这将清除客户端上的表。要删除驱动器表中的所有记录,请使用以下服务器脚本:
var records = app.models.ModelName.newQuery().run(); app.deleteRecords(records);