我之前问过一个类似的问题,但是该解决方案不再适用于我的应用程序,我需要单击按钮以在表(failuretable)中创建一个新行(FailureInstance),并且我需要它用来自字段的数据填充三个单元格在其他地方填写。这是我的代码:form1.failuretable.AddFailureButton::click - (JavaScript,客户端)
xfa.host.messageBox("Failure Recorded and Added To Table Below. Please Continue Filling Out the Form Until All Failures Have Been Recorded. Then Please Save and Submit the Form.", "Continue/Save/Submit", 3);
if (xfa.host.version < 8) {
xfa.form.recalculate(1);
}
var newRow = failuretable._FailureInstance.addInstance(1);
newRow.FailureCode.rawValue = form1.FailureType.rawValue;
newRow.Location.rawValue = form1.CellLocation.rawValue;
newRow.Comments.rawValue = form1.AdditionalComments.rawValue;
现在这甚至没有为我的表创建一个新行......感谢任何帮助!