I have an extension deployed to a sandbox environment... many pages with custom actions work perfectly.. but I am struggling to add actions to the "Phyiscal Inventory Recording".
I wish to export the inventory list to Excel rather than the text file the system proposes.
Excerpt of my extension is below.
Extension deploys fine , and I can see its "applied" to the page when inspecting.. but the buttons just don't appear.
From the source of "Phys. Inventory Recording" - the export buttons are in the "functions" group.. so I just use addlast
Any ideas ?
pageextension 50123 "Phys Inv Extension" extends "Phys. Inventory Recording"
{
actions
{
addlast("F&unctions")
{
action("Export Recordings to Excel")
{
ToolTip = 'Export Recordings to Excel';
ApplicationArea = "All";
Image = ImportExcel;
Visible = true;
trigger OnAction()
begin
Xl.DeleteAll();
Xl.EnterCell(Xl, 1, 1, 'Item No.', true, true, true);
Xl.EnterCell(Xl, 1, 2, 'Location Code', true, true, true);
Xl.EnterCell(Xl, 1, 3, 'Bin Code', true, true, true);
Xl.EnterCell(Xl, 1, 4, 'Lot No.', true, true, true);
Xl.EnterCell(Xl, 1, 5, 'Expiry Date', true, true, true);
Xl.EnterCell(Xl, 1, 6, 'Quantity', true, true, true);