How to import the Codeunit FOB from .net or any other applic

abhishekpareekabhishekpareek Member Posts: 150
Hi,

It would be great if anybody can give the light to find out that how to load an codunit from other application into Navision 4.0 or 5.0.

It would be greta if anybody can tell whether it is possible or not.If it is possible then how?

Regards,
Abhishek

Comments

  • tragtrag Member Posts: 23
    just go to www.gotcal.com, there is a .net application, which is capable to read and store objects.
  • garakgarak Member Posts: 3,263
    with 5.01 the C/Front.dll supports a function to import objects
    Do you make it right, it works too!
  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,499
    [Removed the 'Good Posting!' attribute. This is not meant to let people read your message.]
  • abhishekpareekabhishekpareek Member Posts: 150
    Hi Everyone,
    Thanks for the great help.The application is awesome.
    In my scenario it is reuire to run that application without GUI.It should read the codeunit object from particular location and then write it to the Navision database without user intervention.

    It would be great if anybody could give light on this.

    Regards,
    Abhishek
  • garakgarak Member Posts: 3,263
    You need to run a codeunit in NAV by event?
    And this event is "fired" from a 3-rd App?

    If Yes, search the forum for NAS Socket MessageQueue and so on ...
    Do you make it right, it works too!
  • abhishekpareekabhishekpareek Member Posts: 150
    I have to write one application in .net that will take care of picking up a codeunit from a location in system and then importing it to Navision without opening it.

    regards,
    Abhishek
  • kinekine Member Posts: 12,562
    Than learn how to use the C/Front. If there will be something unclear, you can ask new question.


    Right now answer for you is: use C/Front for importing and exporting .fob to/from selected DB.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    YourDotNet Appl. pick up a Codeunit (fobfile) from, let's say C:\Myfolder\MyCUFile.fob. correct?
    Now, you need to import this CU into a database with your .net appl. Correct?
    If both yes and you are under 5.01 take a look into cfront.dll.
    a other way is the option with the ROT Table (but here no guaranty).
    Do you make it right, it works too!
  • mbjmbj Member Posts: 63
    You can use a NAS and a timer to import the objects. Then just place the fob's in a folder c:\fobimport\

    How to import / export fobs from nav:

  • kinekine Member Posts: 12,562
    1) THis is not exporting/importing FOBs...
    2) It is dangerous to do this in this way...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    This works only, if you import the BLOB from the same way like exporting (NAV code, direcly SQL) and the setup of the machines and databases should be the same. but it's possible, that in some cases the BLOB is corrupted
    Do you make it right, it works too!
  • abhishekpareekabhishekpareek Member Posts: 150
    I have to import fob to Navision without opening navision and to any version of navision.
    Cfront is a good idea but to use that navision should be of version 5.0 or greater.
    However I am creating a dot net application to achive this without user intervention.
    While creating this application,I need some assistance from all of you.

    Thanks for great and valuable responses to all of you.

    Regards,
    Abhishek
  • abhishekpareekabhishekpareek Member Posts: 150
    Hi ,

    Thanks to every one who give me help!
    I had developed a dot net application that is inserting FOBS directly without opeining Navision Object Designer.
    Now Navision Auto Update is implemented.

    Regards,
    Abhishek
  • kinekine Member Posts: 12,562
    Can you share some thoughts you have used to make this autoupdate,if it is possible to share? E.g. only which method you have used (ROT, direct Blob access, SendKeys, etc.)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • abhishekpareekabhishekpareek Member Posts: 150
    I had used the functionality from System.Runtime.InteropServices to implement the autoupdate for Navision.
    I had used the GUID for CSide object designer to fetch the desiner dynamically without opening the Obect Designer in Navision.
    Example::
    DefaultMonikerName = "!C/SIDE";
    ObjectDesignerGuid = "50000004-0000-1000-0001-0000836BD2D2";


    Regards,
    Abhishek
  • garakgarak Member Posts: 3,263
    Do you make it right, it works too!
  • abhishekpareekabhishekpareek Member Posts: 150
    yes.I had modified it to use as dll in any project.

    Regards,
    abhishek
  • abhishekpareekabhishekpareek Member Posts: 150
    Hi Everybody,

    I had posted my dvelopment regarding Navision auto update for FOBS in one website with source code.
    I had provided both dll and a small application developed in C# windows application to demonstrate the use of dll.
    However in the sample application I had allowed the forms,codeunits and tables objects to get imported but anybody can used this dll to import the table also.One can also used this dll in a webservice to automate the task for a complete autoupdate for Navision.This Dll can be used for versioning purpose also.
    As I had provided the source code for DLL also so one can also modify the code for DLL to extend its functionality.
    One can also used this DLL for Export,Import and compiling of Navision Objects without opening Navision Object designer.
    Everything is developed in C#.
    Please find the link for this posting:

    http://www.codeproject.com/KB/cs/AutoupateNAV.aspx

    Hope this would be useful.Please provide the ratings to this posting.Whenever there will be some new development on this DLL I will post it as an update.
    Thanks for the time.

    Regards,
    Abhishek Pareek
  • garakgarak Member Posts: 3,263
    Thanks for sharing
    Do you make it right, it works too!
  • abhishekpareekabhishekpareek Member Posts: 150
    Hi Everybody,

    The article name Nav Autoupdate is shifted to Libraray with the following link :

    http://www.codeproject.com/KB/library/AutoupateNAV.aspx

    Thanks,
    Abhishek Pareek
  • abhishekpareekabhishekpareek Member Posts: 150
    Hi Everybody,

    The article name Nav Autoupdate is shifted to Libraray with the following link :

    http://www.codeproject.com/KB/library/AutoupateNAV.aspx

    Thanks,
    Abhishek Pareek
  • abhishekpareekabhishekpareek Member Posts: 150
    Hi Everybody,

    The article name Nav Autoupdate is shifted to Libraray with the following link :

    http://www.codeproject.com/KB/library/AutoupateNAV.aspx

    Thanks,
    Abhishek Pareek
  • abhishekpareekabhishekpareek Member Posts: 150
    Hi Everybody,

    The article name Nav Autoupdate is shifted to Libraray with the following link :

    http://www.codeproject.com/KB/library/AutoupateNAV.aspx

    Thanks,
    Abhishek Pareek
  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,499
    @abhishekpareek

    [Please don't crosspost and post the same message over and over again.]

    Why not make your code available on mibuso.com? Then you have a separate thread in the Downloads-forum, so people can track updates more easily.
Sign In or Register to comment.