AL
AL copied to clipboard
CreateBinTypeFilter overloading for Integer and Option
Please include the following with each issue:
1. Describe the bug The function CreateBinTypeFilter in table Bin Type with parameter Type as Option is now obsolete and is replaced with a new function with parameter BinTypeFieldNo as Integer. The problem is, that there is no obsolete warning, because Option and Integer as Input use always the function with Integer. In the old function the Option 3 was Pick and now Option 3 does return all Bin Types, because the new function needs the field no as input BinType.FieldNo(Pick) and the field no. = 13
2. To Reproduce
Use this functions
3. Expected behavior Both functions should return a BinTypeFilter with the BinTypes marked as Pick A warning should be shown in the code that the function is obsolete
4. Actual behavior The function return a BinTypeFilter with all BinTypes
5. Versions:
- AL Language: v13.0.1007491 -Version: 1.89.1 (user setup) Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:13:33.891Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.22621
- Business Central: 24.0.16410.17308