ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Function Request] SetSelectionFilter for more tables

Open GuntherGebauer opened this issue 7 years ago • 3 comments

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 ));

GuntherGebauer avatar Dec 20 '18 12:12 GuntherGebauer

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?

IhorHandziuk avatar Jan 07 '19 09:01 IhorHandziuk

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.

GuntherGebauer avatar Jan 07 '19 09:01 GuntherGebauer

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.

IhorHandziuk avatar Jan 09 '19 13:01 IhorHandziuk