SAFEARRAY in NAV Classic Client

NavKumar
Member Posts: 5
Hello every one.
I have created a COM dll by adding a webservice reference. One of the method in webservice returns list of items order wise. The dll is used as an automation variable in NAV 2009R2 version. Issue is that the method which brings back items list need to be handled in SAFEARRAY as function definition displayed in NAV. Few blogs says its a limitation of COM / Automation that all things are not handled. Few says use VARAINT for SAFEARRAY. But using Variant is also not working fine as all function of variant variable retuned NO. Like ISTEXT, ISFILE,ISRECORD..etc all are NO.
Please suggest if there is any way to handle this. Function definition is also attached for reference. Automation even did not have System.Array kind of things else it may help
Let me know
Thanks
Nav
I have created a COM dll by adding a webservice reference. One of the method in webservice returns list of items order wise. The dll is used as an automation variable in NAV 2009R2 version. Issue is that the method which brings back items list need to be handled in SAFEARRAY as function definition displayed in NAV. Few blogs says its a limitation of COM / Automation that all things are not handled. Few says use VARAINT for SAFEARRAY. But using Variant is also not working fine as all function of variant variable retuned NO. Like ISTEXT, ISFILE,ISRECORD..etc all are NO.
Please suggest if there is any way to handle this. Function definition is also attached for reference. Automation even did not have System.Array kind of things else it may help
Let me know
Thanks
Nav
0
Answers
-
Have you tried using the dbOleWrapper component?...
mibuso.com/downloads/dbolewrapper-v0.2
forum.mibuso.com/discussion/comment/220118#Comment_220118
forum.mibuso.com/discussion/comment/63321#Comment_633210 -
Hi Kishorm , Thanks for help. I will try this and will let you know.0
-
Hi Kishorm , I have tried but it did not work for me. this OCX functions are sending Variant as parameter to destination , but in my case I have to receive variant list as orders and no function of this OCX have return type as variant.
DBOLE.ArrayCreate(SalesHeaderArray,1000);
SalesHeaderArray := Conn.salesOrderList(SessID,filters);
Nothing in salesheaderarray. Any suggestion. ?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