ViewShare.CanAddRecords(属性)
说明
可读写 返回当前分享视图高级权限中,是否允许添加记录
返回值
Boolean
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const viewShare = await app.Sheets(1).Views(1).ViewShare
// read
const canAddRecords = await viewShare.CanAddRemoveRecords;
// write
viewShare.CanAddRemoveRecords = true;
}
脚本编辑器 示例
javascript
function main() {
const viewShare = Application.Sheets(1).Views(1).ViewShare
// read
const canAddRecords = viewShare.CanAddRemoveRecords;
// write
viewShare.CanAddRemoveRecords = true;
}
main()