Document Handling

speedyken
Member Posts: 15
Hi,
In Axapta there is a form smmDocuments that is uses on CRM --> Business Relations and click there on the button Documents.
Here you can add files to a Business Relation.
Now, there is an other form DocView that you can call from any form in the toolbar. On this form you can ad a document to a record that has been selected when you clicked this button.
Now is my question:
On smmDocuments you have an ActiveX control where you just have to put the file on that button and it's imported in a record.
Is this possible to insert this ActiveX control in the Docview form and let it work?
Greetings.
In Axapta there is a form smmDocuments that is uses on CRM --> Business Relations and click there on the button Documents.
Here you can add files to a Business Relation.
Now, there is an other form DocView that you can call from any form in the toolbar. On this form you can ad a document to a record that has been selected when you clicked this button.
Now is my question:
On smmDocuments you have an ActiveX control where you just have to put the file on that button and it's imported in a record.
Is this possible to insert this ActiveX control in the Docview form and let it work?
Greetings.
0
Comments
-
Problem Solved.
Only a few rules in the classdeclaration and in de dropfile method needed to make it work.
Greetz// AOSRunMode::Client void onEvent_DropFile(COMVariant _strFilePath) { DocuTypeId docuTypeId; ; docuTypeId = DocuType::findDroppedObjectType(smmDragDropObjectType::Document); // Check that document type is set up in CRM parameters form if (canAdd && docuTypeId) { fileAdd = true; docuRef_ds.create(); docuRef.RefRecId = actualTableId; docuRef.RefTableId = actualRecId; if (!smmDocuments::insertDroppedFile(_strFilePath.bStr(), docuRef)) { docuRef_ds.delete(); } else { docuRef_ds.reread(); } } else { // Document type is not set up in the CRM parameters throw error("@SYS86581"); } }
0
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