PDA

View Full Version : DWC in a repeat region?


jason312679
06-03-2009, 10:24 AM
Maybe it's just the sudafed but I cannot seem to get my head around this problem.

We use the DWC to display summary data for individuals but the group manager wants a page that displays a summary chart for each person he supervises so he can quickly see patterns and outliers.

Because the DWC relies on a $_GET variable or $_SESSION variable passed into the *page_data1.php file, how (if possible) can we trick the system into generating multiple charts within a repeat region?

Ray Borduin
06-03-2009, 01:14 PM
You should be able to append to the url of the referenced data file and use that to create the correct dataset.

I believe there is no problem there. The $_GET variable is what you can add to that data file reference.

jason312679
06-03-2009, 01:24 PM
So change:

value="../DynamicWebCharts/open-flash-chart.swf?data=../DynamicWebCharts/Data/page_dataparser1.php?<?php echo (isset($_SERVER['QUERY_STRING'])?"GET=".str_replace("&","&sect;",$_SERVER['QUERY_STRING']):'');?>"

to

value="../DynamicWebCharts/open-flash-chart.swf?data=../DynamicWebCharts/Data/page_dataparser1.php?id=$row_MyRecordSet['column']&<?php echo (isset($_SERVER['QUERY_STRING'])?"GET=".str_replace("&","&sect;",$_SERVER['QUERY_STRING']):'');?>"

??

Ray Borduin
06-03-2009, 03:38 PM
That would probably work... but really I think it should be:

value="../DynamicWebCharts/open-flash-chart.swf?data=../DynamicWebCharts/Data/page_dataparser1.php?<?php echo (isset($_SERVER['QUERY_STRING'])?"GET=".str_replace("&","&sect;","id=".$row_MyRecordSet['column']."&".$_SERVER['QUERY_STRING']):'id='.$row_MyRecordSet['column'].'');?>"