Wednesday 04 August 2004 12:43:45 pm
Thanks for all your help guys. I really appreciate it. So the code that Paul ( Forsyth) posted still returns an empty array. I think my confusion here comes from a lack of a in-depth understanding of how exactly the different name spaces work, and how to get data from a loop to the (global?) namespace, so I can use it as a single array. However, the post by Paul (Borgermans) about using the append-block command got me thinking, and I ended up this code:
{let myvar=array()
{section var=Polldata loop=fetch('content','list',hash(parent_node_id,$node.node_id,sort_by,$node.sort_array))}
{append-block scope=global variable=myvar}{$Polldata.data_map.polloutcome.content}{/append-block}
{/section}
{jpgraph ("test2", $myvar, 2)}
{/let}
{/let}
And what do you know, but it works! :-)
Thanks to everyone who responded,
Nathaniel
-- http://politicalretort.org
|