I have made a custom report which uses the item table. The last thing i need is when clicking the report button when standing on an item to take the item No. and put it in the "where No. is a value". So like on my screenshot, if i stand on AK-001 and press the button for the report it should fill the No. with AK-001.

What i have tried to make it work:
In the item list page (31) -> page actions -> open C/AL editor for the report OnAction.
<Report Item Barcode> - OnAction()
Item.SETRANGE("No.","No.");
REPORT.RUNMODAL(REPORT::"Item Barcode DMC M PRIS2",TRUE,FALSE,Item);
Nothing is happening with the above i tried.
*This post is locked for comments
I have the same question (0)