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:
Any help would be much appreciated.
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!
The code picture that doesn't appear at the previous message:
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.
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.
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?.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,902 Super User 2024 Season 2
Martin Dráb 229,336 Most Valuable Professional
nmaenpaa 101,156