Can't uncheck the checkbox in Multi selection Lookup in AX2009

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

Actually when i uncheck the checkbox in the lookup, _mark parameter in the edit method always get set to true so this makes me to uncheck the check box in lookup.Is there any way to set the parameter to false?

My understanding of your previous thread Multiselection in lookups in AX2009 is that you don’t actually want a lookup (because you said: “Actually i need only selected records to be get displayed in an infolog and not in the string edit field.”).

Why are you again talking about a lookup? Isn’t the information in your previous thread correct? If so, please update it there.