Field in, how many tables?

AlkroAlkro Member Posts: 115
I'm sure this question is solved, but i don't find anything about it :(.

How can i know all tables that include the same field. For example, i want to change the length of a "No." field. But, i don't know if this field is in other table.

Is there any aplicattion to know it?

Best Regards.

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You need the Developers Toolkit for that: Dynamics NAV Developer's Toolkit v2.0 SP3 (build 291)
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • AlkroAlkro Member Posts: 115
    Thanks,

    i have all tables, but too forms, codeunits...

    Have i to change all C/AL Code where this field is named or only giving the correct lengt?

    For example:

    If a codeunit C/AL Code is like this:

    Number := item."No.";

    I have to change "Number" length to the same length... Is a hard job.

    I've to change Description field length too. Double job?
  • ara3nara3n Member Posts: 9,256
    Yes, it's a lot of work and we do not recommend customers to do this kind of mod.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ivanlotterivanlotter Member Posts: 31
    The No. field can be in all your tables but are different. It is also usually your Primary key.

    For example in the Job table No. will be the Job No in the Sales line table thus linking the two table.
    Ivan Lötter
  • modricmodric Member Posts: 42
    I've to change Description field length too. Double job?

    If you intend to change Description lenght, read this:

    http://www.mibuso.com/forum/viewtopic.php?t=19406

    Its next to impossible to correctly change length of this field, although its really toooo short. But there are different methods of solving this, do some search in forum, this question is discussed here bazillion times already...
    Modris Ivans
    MCP, Dynamics NAV - Application
  • David_CoxDavid_Cox Member Posts: 509
    Never change the "No." field, it is passed into variables in functions of many many objects.

    As said before "No." is used for all different tables, and is impossible to track.

    If you gave us some more details of what you are trying to achive, we may have more ideas, many heads make light work, like adding a new field and just passing this where it is needed.

    David
    Analyst Developer with over 17 years Navision, Contract Status - Busy
    Mobile: +44(0)7854 842801
    Email: david.cox@adeptris.com
    Twitter: https://twitter.com/Adeptris
    Website: http://www.adeptris.com
Sign In or Register to comment.