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
Sendoh
be smart before being a clever.
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
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. I.e. if values are copied from 'your' fields to variables you have to 'stretch' these to to prevent - potential - overflows (as 30 chars will not fit in 20 char variables).
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.
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
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.
be smart before being a clever.
BTW: this is the post I mentioned above: is there a tool to change field length in all objects at once.
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
I spent 2 hours for this, thanks to "Field" VT, we prepare testing for tomorrow. will keep you posted guys. Thanks.
be smart before being a clever.
No, there is no such tool, and Field "VT" will also not be of (full) help. [-o<
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
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.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Why? Do you really need 30 characters? Maybe you need to rethink your design rather then embarkign on this adventure.
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,
Willy
be smart before being a clever.
But talk saves the cost of cooking the rice. Especially if the talk is about how you will waste the rice.
|To-Increase|
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I guess that's why nobody mentioned it.
|To-Increase|
this is true.
anyway, thanks for the inputs and I just want to share that this is possible. Thanks
be smart before being a clever.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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.