Export Object as TxT file via code in a function

PureHeartPureHeart Member Posts: 190
Hi All,

Does anyone know if it is possible to export an object as txt (like form,report...) from Navision using a function and not the Export from the Object Designer?
I know is possible to export the objecy as *.bin but I would like to export it as text to be able to edit it as the standard function.

Many Thanks
Why don't you try my compare tool?
http://www.mibuso.com/dlinfo.asp?FileID=1123

Comments

  • garakgarak Member Posts: 3,263
    edited 2008-09-23
    sorry, the objects are stored and crypted in the BLOB of table object. To only way to export the objects via code is as binary.
    So, if you need text, you must go the way to the object designer .... (per hand or per WSHShell.sendkey)

    Regards
    Do you make it right, it works too!
  • kapamaroukapamarou Member Posts: 1,152
    I wish we could... :x
  • kinekine Member Posts: 12,562
    edited 2008-09-23
    There is only one way - SendKeys and smulate the keystrokes to open object designer, select the object, and run the Export function with filling in the path and enter...

    It is possible, I did it in our company version control system... ;-)


    Or you can use external application which will attach the nav client and use the standard functions to export the objects. See example from http://gotcal.com/
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • PureHeartPureHeart Member Posts: 190
    MMMMMM!
    :( there has to be a way to export the object not CRYPTED....
    :(
    Why don't you try my compare tool?
    http://www.mibuso.com/dlinfo.asp?FileID=1123
  • garakgarak Member Posts: 3,263
    edited 2008-09-27
    Yes kine, i do it also in this way. But this, and the manuel way, is the only way.

    @PureHeart: Note, that in some cases you must export more then one object. And someone you must export Table, Form, etc. in one file. So you must simulate, after selecting the objects in o-designer (Toggle Mark), press Button ALL, Marked only, Select all and then export as text

    @kine:
    nice link ..

    regards
    Do you make it right, it works too!
  • JDVyskaJDVyska Member Posts: 179
    kine wrote:
    See example from http://gotcal.com/

    Thank you very much for this link! With it, I was inspired to write a DLL that exposes the Got C/AL's object access routines to *within* the NAV client. See: http://www.mibuso.com/dlinfo.asp?FileID=1012


    So, now it is possible! \:D/
    JEREMY VYSKA
    CEO, Spare Brained Ideas, Göteborg, Sweden
    New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
  • PureHeartPureHeart Member Posts: 190
    JDVyska wrote:
    kine wrote:
    See example from http://gotcal.com/

    Thank you very much for this link! With it, I was inspired to write a DLL that exposes the Got C/AL's object access routines to *within* the NAV client. See: http://www.mibuso.com/dlinfo.asp?FileID=1012


    So, now it is possible! \:D/
    I can't Believe it you just posted what I've completed this morning a new powerful DLL to use with Navision!
    Anyway THANKS SO MUCH Søren Nielsen!!!!
    Why don't you try my compare tool?
    http://www.mibuso.com/dlinfo.asp?FileID=1123
  • JDVyskaJDVyska Member Posts: 179
    Haha... great minds, eh? If yours does anything mine doesn't, we can always strike up a conversation about collaborating to enhance the DLL. :mrgreen:
    JEREMY VYSKA
    CEO, Spare Brained Ideas, Göteborg, Sweden
    New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
  • PureHeartPureHeart Member Posts: 190
    JDVyska wrote:
    Haha... great minds, eh? If yours does anything mine doesn't, we can always strike up a conversation about collaborating to enhance the DLL. :mrgreen:
    :D Great Minds yes hahaha :lol: Well I think mine does exactly the same as yours my import function take as input also the object ID and No. so after having imported it, it does compile it....
    I would say it's the only difference :)
    Why don't you try my compare tool?
    http://www.mibuso.com/dlinfo.asp?FileID=1123
  • PureHeartPureHeart Member Posts: 190
    I'm trying to make the DLL work with NAS! Any Ideas?
    Let's do this Jeremy! :mrgreen:
    Why don't you try my compare tool?
    http://www.mibuso.com/dlinfo.asp?FileID=1123
Sign In or Register to comment.