I've the field Purchaser code from the Vendor table and I've created the same field on the Item table. I want to copy the content of this field to the new field. I've crated a report filter by the DataItemlink "Vendor nº" and on AfterGetRecord of the Item DataItem I've put the code:
"Purchaser Code":=prove."Purchaser Code";
MODIFY;
("prove" is the Vendor table). It seems run but when I go to check the result it doesn't work, it appears empty. I don't know what's the problem; any idea?.
Thanks.
0
Comments
You shouldn't change DataItemlink in report
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Thanks.
If you can relate item to vendor, why write code again?
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Thanks.
You have a report With 2 data items.
Vendor
--> Item
You have createt a new field in Item table, and you want to relate that new field with vendor table ?
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Are you sure that the Purchaser Code for the Vendor is not blank?
Only 1 Vendor No. related to the specific Item(s)?
DataItemTableView of Item is set to Vendor No.
DataItemLinkReference is Set to Prove
DataItemLink is set No.=FIELD(Vendor No.)
If it is not filling the Purchase Code then there is no link between Prove."No." and Item."Vendor No."
Hope this helps.
Thanks for help.