microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
718 stars 242 forks source link

Unable to access standard report date item from report extension data item #7749

Closed djole369 closed 1 month ago

djole369 commented 1 month ago

Please include the following with each issue:

1. Describe the bug Unable to access standard report ("Add Contacts") data item "Contact" from report extension data item (Service Item) because text field in Service Item table is called "Contact" as well and only option i have is that field.

2. To Reproduce Steps to reproduce the behavior:

  1. Create report extension for standard report "Add Contacts"
  2. Add data item to report extension with table "Service Item"
  3. Try to access data item "Contact" in "Service Item" data item
AL code snippet that demonstrates the issue or a link to a code repository the developers can easily pull down to recreate the issue locally.

Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.

3. Expected behavior Standard data item "Contact" can be accessed from other data items on report extension

4. Actual behavior dataitem error fieldcontact

5. Versions:

Final Checklist

Please remember to do the following:

dannoe commented 1 month ago

Just add CurrReport. in front of Contact.

djole369 commented 1 month ago

Just add CurrReport. in front of Contact.

Thanks for suggestion.

BazookaMusic commented 1 month ago

@dannoe Thanks a lot for contributing here and helping people! I'll close this bug.