RE: Adding a field to a grid - Data only visible on one row
Hi Martin, thank you so much for replying to me!
The grid that I'm working on is the SalesReleaseOrderPicking grid, and the datasource that it is using is InventReleaseOrderPickingTmp. I added the field by just dragging it onto the grid from the Sales Table field list in the AOT, rather than by modifying the datasource, which is presumably why it is not working correctly.
The InventReleaseOrderPickingTmp datasource has a 'Table' property of InventReleaseOrderPickingTmp.
Yesterday I altered AOT\Data Dictionary\Tables\SalesReleaseOrderPickingTmp (added DlvTerm (Extended Data Type - CustDlvTermId) ).
I also altered:
Classes\InventReleaseOrderPickingForm_Sales\bldInventReleaseOrderPickingTmp (added this code:)
//Added SalesTable.DlvTerm (Delivery Term)
inventReleaseOrderPickingTmp.DlvTerm = salesLine.salesTable().DlvTerm;
I then went to Forms\SalesReleaseOrderPicking, and added a new Datasource called InventReleaseOrderPickingTmpNEW, pointing to the SalesReleaseOrderPickingTmp table (which now showed the DlvTerm field).
Finally I set the Datasource on the grid to InventReleaseOrderPickingTmpNEW.
When I open the form, zero records appear in the grid. What do you think I am missing?
Thanks again for all your help, I appreciate it!
Best wishes,
Alan