Table Of Contents

GraphTools ► Fetch

Use the Fetch tool to retrieve data from a web server or the file system on your computer as referenced by a URL. The Fetch tool is diagrammed here:

URL Types

There are two types of URLs that can be used as defined here:

Notice that the Web URL gives access to a programmable system. For example, you can turn on your Web Sharing in the system preferences and then use PHP, perl or other scripting languages to write algorithms to retrieve computed data. The URL would be of this form: "http://localhost/cgi-bin/myalgorithm?data=lab1&section=2&param1=5" and you use the scripting engine's built-in form facilities to parse the URL parameters as input to an algorithm. Alternatively, the URL could point to an existing web service to retrieve SOA type information from queries.

Content Format Type

If the component pop up button does not exist or a column number is selected on it then the content retrieved from a URL (the response bytes) is formatted according to the list below. Note that the fetch content format is simple, it is just a list of numbers with a blank delimiter. No fancy XML formatting and no dimension data. It is intended be as simple as possible in order to facilitate ease of use. Data formats are also explained in each Task's Help tool and section in this manual.

If the component pop up button does not exist or "All" is selected then the content retrieved from a URL (the response bytes) can be XML. For an explanation of this content see the XML Fetch tutorial.

Fetch Timing

Fetching data can occur at different time intervals as defined here:

Fetch Operation

In a nutshell, when a fetch occurs the data is retrieved, entered into the task and then displayed. Usually the fetch appears to be atomic, that is: it seems to be a single operation. However, fetching is asynchronous and non-atomic. You may notice this fact if the fetch takes a long time. Also, for tasks that have multiple columns the fetch is on a per-column basis and the fetch retrieves each column individually until all columns are fetched and then updates the task with the fetched data. Multiple column fetches are done in parallel and asynchronously and each column fetch rendezvous to amalgamate the fetch into a single result.




© Copyright 1993-2021 by VVimaging, Inc. (VVI); All Rights Reserved. Please email support@vvi.com with any comments you have concerning this documentation. See Legal for trademark and legal information.