web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Suggested Answer

Layers , Models and Compare with baseline in Visual Studio

(0) ShareShare
ReportReport
Posted on by 230

Hi everyone,

I have a doubt, whether in AX7 what is the importance of layers do they have any significance  or models are having any precedence the way they are being created. I tried overlayering an object in a model(cus layer) in app suite package.Then I use compare with baseline( it is comparing with sys. I created a new model(isv layer) customized the same object and when comparing with baseline I can see both (sys+cus layer )as baseline and isv code being compared against them. Now when I created a new model (using sln layer) and try overlayering the same object and try to compare with the baseline the baseline is again sys layer not the models( with cus and isv). Is there any setting where we can set a specific layer in visual studio to as the baseline.

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    Hi Krishnendu,

    Models and layers exist only in design time now, evething is get compiled into one dll anyway. Please read this blog series, it has very detailed explanation of chnaes in AX 7 and new concepts daxmusings.codecrib.com/.../design-compile-run-part1-2012-paradigms.html

  • Krishnendu Profile Picture
    230 on at

    Thanks evgen , I went through, but how the layers are helping the developers I am still a bit confused,  and do models have any precedence yesterday i got an error message saying cannot edit the object due as the model is having some precedence something like that and the compare with baseline is there any feature where we can set the baseline layer in visual studio.

  • Andreas Hofmann Profile Picture
    on at

    This course explains it well: mbspartner.microsoft.com/.../1567.

  • Suggested answer
    Joris dG Profile Picture
    17,775 on at

    First, there is a mistake in your results. If you compare ISV code it will not compare to the higher layer as a baseline. Only lower models/layers are considered baseline. You can't change the baseline for compare, it's always all models below your current one.

    You should consider models to be sort of like sub-layers. So for ordering purposes (during compile), it sorts by layer first, then it sorts by model ID within the layer. You can flip the model ordering within one layer by changing the IDs in the descriptor XML files. Note that with AX7 so far our experience has been that there's very little benefit (if any) to having multiple models in the same layer.

    And in general, you should create your own package and create extensions. Avoid over-layering at all cost!

  • Krishnendu Profile Picture
    230 on at

    Hi Joris,

    I got it that we dont have any option to select the baseline.

    I got that only models created first will go as the baseline.(but)

    to cross check my results I tried creating a new model wih cus layer and customized an object compare with baseline is ( application suite as the baseline)

    now after that i created a new model with SLN layer and while trying to customize the object I dint see the changes which I made in Cus layer

  • Suggested answer
    Joris dG Profile Picture
    17,775 on at

    Correct, because the baseline of SLN is SYS, not CUS. So you don't see the CUS layer changes because SLN is lower.

  • Krishnendu Profile Picture
    230 on at

    Hi Joris,

    If that is the case it is contradicting again if I create a cus Layer model and customize an object and compare it is comparing with  with sys which is fine ...and then again create a new ISV model and customize the same object and compare with baseline I am able to see the CUS layer changes though the layer is higher. The later scenario happens if I select any layer between (CUS to ISV).

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans