Edit method Set parameter is not setting to true in check box control

708 Views Asked by At

I am using edit method on a form Check box control in a Grid and data source is a view. The parameter in _set boolean is not setting to true when we clicked on the check box. The code in the edit method is as follows.

 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;
    }

Could you please help me with this.

1

There are 1 best solutions below

0
venkat pasumarti On

Edit methods cannot be used on top of Views as data source, Use regular table as data source.