Code Snippet: Adding LearnBC to your custom page
Add LearnBC Content to your custom page
If you want to add custom LearnBC content to your custom page in Business Central, you can create a page extension object that changes an existing page object. Depending on which content you want to provide, you need various snippets.
CUSTOM CONTENT ON A ROLE CENTER PAGE
Dashboard - "L4D365LearnBC Dashboard Part"
part(L4D365Website; "L4D365LearnBC Dashboard Part")
{
ApplicationArea = All;
SubPageView = sorting("L4D365PageID") where("L4D365PageID" = const('1234*'));
}
Video - "L4D365LearnBC Video Part"
part(L4D365Video; "L4D365LearnBC Video Part")
{
ApplicationArea = All;
SubPageView = sorting("L4D365PageID") where("L4D365PageID" = const('1234*'));
}
TextURL - "L4D365LearnBC TextUrl Part"
part(L4D365TextUrl; "L4D365LearnBC TextUrl Part")
{
ApplicationArea = All;
SubPageView = sorting("L4D365PageID") where("L4D365PageID" = const('1234*'));
}
* your Role Center ID
Note: Please ensure that you add a new entry with your page ID to the LearnBC Content Management page in Business Central. This step is crucial to ensure that your content is displayed properly.
CUSTOM CONTENT ON A CARD/LIST PAGE
Video - "L4D365LearnBC Video Part"
part(L4D365Video; "L4D365LearnBC Video Part")
{
AboutTitle = 'Learn Business Central';
AboutText = '**Create a new customer?** In this *video* you learn the basics about how to create a customer in Business Central. **Do you know?** You can [replace this video with your own by modify the learning content.](?page=1076760 "Manage Learning Content")';
ApplicationArea = All
SubPageView = sorting("L4D365PageID") where("L4D365PageID" = const('1234*'));
}
* your page ID
Note: Please ensure that you add a new entry with your page ID to the LearnBC Content Management page in Business Central. This step is crucial to ensure that your content is displayed properly.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
0 Kommentare