C\AL Code viewing in objects?

lordgrinzlordgrinz Member Posts: 8
I am new to Navision, so I dont know if this is normal or not. But I am use to using VB studio and having the ability to find, replace all, etc. across my whole project. Yet when I try this in say a Nav Report, I have to view code only of one section at a time, is there a way to view all the code within say a report, all at once? Is their a "find" or "replace all" that will apply to the whole object and not just to code for one section of the object? It just seems like this is one of the hardest coding environments I've ever seen, its really cumbersome.

I guess what I am asking is if there is a tool for doing all this, basically giving me a similar environment to MS Visual Studio?

Thanks!
David

Comments

  • TomasTomas Member Posts: 420
    Export object as TXT file, then you will be able to search/find/replace.
  • lordgrinzlordgrinz Member Posts: 8
    Tomas wrote:
    Export object as TXT file, then you will be able to search/find/replace.

    So there is no ability to do this within the object? Or a development tool for giving the developer the ability to view, replace, change code, highlight code errors as they are typed, etc? And view all links to other objects and databases?

    I guess I am surprised that there is so little in the way of support for developers in Navision.
  • tinoruijstinoruijs Member Posts: 1,226
    lordgrinz wrote:
    I guess I am surprised that there is so little in the way of support for developers in Navision.

    I understand your reaction.
    But navision is not made for developers. It's ERP-software. With posibilities to modify.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • tinoruijstinoruijs Member Posts: 1,226
    So there is no ability to do this within the object?

    No. You have to export the object as txt to search in all code.

    Or a development tool for giving the developer the ability to view, replace, change code, highlight code errors as they are typed, etc?

    No.

    And view all links to other objects and databases?

    You can use Developers Toolkit for viewing links between objects.
    Navision Developer’s Toolkit is designed to help you analyze, customize and update Navision applications. Regardless whether you are working as a Navision project manager, developer, supporter, trainer or sales person you will have to look behind the application.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • tinoruijstinoruijs Member Posts: 1,226
    And you can use CodeGenius Studio:
    http://www.mibuso.com/forum/viewtopic.php?t=19626

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • Revolution1210Revolution1210 Member Posts: 161
    Hi David

    As has been said, NAV doesn't have a fully feature rich development environment.

    There are things which we would all like to see added, but at the end of the day what you loose in terms of development environment niceties, you gain in the ability to produce fast, no frills dbms/erp code.

    And, there are always ways around the environment shortfalls, that's half the fun :D
    Ian

    www.NextEqualZero.com
    A technical eye on Dynamics NAV
  • stvnstvn Member Posts: 4
    edited 2010-04-19
    I'm new to Microsoft Navision, i don't understand the code for navision. thankx
    STVN
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    http://www.mibuso.com/forum/viewtopic.php?p=201660#p201660 Just two posts that are exactly the same in two old topics?! [-X
    I think first of all you should read the board rules http://www.mibuso.com/forum/faq.php?mode=rules :!:
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • stvnstvn Member Posts: 4
    Anyone have any website to understand / reading the coding for Navision ? I dont really understand the coding of navision, i'm new to this application developement system.
    STVN
  • kinekine Member Posts: 12,562
    If you are new, I am sure that you have some "mentor" in your company who will teach you or guide you. I recommend:

    1) Read something about Pascal language, the syntax is same
    2) Read the documentation in DOC folder of install cd, mainly the Designer's guide
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • rdebathrdebath Member Posts: 383
    lordgrinz wrote:
    But I am use to using VB studio and having the ability to find, replace all, etc. across my whole project.
    Replace across the whole 'project' ie the entire of Navision would be useless; there's around 120MB of code in the current version.
    lordgrinz wrote:
    Yet when I try this in say a Nav Report, I have to view code only of one section at a time, is there a way to view all the code within say a report, all at once? Is their a "find" or "replace all" that will apply to the whole object and not just to code for one section of the object?
    Reports are a minor annoyance in this respect, generally when writing reports I'll put all the main code in functions and leave only stubs in the record sections. For existing reports export to text gets the job done (as others have mentioned) This issue has been ignored by both Navision and Microsoft
    lordgrinz wrote:
    It just seems like this is one of the hardest coding environments I've ever seen, its really cumbersome.
    Translation: "It's not what you're used to". Personally I find MS Visual studio one of the most annoying environments I've every used. Of the top of my head problem one is that it's glacially slow, especially for startup (I commonly start it by accident then start a different editor on the same file and the second editor is ready long before VS has even looked at the file.) The second is actually the 'intelisense' you're so fond of, I can type and move around the page quite quickly, intellisense redefines several of the keys when it pops up. In addition it's not unusual for me to be reading part of the code a little away from the typing point, at least until VS pops up a 'helpful' comment. OTOH I regularly use Nav's F5, but when I want to.
    lordgrinz wrote:
    I guess what I am asking is if there is a tool for doing all this, basically giving me a similar environment to MS Visual Studio?
    Unfortunately for you the Navision development environment and most of the external tools are nice and quick, you'll have to get your snoozes some other way.

    PS: The external text editor I use is vim; very, very fast (both in itself and for text editing), syntax colouring, can easily edit 500Mbyte+ files but you'll HATE it.
Sign In or Register to comment.