Hello all, i need help here for inserting sales lines.
in manual inserting, if you Select a Item number, the Other Fields will automatically be filled with corresponding data, (Unit, Delivery Address, etc.)
see picture here(manual inserting)
--------------------------------
now, here's my problem, I have a Button that inserts a Item number / Sales Order Line, but it does not automatically fill the corresponding data fields (Unit, Delivery Address, etc.)
heres the picture after i click the Button:
The Code i Used in the Button to Insert the Item number / Sales Order Line is :
----------
void clicked()
{
SalesLine.clear();
SalesLine.SalesId = SalesTable.SalesId;
SalesLine.ItemId = '0000000002';
SalesLine.InventDimId = InventDim::findOrCreate(inventDim).inventDimId;
SalesLine.insert();
SalesLine_ds.refresh();
SalesLine_ds.executeQuery();
}
---------
Now, what i need is when I click the Button to Insert the Item Number/Sales Order Line, i want the same output as the Manual Inserting, i need to get the Unit, Delivery Address, etc. all other fields that is automatically filled when used Manual Insert.
can you help me achieve this in my Code?
Im using this coded version because i will use this to make a Importing Button Tool, but for now, i need this first step, which is to make the Other Fields automatic.
help me please, thanks
*This post is locked for comments