
Hi,
We created a list part page for Office Schedule , but don't know from where this 'Manage' Named action is coming(kindly refer attached screen shot).
These actions are not in our code but still showing there.
Please do let me know how i can hide these actions!
Thanks & Regards,
Harshit
Hello Harshit,
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 examples:
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 list part page 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.
------------------------------------------------------------------------------------------------------------------------
Let's have a look also in my sample list page example.
Before Modification:
1drv.ms/.../s!At-UXj6VtUoonh5dcp6JwnZOTTg1
Sample code to hide "Manage Tab" from the list page:
page 50121 Listpage
{
PageType = List;
ApplicationArea = All;
UsageCategory = Lists;
SourceTable = Emp;
CardPageId = 50122;
InsertAllowed = false;
ModifyAllowed = false;
DeleteAllowed = false;
layout
{
area(Content)
{
repeater(GroupName)
{
field(ID; ID)
{
ApplicationArea = All;
}
field(Name; Name)
{
ApplicationArea = All;
}
}
}
area(Factboxes)
{
}
}
}
After modification:
1drv.ms/.../s!At-UXj6VtUoonh3RAVLQKbQ5MUZ1
I hope this will help you if you are trying to show or hide any action tabs or it's actions.