Hello,
I have added a new button in PurchTableListPage form that opens a new form for a new functionnality.
It works successfully but i have a problem while selecting a record from the list page: i want that when selecting the record without checking it and i click the button, it opens the form.
this problem is because i have written in the clicked method of the button this code:
void clicked()
{
Args args= new Args();
FormRun formRun;
PurchTable purchTable;
Common Common ;
PurchId purchId;
purchTable = PurchaseTable_DS.getFirst(true);
while(purchtable)
{
if (purchTable.PurchId) // it's because of this condition
{
args.name(formStr(PurchLinePacking));
args.caller(this);
args.record(purchtable);
formRun=classFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait();
formRun.detach();
}
purchTable = PurchaseTable_DS.getNext();
}
}
can any one help me how to correct it?
Best Regards