设置关联视图ID
FieldDescriptor.LinkView(属性)
说明
可读写
设置或读取单向关联或双向关联字段的关联视图的id
返回值
String
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const field = await app.Sheets(1).FieldDescriptors(2)
const prop = await field.Link
prop.LinkView = await app.ActiveView.Id
field.Apply()
console.log(await prop.LinkView)
}
脚本编辑器 示例
javascript
function main() {
const field = Application.Sheets(1).FieldDescriptors(2)
const prop = field.Link
prop.LinkView = ActiveView.Id
field.Apply()
console.log(prop.LinkView)
}
main()