Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Blogs / Navision 360 / Start Id(UiDOffset) in Micr...

Start Id(UiDOffset) in Microsoft Dynamics NAV

Zaid Tariq Profile Picture Zaid Tariq 2,266

Start ID (UidOffset):

When you create a new table, page, report, codeunit, query, or XMLport, the elements have IDs that are offset by the Start ID (UidOffset) value that you specify. For example, you can specify a Start ID of 50000 and then create a new page. The first element that you create on the page, for example, a Container control, has ID 50000. The next element that you create on the page, for example, a Group control, has ID 50001. The ID of each element on the page is incremented by 1, starting with the offset that you specified.

If you create variables or text constants on the page, then the first variable or text constant has ID 50000. The ID of each variable or text constant that you create is incremented by 1, starting with the offset that you specified.
If you create functions on the page, then they start with ID 50000. Parameters, return value, local variables, and local text constants of a function start with ID 50000.

Note: Object elements include containers, groups, fields, parts, DataItems, columns, filters, variables, functions, or text constants. You must specify an Integer that is greater than or equal to 0. The default value is 1.

You set the Start ID number to the lowest of your object number range. If you are in your customer’s project then you may start from 50000. This may vary from project to project if you are developing a solution with developer licence and your object range if 60,000 to 90,000 then you may start the number from i.e. 80,000 so that in future you can differentiate changes done by you and by the customer itself, which will ultimately helps you in merging two solutions.

  1. To specify the start ID go to Microsoft Dynamics NAV developer environment.
  2. Go to File -> Database -> Alter
    start_2D00_id_2D00_step_2D00_1.jpg
  3. In the Alter Database window, select the Advanced tab.
    start_2D00_id_2D00_step_2D00_2.jpg
  4. Set the Start ID (UidOffset) value under the Designer Section (i.e 50000 as shown above) and click OK button.
  5. The database will be updated and now go to Page object.

To see the effects create a page add controls in it.

start_2D00_id_2D00_step_2D00_3.jpg

Go to the properties(shift + f12) of the control and see the value in ID property.

start_2D00_id_2D00_step_2D00_41.jpg

start_2D00_id_2D00_step_2D00_421.jpg

start_2D00_id_2D00_step_2D00_431.jpg

You will observe that the id of each control will start from the specified number in Start ID field (i.e. 50000). 

Note: In earlier versions of Microsoft Dynamics NAV, you specified the Start ID offset by using the GetUidOffset function in codeunit 1 (CU1).
Check out more at: Navision360

Comments

*This post is locked for comments