mibuso.com

Microsoft Business Solutions online community
It is currently Sat May 25, 2013 6:28 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Set Control ID Range for forms
PostPosted: Wed Sep 12, 2007 9:21 pm 
Offline

Joined: Fri Jul 09, 2004 3:14 am
Posts: 140
Location: Virginia Beach VA
Country: United States (us)
If you add a textbox, the ID for that control starts at 1 billion.

Is there a way to change this to a different number range?

I just want to be able to identify my changes by maybe going another 50000 higher or something. So not a big deal if it can't be done programatically. Just curious...

From what I see this only applies to forms (I know, request ones too. :mrgreen: )

Any ideas?

_________________
Joe

http://www.commercesystemsgroup.com


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 10:05 pm 
Offline

Joined: Tue Aug 29, 2006 6:00 pm
Posts: 64
Location: DK
Country: Denmark (dk)
If you go into properties on your Textbox --> the first of the properties is ID --> In the value field besides ID you should be able to change the number to what you like.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 7:30 am 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
Since SP3 there is function UIDOffset() in CU1 which will return the base ID for all new controls, variables and functions created by the developer. You can read more about that in SP3 documentation related to this. You can change the function to return another ID for each developer or based on some setup (based on which module you are changing etc.).

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 2:35 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jan 02, 2003 6:37 pm
Posts: 7931
Location: Howell, MI
Country: United States (us)
I checked a standard 5.0 database and a standard SP3 database it's not there. Is that a function you can add and make that work?

_________________
Daniel Rimmelzwaan
MVP - Dynamics NAV


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 3:55 pm 
Offline
Site Admin
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Sun Nov 07, 1999 8:01 am
Posts: 3294
Location: Wilrijk
Country: Belgium (be)
It's explained in the "Unique IDs for ISVs" white paper:

Quote:
Problem Statement
When you create an add-on solution, you must make sure that the new objects you create are given unique IDs (UIDs) from the range assigned to the add-on in question. This is done by using the appropriate license. There will be no problem as long as only one add-on solution is included in the developer’s license.

However, if the developer’s license includes permission to create more than one add-on solution, it gets more complicated. In this case, the UIDs must be added manually during development instead of allowing them to be added automatically.

One consequence of not manually applying the UIDs could be that two separate add-on solutions are given the same range of IDs. This will generate merge errors when you try to implement the two add-on solutions in the same Microsoft Business Solutions-Navision database.

Manually setting the UIDs so that they comply with the appropriate add-on UID range is both a tedious and an error-prone task.

Cause
The Microsoft Business Solutions-Navision platform is not able to identify more than one range of unique IDs in a license.

Resolution
A function (with a fixed, predefined ID) can be added to codeunit 1. This function returns the base UID for the application, much like the SetGlobalLanguage function does for the application language. The function is called whenever Microsoft Business Solutions-Navision needs to find the base UID for the application. Starting from that base UID, the function finds the next available UID, which is then used for the new function, text constant etc in question.

Notation:
PROCEDURE GetUidOffset@212122() : Integer;

Example:
While creating an add-on solution, a developer at a Microsoft Certified Partner can change codeunit 1 (and restart Microsoft Business Solutions-Navision or re-open the company they’re working in – because of codeunit 1’s Single Instance-like behavior) to reflect the UID range that was assigned to the add-on in question.

BEGIN
Exit(Insert add-on solution ID here);
END;

When the partner adds a new text constant, function etc., the C/AL Editor will start at the inserted add-on solution ID and find the next available number.
The procedure for creating an add-on solution and adding UIDs is:
1. Open Codeunit 1 and add PROCEDURE GetUidOffset@212122() : Integer;. This ensures that you use the appropriate add-on solution ID.
2. Save and compile.
3. Open Company.
4. Start developing ‘Add-on Solution 1’.
5. Save and compile ‘Add-on Solution 1’.
6. Change Codeunit 1 – delete PROCEDURE GetUidOffset@212122() : Integer;.
7. Save and compile Codeunit 1.
You must repeat these steps for each separate Add-on UID range you work with.

_________________
No support using PM or e-mail - Please use this forum.
Search is your friend || Mark your Topic as SOLVED (= green checkmark) when your question is answered || Read the Forum Rules before making a posting

»»» Mark your calendar: NAV TechDays 2013 - 7 & 8 November 2013 ««« Visit the conference website: www.navtechdays.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 4:00 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jan 02, 2003 6:37 pm
Posts: 7931
Location: Howell, MI
Country: United States (us)
I knew it was possible, the vertical team at the company I used to work for did that. That is a really handy little tool if you're in the add-on business, makes developing a lot easier.

_________________
Daniel Rimmelzwaan
MVP - Dynamics NAV


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 10:14 pm 
Offline

Joined: Fri Jul 09, 2004 3:14 am
Posts: 140
Location: Virginia Beach VA
Country: United States (us)
Well that's the answer...

I don't think we are quite to the ISV stage yet, but it's good to know it's do-able.

Thank you for all your responses.

_________________
Joe

http://www.commercesystemsgroup.com


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 06, 2008 9:28 am 
Offline
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7504
Location: Milan
Country: Italy (it)
[Topic moved from Navision forum to Navision Tips & Tricks forum]

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
 Post subject: Re: Set Control ID Range for forms
PostPosted: Tue Jul 03, 2012 3:26 pm 
Offline

Joined: Wed Oct 12, 2011 10:52 am
Posts: 8
Country: India (in)
Dear Sir,

Thank You So much for Sharing Such a Helpful Tips.

Sir, I want to Know Is there any way to Reassign Control ID?

If I Want All Forms Control Id to Convert in Our Series Is there any Way?

Please Guide...


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: