问题描述:
资源容器里面嵌套表单,表单中是标签页嵌套资源容器,资源容器绑定表单,怎么调api去打印表单数据?
解决方案:
嵌套两层资源容器,先获取第一层资源容器,再获取第二层资源容器,请参考:
const that = this.Api.getElement('frame')
try {
console.log('that:', that, that.Api)
const tow = that.Api.getElement('frame2')
console.log('tow:', tow)
tow.Api.downloadPdf()
} catch(err) {
console.log('err:', err)
}
that.Api.downloadPdf()