I’ll be honest. I was a bit disapointed after I had published my previous blog. Not about the content but about the number of people commenting and replying on twitter.
I talked to a few people in person and they said that it was a bit complex and maybe not everyone completely got what the problem was that I was trying to solve.
The problem is simple. You cannot extend the same table, page or report more than once in one AL project.
Did you know that in the prototype of AL that was given to us as christmas present several years ago it actually did work? At least you could create a second extensions without fields.
I complimented Microsoft about it. I was happy that we could “put things where they belong” in a project with a proper structure.
The answer was “oops”, this was not supposed to work, because you can only have one SQL companion table per table.
I bet that if they spent a few more hours they could have made the compiler and engine smart enough to group these together and solve the problem alltogether.
Why did you say again we need this?
If you want to organize your PTE in modules you need this. I wrote about this in one of my earlier blogs.
And what is the workaround?
That is working with PreProcessorSymbols and Code Cloning.
Maybe that clarifies the blog I wrote a few days ago and get a bit more comments up and running.
Can we fix the Code Cloning?
Yes! I also discussed this with a few people and hopefully I will blog about that somewhere next week.