Friday, November 16, 2018

Concept of Menusuites is not supported in Webclient (AL Language Extension)

Yes, this is true Menusuite is no longer available to control whether a page or report can be searchable in Web client.

So, we may have some question on our mind:
  • What is the alternate of Menusuite? 
  • How we will control Pages and Reports Searchable in Web client? 
  • What code we will write in AL language to make it happen?
And, answer is here: Microsoft has provided the way to handle it and make the Pages & Reports searchable through Web client.

Way 1: New property "UsageCategory" added to Page & Reports. By default this property is set to None when you create new Page or Report.

Below are list of UsageCategory value, that you can set and make the Page or Report searchable / see like appear in Department page like RTC client.
  • None
  • Lists
  • Task
  • ReportsAndAnalysis
  • Document
  • Administration
For example, we can write below code snippet in Page & Report development to make it searchable in Web client:

page 50110 MyVendorCard
{
PageType = Card;
SourceTable = Vendor;
UsageCategory = Documents;
ApplicationArea = All;
layout
{
area(content)
{
group(General)
{
field("No."; "No.") { }
field(Name; Name) { }
field(Address; Address) { }
}
}
}
}



Now, you may try and check with your own development...

Way 2: Another way, you can extent Navigation Pane page of existing role centre and/or adding actions to other existing pages.

Adding to the top level Navigation by extending RC:

pageextension 50111 MyPurchAgentRoleCenter extends "Purchasing Agent Role Center"
{
actions
{
addlast(Sections)
{
group("My Venodors")
{
action("Item Vendor Catalog")
{
RunObject = page "Item Vendor Catalog";
ApplicationArea = All;
}
}
}
}
}


Adding to the secondary level Navigation by extending RC:

...
addlast(Embedding)
{
action("Vendor Bank Account List")
{
RunObject = page "Vendor Bank Account List";
ApplicationArea = All;
}
}


Adding to Action by extending Page or RC:

addlast(Creation)
{
action("Vendor Item List")
{
RunObject = page "Vendor Item List";
ApplicationArea = All;
}
}


Source of above post: https://docs.microsoft.com/en-us/dynamics365/business-central/

Please explore above link to know in details.

No comments:

Post a Comment