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 customized for users assigned to a new profile.
Learn more about Role Centers in Designing Role Centers.
This example uses the RoleCenterHeadline page from Creating a Role Center headline to display the headline, and the SalesInvoiceCuePage page from Creating cues and action tiles for the cue and action tile.
page 50125 MyRoleCenter
{
PageType = RoleCenter;
Caption = 'My Role Center';
layout
{
area(RoleCenter)
{
group(Group1)
{
part(Part1; RoleCenterHeadline)
{
ApplicationArea = All;
}
part(Part2; SalesInvoiceCuePage)
{
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)
{
Caption = 'See Sales Invoices';
RunObject = Page "Posted Sales Invoices";
}
}
area(Creation)
{
action(AddSalesInvoice)
{
Caption = 'Add Sales Invoice';
Image = NewInvoice;
RunObject = Page "Sales Invoice";
RunPageMode = Create;
}
}
area(Reporting)
{
action(SalesInvoicesReport)
{
Caption = 'Sales Invoices Report';
Image = "Report";
RunObject = Report "Standard Sales - Invoice";
}
}
}
}
// 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