Hello Khudeja,
For base pages, you can't able modify the InsertAllowed, ModifyAllowed and DeleteAllowed properties, and Manage tab actions depend on these properties.
But for your custom pages, you can set these properties if you don't want a user can add, edit, or remove any item by setting all three properties to false as shown in below example:
Example:
page 50140 Listpartpage
{
PageType = ListPart;
ApplicationArea = All;
UsageCategory = Administration;
SourceTable = Emp;
InsertAllowed = false;
ModifyAllowed = false;
DeleteAllowed = false;
layout
{
area(Content)
{
group(GroupName)
{
field(ID; ID)
{
ApplicationArea = All;
}
field(Name; Name)
{
ApplicationArea = All;
}
}
}
}
var
myInt: Integer;
}
For base pages like "Sales Order Subform", you can hide all tabs and actions except Manage Tab and it's "New Line" and "Delete Line" actions.
Let's have a look first how "Sales Order Subform" shown by default on "Sales Order" Page with by default actions:
Before Modification:
1drv.ms/.../s!At-UXj6VtUoonhp-q-WdY8kGMcdZ
The below example helps you understand how you can hide tabs and actions from "Sales Order Subform" except "Manage Tab" and it's "New Line" and "Delete Line" actions, but you can hide "Select Items..." action from "Manage Tab".
Sample Code: Hide Actions and Tabs from "Sales Order Subform"
pageextension 50120 HideManageAction extends "Sales Order Subform"
{
actions
{
// Add changes to page actions here
modify(SelectMultiItems)
{
Visible = false;
}
modify("<Action3>")
{
Visible = false;
}
modify("F&unctions")
{
Visible = false;
}
modify(SelectItemSubstitution)
{
Visible = false;
}
modify(Page)
{
Visible = false;
}
modify("&Line")
{
Visible = false;
}
modify("O&rder")
{
Visible = false;
}
modify("Co&mments")
{
Visible = false;
}
modify(EditInExcel)
{
Visible = false;
}
}
}
After modification:
1drv.ms/.../s!At-UXj6VtUoonhsFQ184hEa6rQYR
I hope this will help you if you are trying to show or hide any action tabs or it's actions.
Best Regards,
Tabrez Ajaz