Hello everyone,
I want to create an apps like a journal entries, and need some advise or guidance on what do I need and what should I do to achieve that.
The apps I want to create is an Stock count journal, which in then end I would like to create journal in Dynamics 365 F&O. So in my mind, this apps will do these steps:
1. 1st screen, I need to select Warehouse, Location, and the journal name
2. 2nd screen, there is a barcode scanner which will scan the item, and this will create data rows like in a list contains the item number and the quantity.
3. All those list will goes or save to CDS.
4. There is another menu, probably in the 1st screen to push those records in CDS to D365 F&O to create inventory journal there.
What I did so far are :
1. Create tables Warehouse, location, journal type, and the table to records all the counting result (lets call it CountEntries) in CDS.
2. the 1st screen is created, data source is the CountEntries, so I display the Warehouse, Location, and Journal type which is a lookup.
3. the 2nd screen is created up to Barcode scanner button.
and currently I'm confuse on how to bring the Barcode scanner result to a gridlist which is maybe a "Data table" control. Can it create a new record everytime I scan, and the information of warehouse, location, and journal type follows what's in 1st screen ? So when I scan 3 (three) times, the grid / data table control will have 3 rows of item and quantity with in background the row also fill in by warehouse, location and journal type from the 1st screen automatic.
The grid and also the CountEntry table which I imagine will be something like this :

.. and there is also one important thing which I still don't know how to handle it, is on that table has primary key (usually with fieldname "Name") which I don't know what to fill in ? can it be a number sequence, and how to do that ?
Anyone know a good reference to it, with the steps needed to create this. Or just some advice what do I need to do to achieve this.
Many thanks in advance.
TZ