AL icon indicating copy to clipboard operation
AL copied to clipboard

AA0218 not working as expected for dependent fields

Open stephanweidmann opened this issue 1 year ago • 5 comments

1. Describe the bug If you add a field from a dependent extension to a page extension, it will show "Tooltip for field 10 must be filled", even if you add a tooltip in your table extension via modify.

2. To Reproduce App A: Look for a table and field, where no tooltip is used (yet). (Say, Table Item, Field Description) App B: Create a PageExtension for the item card, add Rec.Description. Activate CodeCops "${CodeCop}"

-> You will get the AA0218 Warning.

Create TableExtension for item with modify(Description) { Tooltip = 'Test'; }

Expected:;

3. Expected behavior The modification should be respected as existing tooltip, and AA0218 should not be shown. It even works (if you publish, you will see test as tooltip for the description

4. Actual behavior AA0218 is shown - Tooltip for Description must be filled. (the changed tooltip is already working in the client, so I assume it is just a forgotten case in the codecope. image

5. Versions: AL Language v13.1.1065068

Final Checklist

Please remember to do the following:

  • [x] Search the issue repository to ensure you are reporting a new issue

  • [x] Reproduce the issue after disabling all extensions except the AL Language extension

  • [x] Simplify your code around the issue to better isolate the problem image

Internal work item: AB#550244

stephanweidmann avatar Jul 19 '24 12:07 stephanweidmann

Duplicate of #7696 Can you reproduce the warning with the newest prerelease version?

dannoe avatar Jul 22 '24 07:07 dannoe

image image Yes. It is one step more than #7696

Field is from Base App, Tooltip added in TableExtension

stephanweidmann avatar Jul 22 '24 07:07 stephanweidmann

any update on this? I checked with 15.0.1143290 - and the warning still exists.

stephanweidmann avatar Sep 24 '24 10:09 stephanweidmann

@BazookaMusic Any chance to get this actually solved soon?

NKarolak avatar Sep 24 '24 10:09 NKarolak

I'll accept the bug so we can start looking at it, but it might be implemented in one of the next official releases. It's annoying but not critical as this is a warning

BazookaMusic avatar Sep 24 '24 11:09 BazookaMusic

Any new planning for a fix?

stephanweidmann avatar Mar 25 '25 08:03 stephanweidmann

seems to be fixed with the al version for 26.0. Thanks....

stephanweidmann avatar Apr 04 '25 13:04 stephanweidmann