Object export

SimonW
Member Posts: 77
Does anyone know of any other way of accessing the object export dialog other than by having the Object Designer loaded?
0
Comments
-
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.0 -
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?0 -
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 Ohlfsen0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions