Hi.
This question really has two parts:
The simple question is how to get a page from the web into a variable. I know it's through the use of an Automation variable, but which one and what method(s)? (I've been beating my head against a lot of walls 'cuz that's the best way to learn ... but it hurts now.)
The bigger question is this: I'm not an MS environment guro, I see all kinds of cool looking Automation classes through NAV, and I'm sorta comfortable with COM concepts in a differernt context/environment, but, what reference(s) would I use as a guide to what the classes do (for me in NAV particularly)?
Thank's in advance
0
Comments
Or you can use automation "'Microsoft WinHTTP Services, version 5.1'.WinHttpRequest" with the Open and WaitForResponse functions to get the data (but there will be some limitation what you can do with the result I think).
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks - I'm almost there - but not getting any usable data. Here's what I've got:
I've got to be missing something really simple. Can you spot it?
Thanks (big time) in advance.
still makes me happy
http://www.BiloBeauty.com
http://www.autismspeaks.org
HyperLink opens IE on the URL, but I want the contents of the page in a C/AL variable so I can parse values from it.
Bob
Store the xml as file on hdd and take a look into
http://www.BiloBeauty.com
http://www.autismspeaks.org
Well, in the example I posted, I am using a URL I know exists (www.mibuso.com). Also, I would think that the line XMLData := XMLDOMDocument.text; would return the entire page, regardless of what nodes may or may not exist. But XMLData is alway's empty, no matter what URL I try.
All I want to do is get the contents of a web page into a variable and I've been at it the whole day now. Here's the latest dead-end:
You guessed it, the type is 'Unknown'.
SURELY this can't be that hard! ](*,)
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Here's the result:
](*,) #-o