Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
The AL code in this article creates a simple role center for users assigned to a new profile. Defining the profile doesn't assign users or grant data permissions.
Learn more about role centers in Designing role centers.
This example uses the RoleCenterHeadline page from Creating a role center headline and the SalesInvoiceCuePage page from Creating cues and action tiles. Add those objects to the same project. Verify the user's permissions before deploying.
The sales-document entity actions target integration pages. Their navigation behavior needs to suit your users' workflow.
page 50125 MyRoleCenter
{
PageType = RoleCenter;
Caption = 'My Role Center';
layout
{
area(RoleCenter)
{
group(Group1)
{
part(Part1; RoleCenterHeadline)
{
ApplicationArea = All;
}
part(Part2; SalesInvoiceCuePage)
{
ApplicationArea = All;
Caption = 'Invoices';
}
}
}
}
actions
{
area(Sections)
{
group(PostedInvoices)
{
Caption = 'Posted Invoices';
Image = RegisteredDocs;
action(PostedServiceInvoices)
{
Caption = 'Posted Service Invoices';
RunObject = Page "Posted Service Invoices";
ApplicationArea = All;
}
action(PostedSalesInvoices)
{
Caption = 'Posted Sales Invoices';
RunObject = Page "Posted Sales Invoices";
ApplicationArea = All;
}
group(SalesDocuments)
{
Caption = 'Sales Documents';
action("Sales Document Entity")
{
ApplicationArea = All;
RunObject = page "Sales Document Entity";
}
action("Sales Document Line Entity")
{
ApplicationArea = All;
RunObject = page "Sales Document Line Entity";
}
}
}
}
area(Embedding)
{
action(Sales)
{
Caption = 'Sales lists';
RunObject = Page "Sales list";
ApplicationArea = All;
}
action(Services)
{
Caption = 'Service lists';
RunObject = Page "Service list";
ApplicationArea = All;
}
}
area(Processing)
{
action(SeeSalesInvoices)
{
ApplicationArea = All;
Caption = 'See Sales Invoices';
RunObject = Page "Posted Sales Invoices";
ToolTip = 'Open the posted sales invoice list.';
}
}
area(Creation)
{
action(AddSalesInvoice)
{
ApplicationArea = All;
Caption = 'Add Sales Invoice';
Image = NewInvoice;
RunObject = Page "Sales Invoice";
RunPageMode = Create;
ToolTip = 'Create a new sales invoice.';
}
}
area(Reporting)
{
action(SalesInvoicesReport)
{
ApplicationArea = All;
Caption = 'Sales Invoices Report';
Image = "Report";
RunObject = Report "Standard Sales - Invoice";
ToolTip = 'Run the sales invoice report.';
}
}
}
}
// Creates a profile that uses the Role Center
profile MyProfile
{
ProfileDescription = 'Sample Profile';
RoleCenter = MyRoleCenter;
Caption = 'My profile';
}
Related information
AL development environment
Page extension object
Actions overview
Add pages and reports to Tell Me
Personalize your workspace
Use Designer