Object export

SimonWSimonW Member Posts: 77
edited 2000-02-17 in Navision Financials
Does anyone know of any other way of accessing the object export dialog other than by having the Object Designer loaded?

Comments

  • dbdb Member Posts: 82
    If you need accsses fdb objects, there are simple rec with BLOB's, feel free work with them.
    If you need to export/import them, not using standart dialogs, create own format of export file.
  • SimonWSimonW Member Posts: 77
    I don't seem to be able to create a dataport with 'blob' field types in it.
    Would I need to use a C/Front or ODBC connect to extract this data?
  • ohlfsenohlfsen Member Posts: 5
    This codeunit (in exported text-format) exports form 21 and imports it back again as form 80003.

    Don't know is this is a recommendable way to go about things, but it seems to work.

    OBJECT Codeunit 81000 im/export objekt
    {
    OBJECT-PROPERTIES
    {
    Date=16-02-00;
    Time=19:22:43;
    Modified=Yes;
    Version List=;
    }
    PROPERTIES
    {
    OnRun=BEGIN
    WITH BlobRec DO BEGIN
    GET(BlobRec.Type::Form,'',21);
    CALCFIELDS("BLOB Reference");
    "BLOB Reference".EXPORT('c:\form21.bin');
    INIT;
    ID:=80003;
    Type:=BlobRec.Type::Form;
    Name:='TestForm';
    "BLOB Reference".IMPORT('c:\form21.bin');
    Date:=TODAY;
    END;
    BlobRec.Time:=TIME;
    BlobRec.INSERT;
    END;

    }
    CODE
    {
    VAR
    BlobRec : Record 2000000001;
    ok : Boolean;

    BEGIN
    END.
    }
    }



    Best regards
    Allan Ohlfsen [/i}
    Best regards
    Allan Ohlfsen
Sign In or Register to comment.