unchecked selected field on form

hello Guys,

I am trying to uncheck a field on a form by button, I wrote this code on form but I am afraid  it will uncheck all field's value on the table, but I just want to uncheck and empty only selected row's field How should I write this code?

I  created button and Wrote on clicked method:

VendPaymentPlanLineByDue tempVendPaymentPlanLineByDue,__VendPaymentPlanLineByDue;

super();
ttsbegin;
if(__VendPaymentPlanLineByDue.LedgerJournalId !="") 
{
select forupdate tempVendPaymentPlanLineByDue where tempVendPaymentPlanLineByDue.RecId == __VendPaymentPlanLineByDue.RecId;


tempVendPaymentPlanLineByDue.Sended = NoYes::No;
tempVendPaymentPlanLineByDue.VendPaymenytPlanFilePath = "";   // only the red fields I want to get empty on selected row
tempVendPaymentPlanLineByDue.doUpdate();
}
ttscommit;

Related
Recommended