Options

How do we do blob.IMPORT in an XMLPORT in V2009?

nodrognodrog Member Posts: 3
edited 2011-05-27 in NAV Three Tier
I am upgrading a V5 Dataport which imports bitmaps to existing Fixed Assets. The incoming file has FA No. and the file name. On the OnAfterImportRecord trigger I have code to IMPORT the file to the "Fixed Asset".Picture blob field.

However when I put the same code on a V2009 XMLPORT and compile it I get "Function 'IMPORT' is obsolete for Microsoft Dynamics NAV Server".

There are no clues on the new Page "Fixed Asset Picture", perhaps its a client function detecting the field type?? Does anyone know how to automate this function?

Answers

  • Options
    ara3nara3n Member Posts: 9,255
    Take a look at 3-Tier Automation Mgt. CU and use the function provide for export blob.

    TT.BLOBExport(BLOBRef,  'c:\Picture.BMP',FALSE)
    
    TT.BLOBImport(BLOBRef,'*.BMP',TRUE)
    
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    nodrognodrog Member Posts: 3
    Working now, getting a bit of 'hit OK to confirm filename to open' dialog in the RTC but I can live with that!

    Thanks Rashed. :D
  • Options
    ara3nara3n Member Posts: 9,255
    you are welcome.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    johannajohanna Member Posts: 369
    ara3n wrote:
    Take a look at 3-Tier Automation Mgt. CU and use the function provide for export blob.

    TT.BLOBExport(BLOBRef,  'c:\Picture.BMP',FALSE)
    
    TT.BLOBImport(BLOBRef,'*.BMP',TRUE)
    
    

    Hi ara3n,

    Could you tell me the ID object of 3-Tier Automation Mgt. CU ? Thank you..
    Best regards,

    Johanna
  • Options
    SogSog Member Posts: 1,023
    codeunit 419
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • Options
    johannajohanna Member Posts: 369
    Thanks sog :)
    Best regards,

    Johanna
Sign In or Register to comment.