BLOB Format

Borislav_PopovBorislav_Popov Member Posts: 14
edited 2000-02-10 in Navision Financials
Does anyone know the format of the Binary Long Object used in NF ?

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    As the name says: it is binary information. You can import whatever object you want (*.doc, *.gif, *.zip). It really doesn't matter.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • jpjp Member Posts: 47
    A BLOB is data, FOB files do not contain data, they contain control objects. BLOBs are imported and exposted using the
    commands:

    [ImportName :=] := BLOB.IMPORT([Name [, CommonDialog]])

    [ExportName :=] := BLOB.EXPORT([Name [, CommonDialog]])
    -jp
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    I think Borislav wants to import NF-objects, directly into the object-table.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Borislav_PopovBorislav_Popov Member Posts: 14
    Thank You Luc. That's right, though not only import but construct them. There is no problem with importing them. What I really need is a tool that creates a *.fob file from a TXT file containing C/AL code. A Pseudo-Compiler. I doubt in the existence of such a tool so I need the format of FOB files.
  • Borislav_PopovBorislav_Popov Member Posts: 14
    10x for Your reply. ok <img border="0" title="" alt="" src="images/smiles/icon_smile.gif" /> wrong question i suppose. What i really need is the format of *.FOB but without the header. So i can construct a *.fob file and import it in a BLOB in the Object table.
  • jpjp Member Posts: 47
    The only tool that compiles C/AL code into objects is in Navision Financials. For an end user, it requires the purchase of a license with the appropriate design granules.

    Creating or modifying objects by any other means would be a direct violation of the end user's license. Not to mention the opportunity for corrupting or otherwise invalidating the accounting data stored in the database.
    -jp
  • Otto_DreyerOtto_Dreyer Member Posts: 16
    I think it's virtually impossible to compile standalone object, because all objects that are referenced must be available for compiler to do the checking (say, definitions of tables that are used, and so on...)
  • dbdb Member Posts: 82
    I don't think that good idea is to create obj compiler.
    1.NF will not give any support in this, in case if your compiler N times will better, too !
    2.NF changing obj in every next version, you will not be able follow changes.

    The best thing that you can do, create txt file & import/ compile them using NF compiler. I hope NF latests versions a copatible with older <img border="0" title="" alt="" src="images/smiles/icon_smile.gif" />

    If you need to automatic there no solution known by me.
    Anybody know how call compiler func from C/AL ?

    In future NF plans are making a new compiler. I don't know how far they will try to go & how many years it takes. I hope C/AL will look less than 5 years antique.
  • UrmasUrmas Member Posts: 76
    If you really want, you could export an object (directly from Objects table), finger it a bit and import it back. If you need to change only some key features, it will work. Using this approach, I was able to create an "universal form" what can display 2 fields (usually code + name) of any Navision table.
  • jbolksjbolks Member Posts: 17
    Is there already a solution for:
    1. automatic exporting objects in txt-format from C/AL?
    2. Is it possible to get objects in txt-format via C/Front ?

    best regards,
    Jan
  • PcPc Member Posts: 3
    If you need to dynamically create objects in the NF Database, you can create a text-file containg the C/AL Code. The structure of this format can be examined by exporting the existing objects in the database in text format.

    Of course this requeres the corresponding licence permissions to do so!
    Regards

    Pc
  • UrmasUrmas Member Posts: 76
    to Pc

    And how can you dynamically import the created txt format object ?

    Urmas
  • PcPc Member Posts: 3
    You can create a variable liek this
    Name: Obj
    Type: Record
    Subtype: Object

    With Obj do begin
    Type := Type::Form;
    Id := 50000;
    ....
    BLOB.IMPORT(FilenameOfYourTextFile);
    INSERT;
    end;

    The only thing you cannot do dynamically is to compile the object.


    Regards

    Pc
    Regards

    Pc
Sign In or Register to comment.