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.
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.
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.
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...)
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.
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.
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!
Comments
commands:
[ImportName :=] := BLOB.IMPORT([Name [, CommonDialog]])
[ExportName :=] := BLOB.EXPORT([Name [, CommonDialog]])
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.
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.
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
Of course this requeres the corresponding licence permissions to do so!
Pc
And how can you dynamically import the created txt format object ?
Urmas
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
Pc