How to change code variables throughout system
mstallmann
Member Posts: 138
We wanted to change the field size of the item description to 250. A client needs to do so for searching capabilities on complex parts. After changing this field, and fields in other talbes, I soon realized that there are many functions in the system that use the description as a parameter being passed in.
Does anyone have an easy way of determining where all of these functions are, and how to easily change them all?
Mike
Does anyone have an easy way of determining where all of these functions are, and how to easily change them all?
Mike
0
Comments
-
The only secure way is to use the Navision Developer's Toolkit.
- You must search "Where used..." and set "Set all".
- Then you get many many results.
- With these results you do (see #1) until you think that you have all found :roll:
We have extended the item description from 30 to 50. So we could stop the search at the sales line. This was hard enough. :xTimo Lässer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]0 -
download the Navision Development Tool Kit or install from product cd. RTFM to figure out how to work this geat tool.
With this tool you will be able to get a overview of all field, functions and others that have to be changed to get a description of 250 working.
btw, maybe it's better to solve this problem by using ext. texts instead of expanding the description field!!!"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0 -
Full ACKeromein wrote:[...]
btw, maybe it's better to solve this problem by using ext. texts instead of expanding the description field!!!
It's easier to write a codeunit which will help you to manage many Ext. text lines wherever you need than to extend the description field(s).
Another problem will be how to print 250 characters in one field.Timo Lässer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]0 -
Thank you for all of the responses. I was skeptical about using extended texts, as searching them was difficult, but I think that will be more manageable....That brings up another question about reports...is there any way to autoshrink and expand the fields on a report....If we were to have a 250 character length description??
Mike0 -
Nope, autoexpand and autoshrink.
But what you could do is the folllowing
make 2 sections, 1 for all tekst shorter then (for example) 50, and one for over 50. Make the text box for the more-then-50-textbox a multiline box. Print the first if strlen <= 50, the otherone when strlen > 50.
But!
due to a little bug in navision, it is better not to use the showoutput command. Better to create 2 new integers, one for under and one for over 50. Then break the dataitem if ness.
btw, what does "Full ACK " mean?"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0 -
Sorry, it means Acknowlegde.eromein wrote:[...]
btw, what does "Full ACK " mean?Timo Lässer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
