Adobe Livecycle设计器Javascript计算
问题描述:
我的if语句不适用于设置为在Adobe Livecycle Designer中计算的数字字段,我无法弄清楚。我所有的字段名都是准确的,并且这些字段被设置为数字。它保持显示值0.Adobe Livecycle设计器Javascript计算
任何帮助或指导表示赞赏。
if (RadioButtonList.btn2.selectedIndex == 0 || RadioButtonList.btn4.selectedIndex == 0) {
this.rawValue = ((Table3.Row1.Cell3 * NumericField1)/Table3.Row1.Cell4);
} else if (RadioButtonList.btn1.selectedIndex == 0 || RadioButtonList.btn3.selectedIndex == 0) {
if (DropDownList1.rawValue === "Concierge") {
this.rawValue = ((Table3.Row1.Cell3 * NumericField1) * 0.06);
}
if (DropDownList1.rawValue != "Concierge" && DropDownList1.rawValue != "") {
this.rawValue = ((Table3.Row1.Cell3 * NumericField1) * 0.04)/Table3.Row1.Cell4;
}
} else {this.rawValue = 0;}
答
如果问题仍然存在,我建议你如下: 选择单选按钮列表和对象调色板 - >绑定选项卡验证您有每个单选按钮值。 然后重写你的代码看起来它与此类似:
if (RadioButtonList.rawValue == 2 || RadioButtonList.rawValue == 4) {
this.rawValue = ((Table3.Row1.Cell3 * NumericField1)/Table3.Row1.Cell4);
}
else if (RadioButtonList.rawValue == 1 || RadioButtonList.rawValue == 3) {
if (DropDownList1.rawValue === "Concierge") {
this.rawValue = ((Table3.Row1.Cell3 * NumericField1) * 0.06);
}
if (DropDownList1.rawValue != "Concierge" && DropDownList1.rawValue != "") {
this.rawValue = ((Table3.Row1.Cell3 * NumericField1) * 0.04)/Table3.Row1.Cell4;
}
}
else {
this.rawValue = 0;
}
至于每个按钮我选择了一些按钮的值。