JvD
JvD

Reputation: 489

Disable default Navigation - Previous and Next

Is there a way to disable the Next and Previous buttons on the Sales Order screen? I was able to change the Visibility of the First and Last buttons under the DataSource but can't find the Next and Previous button:

enter image description here NO!!

Upvotes: 0

Views: 150

Answers (2)

Brendan
Brendan

Reputation: 5623

Alternative to the other answer is to set the Actions in a graph extension:

// Hide
Base.Next.SetVisible(false);
Base.Previous.SetVisible(false);

or

// Disable but visible
Base.Next.SetEnabled(false);
Base.Previous.SetEnabled(false);

Upvotes: 1

JvD
JvD

Reputation: 489

IN the customization project edit the ASPX and add the Next and Previous buttons:

<px:PXDSCallbackCommand Visible="False" Name="Last" PostData="Self" ></px:PXDSCallbackCommand>
<px:PXDSCallbackCommand Visible="False" Name="Previous" PostData="Self" ></px:PXDSCallbackCommand>

Upvotes: 0

Related Questions