How to copy current record from page to new page in nav 2013 r2


I have create quality control check form for that I created new form and copy records from warehouse receipt page to my page .

It worked when I create Warehouse receipt after Purchase order. But when I open Warehouse receipt directly from list page , my

page does not get current record . It only shows last record.

So please help me if any one know about it.

Thank you.


Can you send a screen shot of the issue to or upload to forum?


Thank you for your reply.

I write code to copy records from warehouse receipt to my form as below.

It works but when I open warehouse receipt from list it does not show current data and data is inserted repeatedly. I am new in Navision coding. So I do not understand where I was wrong. So please help me.

Below image shows problem I am facing.