Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

MASHUP: Combining results from 2 DataObjecySets


2 Posts   1668 Views


14 August 2007 at 9:51pm (Last edited: 14 August 2007 9:52pm), Community Member, 22 Posts

Suppose in mashup:

      $yw = new RestfulService($feed,$location_name,$cash_lifetime);
      $params = array(
      $conn = $yw->connect();
      $yahooWeather = $yw->searchAttributes($conn, "//yweather:condition");
      return $yahooWeather;

Suppose if I want to get data from an other attribute:
$yahooWeather2 = $yw->searchAttributes($conn, "//yweather:forecast");
Can I combine yahooWeather and yahooWeather2 to return 1output?


23 August 2007 at 9:21pm Community Member, 22 Posts

I tried with merge:

The problem is that when using in the template (Control) , you will have 2 arrayresults. How can we combine them into 1 array result?