10.07.2024, 08:12 | #1 |
Участник
|
dynamicsaxinsight: D365: How to filter procurement categories in X++
Источник: https://dynamicsaxinsight.com/2024/0...gories-in-xpp/
============== Purpose: Demonstrate how to filter procurement categories in X++. Application: Dynamics 365 for Finance and Operations Business requirement: Business requirement is to filter procurement categories to allow only tangible ones to be selected in the procurement categories lookup and when user clicks the Add product button on the purchase order line. Solution: We can use the code below to filter procurement categories to display on the tangible ones. Code [ExtensionOf(classStr(EcoResCategoryTreeDatasource))]internal final class ATLAS_EcoResCategoryTreeDatasource_Extension{ /// /// Filters procurment categories. /// /// /// Atlas Dynamics Pty Ltd. /// boolean isCategoryAvailable(EcoResCategoryId _ecoResCategoryId) { boolean available; available = next isCategoryAvailable(_ecoResCategoryId); if (this.formDataSource.queryRun()) { available = available && EcoResCategory::find(_ecoResCategoryId).IsTangible; } return available; }} Источник: https://dynamicsaxinsight.com/2024/0...gories-in-xpp/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|