我在 Grid 中的表单复选框控件上使用编辑方法,数据源是一个视图。当我们单击复选框时,_set boolean 中的参数未设置为 true。编辑方法中的代码如下。
edit NoYes markNow(
boolean _set,
VendInvoiceProdReceiptNotInvoicedView _vendInvoiceProdReceiptNotInvoicedViewLocal,
NoYes _markNow)
{
if (_set)
{
if (_markNow)
{
matchedReceipts.insert(_vendInvoiceProdReceiptNotInvoicedViewLocal.VendPackingSlipJourRecId, _vendInvoiceProdReceiptNotInvoicedViewLocal.PackingSlipId);
}
else
{
if (matchedReceipts.exists(_vendInvoiceProdReceiptNotInvoicedViewLocal.VendPackingSlipJourRecId))
{
matchedReceipts.remove(_vendInvoiceProdReceiptNotInvoicedViewLocal.VendPackingSlipJourRecId);
}
}
this.refresh();
}
return matchedReceipts.exists(_vendInvoiceProdReceiptNotInvoicedViewLocal.VendPackingSlipJourRecId) ? NoYes::Yes : NoYes::No;
}
你能帮我解决这个问题吗?