Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Generating data model ...
Finance forum

Generating data model on Electronic Reporting

Posted on by 1,400

Hi! I've been trying to generate a Data Model from scratch for a Configuration on the Electronic Reporting framework and I'm facing the following problem; When I try to add a class or a table as a data source on the model mapping designer, I can't see any of the classes or tables that I created on my project, but I do see the enumerators that I created on that same project. Does anyone know what criteria do the classes have to match to be added as a data source on the data model?

For some clarification, here's the part where I'm currently stuck at:

1513.cap.jpg

Any help would be much appreciated.

  • greengrimms Profile Picture
    greengrimms 1,400 on at
    RE: Generating data model on Electronic Reporting

    I can't even begin to tell you how much I appreciate the lengths you went to to help me solve this, thank you so much. I'll be talking to my superiors to let them know of this behaviour so they can open a case to Microsoft and get this fixed as soon as possible. I'll let you know if I get any feedback from them. Thank you so much for your help!

  • Verified answer
    Ramon_J Profile Picture
    Ramon_J 65 on at
    RE: Generating data model on Electronic Reporting

    The code picture that doesn't appear at the previous message:

    6811.07_2D00_04_2D00_2017-10_2D00_57_2D00_36.png

  • Verified answer
    Ramon_J Profile Picture
    Ramon_J 65 on at
    RE: Generating data model on Electronic Reporting

    Hi Danilo. I've been researching a bit more this strange behaviour. Here is what I've found:

    There is no filter about the classes. The system uses a special form called ERClassNameLookup when building the control for "Class Name". So, it uses a method for filling a temp table which is the one the lookup uses.

    That method is very simple but I think there's something wrong with it:

    If you look at the code, the standard uses typeCnt2Id function which MSDN oficial doc reads "Provides the ID of a specified extended data type."

    I don't know why this function it's used if you want to get the className based on its Id. Anyway, when using that function I didn't get any of my brand new developed classes as you mentioned. So I decided to try another different function (classCnt2Id) and voilá!, my classes started to appear at the info screen.

    Maybe it's a bug because I've seen other code even at the Inside Dynamics AX 2012 book that uses the same function as me.

    I think we need to try to open a MSFT case as there's no much documentantion about GER and get more info from them.

  • greengrimms Profile Picture
    greengrimms 1,400 on at
    RE: Generating data model on Electronic Reporting

    Hi Ramon_J. Thanks for answering. Yes I do, but I'm not seeing all the native classes or tables, just a few, and I can't tell why, because at first sight they don't match any common criteria... Although I was able to reach most of the tables on my project by clicking on the 'Refill tables' button, I still can't manage to add any of the classes from my project as a datasource.

  • Ramon_J Profile Picture
    Ramon_J 65 on at
    RE: Generating data model on Electronic Reporting

    Hi Danilo.

    First of all, when you are trying to add a Table or a Class as a datasource, do you see the D3FO standard ones?.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,336 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans