Accessing RecordLinks or Item Picture from WebServices
slimer
Member Posts: 6
Hi!
How can I access via webservices to the Picture of an Item?. When I'm trying to publish a Page with the Picture field I get a "El documento XML debe tener un elemento de nivel superior" (free translation: "The XML document needs a upper level element"). The webservice works fine when I remove this field on the Page.
If it's not possible. Can I access to the Item's RecordLinks via webservices?. I'm trying to access it via the Item Page (it has a SystemPart Part with a RecordLinks) but it doesn't works.
Thanks in advance for your answers,
slimer
P.S.: Excuse my very poor english (thanks google)
How can I access via webservices to the Picture of an Item?. When I'm trying to publish a Page with the Picture field I get a "El documento XML debe tener un elemento de nivel superior" (free translation: "The XML document needs a upper level element"). The webservice works fine when I remove this field on the Page.
If it's not possible. Can I access to the Item's RecordLinks via webservices?. I'm trying to access it via the Item Page (it has a SystemPart Part with a RecordLinks) but it doesn't works.
Thanks in advance for your answers,
slimer
P.S.: Excuse my very poor english (thanks google)
0
Answers
-
Based on experience I can tell you that Record Link table is a bit "special", I belive you can't "Run a Page" you built against it in RTC, however you can "consume the page" via webservices, this seems to be because the RTC assumes that this table is only dispayed in a System Part.
Anyway you can read the data in the Record Links Table with webservices. #-o, Just do a New Page against the Record Link Table,Query based on the Record ID formatting and you can crap the Links in there. Just keep in mind that this table is also used for the Notes in RTC.0 -
iceborg wrote:Based on experience I can tell you that Record Link table is a bit "special", I belive you can't "Run a Page" you built against it in RTC, however you can "consume the page" via webservices, this seems to be because the RTC assumes that this table is only dispayed in a System Part.
Anyway you can read the data in the Record Links Table with webservices. #-o, Just do a New Page against the Record Link Table,Query based on the Record ID formatting and you can crap the Links in there. Just keep in mind that this table is also used for the Notes in RTC.
Thanks for the answer iceborg. I tried to create a Page based on the Record Link table :oops: , but I was the same problem as in Item's Picture. VS 2008 showns the same error "El documento XML debe tener un elemento de nivel superior" (Google translator says "The XML document must have top level element"). I create the Page (List) as this:
Name Caption Type SubType SourceExpr
c <c> Container ContentArea
r <r> Group Repeater
Num <Id. vínculo> Field "Link ID"
ID <Id. del registro> Field "Record ID"
URL <URL1> Field URL1
Tipo <Tipo> Field Type
Any idea?
Thanks again,
slimer0 -
http://blogs.msdn.com/freddyk/archive/2008/11/04/transferring-data-to-from-com-automation-objects-and-webservices.aspx
Should tell you how to do this.
Note the example is for NAV 2009 (not SP1) - you will have to change the company name accordingly.Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
freddy.dk wrote:http://blogs.msdn.com/freddyk/archive/2008/11/04/transferring-data-to-from-com-automation-objects-and-webservices.aspx
Should tell you how to do this.
Note the example is for NAV 2009 (not SP1) - you will have to change the company name accordingly.
Great! Thanks a lot! Works fine! :thumbsup: I go to investigate how to do the same with Recods Links (I think it will works better for my plans). Is it the same way?
Thanks again,
slimer0 -
Can you help me create the base64 COM object please?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
- 322 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