[Function Request] SetSelectionFilter for more tables
Can you please enhance Codeunit 46 SelectionFilterManagement to handle the following selections:
GetSelectionFilterForResponsibilityCenter(VAR ResponsibilityCenterR : Record "Responsibility Center") : Text
plus Page 5715 "Responsibility Center List" new Procedure GetSelectionFilter() : Text CurrPage.SETSELECTIONFILTER(ResponsibilityCenterL); EXIT(SelectionFilterManagementL.GetSelectionFilterForResponsibilityCenter(ResponsibilityCenterL));
GetSelectionFilterForSalesPersonPurchaser(VAR Salesperson_PurchaserR : Record "Salesperson/Purchaser") : Text RecRef.GETTABLE(Salesperson_PurchaserR); EXIT(GetSelectionFilter(RecRef,Salesperson_PurchaserR.FIELDNO(Code)));
plus Page 14 "Salespersons/Purchasers" new procedure GetSelectionFilter() : Text CurrPage.SETSELECTIONFILTER(Salesperson_PurchaserL); EXIT(SelectionFilterManagementL.GetSelectionFilterForSalesPersonPurchaser(Salesperson_PurchaserL));
GetSelectionFilterForItemVariant(VAR ItemVariantR : Record "Item Variant") : Text RecRef.GETTABLE(ItemVariantR); EXIT(GetSelectionFilter(RecRef,ItemVariantR.FIELDNO(Code)));
plus Page 5401 "Item Variants" GetSelectionFilter() : Text CurrPage.SETSELECTIONFILTER(ItemVariant); EXIT(SelectionFilterManagement.GetSelectionFilterForItemVariant(ItemVariant));
GetSelectionFilterForFixedAsset(VAR FixedAsset : Record "Fixed Asset") : Text RecRef.GETTABLE(FixedAsset); EXIT(GetSelectionFilter(RecRef,FixedAsset.FIELDNO("No.")));
plus Page 5601 "Fixed Asset List" GetSelectionFilter() : Text CurrPage.SETSELECTIONFILTER(FixedAsset ); EXIT(SelectionFilterManagementL.GetSelectionFilterForFixedAsset(FixedAsset ));
Thank you for your request, @GuntherGebauer As far as I can see all of this function can be added by extending the mentioned codeunit and pages with your own extension. Is there any reason why this is not possible?
Hi, I see that GetSelectionFilter in CU46 is now external and can be used in our own apps. So we would code our own codeunit and write page extensions for those Standard pages e.g. page 5601. I would think that an enhancement of the Standard would be better as there might be other ISV Solutions using those routines as well - which are fairly Standard routines if you are selecting anything depending on "Type" of table 37/39 which are items, resources, fixed assets aso.
Thank you for explanation. We agree that these functions will be useful as part of the base application. They will be added in the future update.