Help!!
For some strange reason some fields like "Description 2" or "Vendo No" are not updated from the Item to documents after inserting the "No." althought the code is on "No." Validation funtcion as it is for "Description" that always updated.
Can anyone help on an explanation, please.
Thanks
Best Regards
Lcj
0
Comments
Check if the Description 2 field is a flowfied, then you have to put a code as calcfields and then it would update. Moreover if you could be more specific in your question, like which form or table this is happening, i could give you better solution.
Regards
Suresh.
Thank You
Lcj
(from the OnValidate of the No. field in the Sales Line table)
Type::Item:
BEGIN
GetItem;
Item.TESTFIELD(Blocked,FALSE);
Item.TESTFIELD("Inventory Posting Group");
Item.TESTFIELD("Gen. Prod. Posting Group");
Description := Item.Description;
"Description 2" := Item."Description 2"; <
Of course the Item has to have a description 2 filled before it will appear on the sales line...
If you want the Vendor Item no to fill (I can assume you have added the Vendor Item No field to the Sales Line table), just add another line of code:
Type::Item:
BEGIN
GetItem;
Item.TESTFIELD(Blocked,FALSE);
Item.TESTFIELD("Inventory Posting Group");
Item.TESTFIELD("Gen. Prod. Posting Group");
Description := Item.Description;
"Description 2" := Item."Description 2";
"Vendor Item No." := Item."Vendor Item No."; //<--new line
Again, the Item must have this field filled for it to fill on the line.
Is this what youa re trying to do?
-A