Greeting
i have an issue i want add ItemId to PurchLine directly depending on my query
the query is work and it's bring ItemId but the problem is not add it on PurchLine
so here i create button on PurchTable

here's button

and this is my code on my created button
void clicked()
{
InventTable invTable ;
while select * from invTable
where invTable.NameAlias ==Reference_VendorRef.text() &&
invTable.PrimaryVendorId ==PurchTable_OrderAccount.text()
{
PurchLine_ItemId.setFocus();
PurchLine_ItemId.text(invTable.ItemId);
}
super();
}
and this is reference used in my code

so can you please help me to how fill PurchLine directly depending on my query
*This post is locked for comments
I have the same question (0)