John, you are reading vendor id from PM_Vendor_Maintenance window, and showing in your window by reading from your table. First you need to save vendor id and vendor name with other details on your custom table and then when fetch next time read from your table. Why don't you set vendor name field just like you set vendor id filed from PM_Vendor_Maintenance window. if isopen(window PM_Vendor_Maintenance of form PM_Vendor_Maintenance) then 'Vendor ID' of window HR_Vendor_Commodity of form HR_Vendor_Commodity = 'Vendor ID' of window PM_Vendor_Maintenance of form PM_Vendor_Maintenance; ''Vendor Name'' of window HR_Vendor_Commodity of form HR_Vendor_Commodity = ''Vendor Name'' of window PM_Vendor_Maintenance of form PM_Vendor_Maintenance; ... rest of the code.
↧