Change Code20 to Code30 in all NAV field

sendoh
Member Posts: 207
Hi Guys,
We're planning to change all the fields that have 20 char to 30 char, just want to ask has anyone already did this? and what are the challenges? right now the only challenge is the limit in the byte of NAV keys. appreciate your thoughts. thanks.
Regards,
Sendoh
We're planning to change all the fields that have 20 char to 30 char, just want to ask has anyone already did this? and what are the challenges? right now the only challenge is the limit in the byte of NAV keys. appreciate your thoughts. thanks.
Regards,
Sendoh
Sendoh
be smart before being a clever.
be smart before being a clever.
0
Comments
-
What about the variables declared with code 20 in reports or codeunits etc?0
-
If you want to be busy for a long time: go ahead. :shock:
Now seriously: this is not something you should be wanting to do as you do not know what you are picking up. It's not just a matter of changing the length of the fields as such, but also all things related to that. Or as mohana puts it.mohana_cse06 wrote:What about the variables declared with code 20 in reports or codeunits etc?
You have no easy way of checking what variables do relate to 'your' fields.
I recall there is some interesting post (or a reply to a similar question) by David Singleton. You should read that. I will try to find it add the link here.0 -
I used the steps
1. I use Virtual Table "Field" to change the Len from 20 -> 30 via code using Validate function.
2. I export all object(txt) except the table that has an error when I try to increase the Len of the char
3. open text file and use the REPLACE function in notepad from Code[20] to Code[30]
4. then import it back.
5. revisit the table that has reach the key bytes and alter it.
am I missing something?
I will see the result once we test it. hope this will work.
thanks.Sendoh
be smart before being a clever.0 -
sendoh wrote:am I missing something?
BTW: this is the post I mentioned above: is there a tool to change field length in all objects at once.0 -
Hi lvanvugt,If you want to be busy for a long time: go ahead.Sendoh
be smart before being a clever.0 -
sendoh wrote:I spent 2 hours for this, thanks to "Field" VT, we prepare testing for tomorrow. will keep you posted guys. Thanks.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Luc Van Dyck wrote:You can lead a horse to water, but you cannot make it drink.lvanvugt wrote:sendoh wrote:am I missing something?
BTW: this is the post I mentioned above: is there a tool to change field length in all objects at once.0 -
sendoh wrote:Hi lvanvugt,If you want to be busy for a long time: go ahead.
Before testing will be finished, you will have spent A LOT MORE TIME!
And you won't even find all problems.
Prepare to receive calls from users (also after a year they have been using it) saying some error has come up.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I agree with Kriki, you have opened a...0
-
sendoh wrote:Hi Guys,
We're planning to change all the fields that have 20 char to 30 char, ...
Regards,
Sendoh
Why? Do you really need 30 characters? Maybe you need to rethink your design rather then embarkign on this adventure.There are no bugs - only undocumented features.0 -
Apparently you don't seem to take the advice, but I'm going to try.
Here's a couple of issues you will run into:
1. are you going to adjust the length of flowfilters that work on those code fields?
2. And what are you going to do when you accidentally create an index that exceeds the maximum index length?
3. Are you going to increase the length of code fields in the virtual tables like, User, Member of and user Role?
4. What if you are using dlls or com objects with a fixed length input? Do you have access to that code?
5. How will you ever upgrade? The upgrade toolkit does not account for this kind of change.
As you can see everybody advices against your plan, I wish you good luck and please don't say you weren't warned.
Regards,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
Guys I appreciate your reply, this is what I expect. I forgot to mentioned that this is just an R&D and just test in our test database, as per advice of our boss(I think you understand what's my point). as he always says thatTALK DOESN'T COOK RICESendoh
be smart before being a clever.0 -
sendoh wrote:Guys I appreciate your reply, this is what I expect. I forgot to mentioned that this is just an R&D and just test in our test database, as per advice of our boss(I think you understand what's my point). as he always says thatTALK DOESN'T COOK RICE
But talk saves the cost of cooking the rice. Especially if the talk is about how you will waste the rice.0 -
Sog wrote:sendoh wrote:Guys I appreciate your reply, this is what I expect. I forgot to mentioned that this is just an R&D and just test in our test database, as per advice of our boss(I think you understand what's my point). as he always says thatTALK DOESN'T COOK RICE
But talk saves the cost of cooking the rice. Especially if the talk is about how you will waste the rice.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
And everybody forgot: you will need to go through all reports and make the columns wider, because the values will not be displayed whole... and I think this could be biggest time-eater...0
-
kine wrote:And everybody forgot: you will need to go through all reports and make the columns wider, because the values will not be displayed whole... and I think this could be biggest time-eater...
I guess that's why nobody mentioned it.0 -
Guys, after thorough testing we're confident now to implement this, we will deploy this to one of our new client.And everybody forgot: you will need to go through all reports and make the columns wider, because the values will not be displayed whole... and I think this could be biggest time-eater...
anyway, thanks for the inputs and I just want to share that this is possible. ThanksSendoh
be smart before being a clever.0 -
Possible is everything... it is just question of time, resources and money... and it seems that you and your customer have all of that... 8)0
-
sendoh wrote:Hi Guys,
We're planning to change all the fields that have 20 char to 30 char, just want to ask has anyone already did this? and what are the challenges? right now the only challenge is the limit in the byte of NAV keys. appreciate your thoughts. thanks.
Regards,
Sendoh
It is amazing how often this comes up. But I have learn't long ago that when someone wants to increase field lengths there is no point giving them good advise. So I wrote this blog some time ago ...
http://dynamicsuser.net/blogs/singleton ... ision.aspx
And more and more I believe what I say there, in that we need to let these juniors burn themselves so that they can learn properly.David Singleton0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions