Dynamics 365 Business Central: How to add Item Attributes Factbox (9110, ListPart) to Item Ledger Entries page

Dynamics 365 Business Central

Hi, Readers.
Today I would like to talk about how to add Item Attributes Factbox (9110, ListPart) to Item Ledger Entries page (Displaying Item Attributes on the Item Ledger Entries Page).

Let’s take a look at item attributes feature briefly. When customers inquire about an item, either in correspondence or in an integrated web shop, they may ask or search according to characteristics, such as height and model year. To provide this customer service, you can assign item attribute values of different types to your items, which can then be used when searching for items.
For example, with Item Attributes, you can create item attributes on Item Attributes page.

And create values for item attributes of type Option

Then you can assign item attributes to items.

Finally, you can find Item Attributes in the Factbox of the Item Card and Item List.

You can also filter by item attributes on Item List page.

The question is, can we add this Factbox to other pages, such as the Item Ledger Entries page?
Item Attributes Factbox (9110, ListPart):

Yes, it’s not very difficult. If you look at the standard code of the Item List page or the Item Card page, you will find that they are not related by the SubPageLink Property (Sets a link to a Factbox from a page).

Instead, it is calculated every time in trigger OnAfterGetCurrRecord().

CurrPage.ItemAttributesFactBox.PAGE.LoadItemAttributesData(“No.”);

page 9110 “Item Attributes Factbox”

We can apply the same approach. Let’s look at a simple example.

Done.

Test video:

Great. Give it a try!!!😁

Source code: Github (Please note that the source code is for reference only, you can improve it according to your own needs)

PS:
1. Dynamics 365 Business Central: Can we add Item Attributes Factbox (9110, ListPart) to Sales Order (42, Document) page??? Yes, But……
2. Dynamics 365 Business Central: Show Item Attributes on the page (For Example: On Item List page)
3. Dynamics 365 Business Central: How to add Filter by item attributes to the Item Ledger Entries page

END

Hope this will help.

Thanks for reading.

ZHU

コメント

Copied title and URL