[In Nav 2009]
I would like to catch current record from sales order Page. I wrote codeunit and I put this in custom button in sales order page.I am able to call that codeunit after clicking the custom button, but I am not able to get current Field value('No' field from Header).
Below is my codeunit, please guide me to get the current record.
Codeunit:[var: CurrentPage-Sales Order]
Salesheader.SETRANGE("Document Type",Salesheader."Document Type"::Order);