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.
- To specify the start ID go to Microsoft Dynamics NAV developer environment.
- Go to File -> Database -> Alter
- In the Alter Database window, select the Advanced tab.
- Set the Start ID (UidOffset) value under the Designer Section (i.e 50000 as shown above) and click OK button.
- The database will be updated and now go to Page object.
To see the effects create a page add controls in it.
Go to the properties(shift + f12) of the control and see the value in ID property.
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