Creating AX Labels under Version Control

by | Updated August 15, 2016 | Development, Dynamics AX

If you are using TFS for version control and you check labels in and out, you know the labels can be confusing.  What happens is, when you create a new label while under version control, the label is assigned a temporary label which will be something like @$AA1234.  The permanent label is only assigned once you check-in the label file.  The reason you get a temporary label is so the ID’s can be generated in consecutive order across multiple developers.  For example, when developer A checks in, his labels are assigned ID’s 1 and 2.  If developer B checks in a little later, her labels are assigned 3 and 4.  All 4 labels remain temporary until check-in time because that is when the next available ID value is known.

This timing of the assignment of permanent label ID’s creates some challenging scenarios.  For example, let’s say you created a new label which has a temporary value and you modified a form to use that temporary label.  If you check-in both of these objects, the label file and the form, at the same time everything will work out great.  The label will be assigned its new value and your form will be automatically updated to use the permanent ID.  This is the happy path scenario.

Now let’s say you check-in the form but not the label file.  At the time you check-in your form, the permanent value for the label is not known and your form will contain a temporary label that is not useful.  In that scenario you need to check-in your label file, get the permanent label ID and then re-modify the form plugging in the permanent ID.

The third scenario is, you check-in the label file but not the form.  In that case, your labels will be assigned their permanent values at check-in time, and while your labels are being checked-in, AX will update your form with the permanent label ID.  Everything is fine and no further actions should be needed.

Related Posts

  • It feels a little weird to call the new version of AX "Microsoft Dynamics AX" but that's going to be the name of the product going forward. The plan for future…

  • Over on the AX Support site on MSDN, Daniel Durrer has taken the time to keep tabs on the latest builds for Microsoft Dynamics AX 4.0, 2009 and 2012.  I…

  • Dynamics AX supports the business case of a customer returning goods through the use of a return order. The blog post will start with a customer invoice, then show how…

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

august

12aug10:00 am10:30 amWhy Levridge Grain? How to Achieve Efficient and Accurate Scale Tickets

12aug12:00 pm1:00 pmThe Three Paths to Dynamics 365 Finance and Supply Chain from Dynamics AX

13aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Inspire Keynote Breakdown

19aug10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

19aug12:00 pm12:30 pmThe Modern Manufacturer - Death by Safety Stock

27aug12:00 pm1:00 pmConfab with Stoneridge - Livestream - Dynamics 365 2020 Wave 2 Preview

september

02sep10:00 am10:30 amThe Modern Manufacturer - Cycle Count Management

09sep10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

16sep10:00 am10:30 amThe Modern Manufacturer - Product Lifecycle Management

30sep10:00 am10:30 amThe Modern Manufacturer - Return Management

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X