Hi...
We have several different no. series used for items. When creating a new item, it normally automatically uses the no. series from the item that was selected when you click New.
In RTC this doesn't seem to be working. No matter which record is selected it always uses the default item no. series.
Does it have to do with xRec and how RTC opens up a new window for the new record? How to fix it? This is a standard Nav code/feature.
onInsert you see this code:
IF "No." = '' THEN BEGIN
GetInvtSetup;
InvtSetup.TESTFIELD("Item Nos.");
NoSeriesMgt.InitSeries(InvtSetup."Item Nos.",xRec."No. Series",0D,"No.","No. Series");
END;
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
So the "New" button doesn't work very well. It's good that it's a known issue I guess but it's really rather unfortunate. In the meantime, until the next version comes out, I will look in to finding a workaround for the most important records.
Or maybe there's a simple adjustment to user usage that could help?
I'm having some success using a single instance codeunit where I can store the no. series every time an item record is selected and then retrieving it when a new record is inserted.