Difference between revisions of "Documentation/4.0/Developers/Sandbox"

From Slicer Wiki
Jump to: navigation, search
Line 1: Line 1:
 
Back to [[Documentation/{{documentation/version}}/Developers|Developers Information]]←
 
Back to [[Documentation/{{documentation/version}}/Developers|Developers Information]]←
 +
 +
= Use of '''get_web_data''' and '''for_external_table''' =
  
 
The raw set of data retrieved using this [http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data URL] is reported below:
 
The raw set of data retrieved using this [http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data URL] is reported below:
Line 17: Line 19:
 
Pear,Yellow,"Pear-shaped"
 
Pear,Yellow,"Pear-shaped"
 
</pre>
 
</pre>
 
 
  
 
{{ambox
 
{{ambox
Line 25: Line 25:
 
}}
 
}}
  
 +
<pre>
 
{{#get_web_data:url=http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data|format=CSV with header|data=name=Name,color=Color,shape=Shape}}
 
{{#get_web_data:url=http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data|format=CSV with header|data=name=Name,color=Color,shape=Shape}}
 
{| class="wikitable"
 
{| class="wikitable"
Line 33: Line 34:
 
{{!}} {{{color}}} }}
 
{{!}} {{{color}}} }}
 
|}
 
|}
 +
</pre>
 +
 +
= Use of '''get_web_data''' and '''external_value''' =
  
 
{{ambox
 
{{ambox
Line 54: Line 58:
 
|filters=Name=Banana
 
|filters=Name=Banana
 
}}
 
}}
* bananashape:{{{bananashape}}}
+
* bananashape:{{#external_value:bananashape}}

Revision as of 08:28, 2 February 2012

Home < Documentation < 4.0 < Developers < Sandbox

Back to Developers Information

Use of get_web_data and for_external_table

The raw set of data retrieved using this URL is reported below:



Name,Color,Shape
Apple,Red,Round
Banana,Yellow,Oblong
Orange,Orange,Round
Pear,Yellow,"Pear-shaped"
{{#get_web_data:url=http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data|format=CSV with header|data=name=Name,color=Color,shape=Shape}}
{| class="wikitable"
! Name
! Color {{#for_external_table:<nowiki/>
{{!}}-
{{!}} [[{{{name}}}]]
{{!}} {{{color}}} }}
|}

Use of get_web_data and external_value

{{#get_web_data:
url=http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data
|format=CSV with header
|data=bananashape=Shape
|filters=Name=Banana
}}


  • bananashape:Error: no local variable "bananashape" was set.