Hi All,
I got customize field in SalesEditLineForm which is TransportCompany, VehicleNo, DriverName and I/C Number. This field is from SalesParmUpdate where the EDT is set to LorryRef. I got LorryRef table which is store all the lorry information including RefNo. Another customize field on SalesTable where user select RefNo for the transportation. The question is how do I show the transportation information to the SalesEditLineForm based on selected information from the SalesTable.
select SalesId from SalesParmTable;
if (SalesParmTable.SalesId)
{
select RefNo from salesTable
where SalesParmUpdate.LorryRef == salesTable.RefNo;
if (SalesParmUpdate.LorryRef)
{
SalesParmUpdate.TransportCompany = lorryRef.TransportCompany;
SalesParmUpdate.VehicleNo = lorryRef.LorryNo;
SalesParmUpdate.DriverName = lorryRef.DriverName;
SalesParmUpdate.IcNo = lorryRef.ICNo;
}
}
but it dind't work. Thank you in advance.
*This post is locked for comments
I already solved this problem, put the code in run method which is it generate the salesId over there. Problem solved!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156