Initially created a checkbox in form design and dragged some fields from datsource table say table1 in form1. An edit method is created and used the map concept for multiple selection of records in the grid and in design node the datasource and data method property of checkbox is changed to table1 and edit method.
Actually this form is mapped to an edt and used as a lookup in another form2.Actually I can able to multiselect the checkbox in lookup but I can’t able to uncheck the checkboxes in lookup.Can anyone suggest me a solution to solve this.
My edit method coding is (form1 → datasource → table1)
edit boolean editmark(boolean _set,ss_temptable _temptable,boolean _mark)
{
if ( _set)
{
if ( !_mark)
{
if (marked.exists( _table1.RecId))
{
marked.remove(_table1.RecId);
}
}
else
{
marked.insert( _table1.RecId, _table1.SalesOrigin);
}
}
return marked.exists(_table1.recid);
}
thanks in advance