How to change code variables throughout system

mstallmannmstallmann Member Posts: 138
edited 2003-11-10 in Navision Attain
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

Comments

  • Timo_LässerTimo_Lässer Member Posts: 481
    The only secure way is to use the Navision Developer's Toolkit.
    1. You must search "Where used..." and set "Set all".
    2. Then you get many many results.
    3. With these results you do (see #1) until you think that you have all found :roll:
    I know, this is a hard way, but it is the only way to find all.

    We have extended the item description from 30 to 50. So we could stop the search at the sales line. This was hard enough. :x
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • eromeineromein Member Posts: 589
    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."
  • Timo_LässerTimo_Lässer Member Posts: 481
    eromein wrote:
    [...]
    btw, maybe it's better to solve this problem by using ext. texts instead of expanding the description field!!!
    Full ACK :wink:

    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]
  • mstallmannmstallmann Member Posts: 138
    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??

    Mike
  • eromeineromein Member Posts: 589
    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."
  • Timo_LässerTimo_Lässer Member Posts: 481
    eromein wrote:
    [...]
    btw, what does "Full ACK " mean?
    Sorry, it means Acknowlegde.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Sign In or Register to comment.