Dear All,

I am new to opensocial container development and I have recently installed
shindig and partuza. everything is working fine so far except data
pipelining. Only <os:HttpRequest> works and all others including
<os:OwnerRequest> <os:ViewerRequest> doesn't work.

I am getting the following error:

Un-recogonized identity name in the data context OwnerName

Here is my gadget XML code
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="List Friends Example">
    <Require feature="opensocial-0.9"/>
        <Require feature="opensocial-data"/>
        <Require feature="opensocial-templates"><Param
name="process-on-server">True</Param></Require>>
  </ModulePrefs>
  <Content type="html">
  <![CDATA[
    <script type="text/os-data" xmlns:os="
http://ns.opensocial.org/2008/markup";>
       <os:HttpRequest key="exampledata" href="
http://localhost/os/jobs.php?ci=Lahore&amp;co=Pakistan"; format="json"/>
           <os:OwnerRequest key="OwnerName" />
    </script>
    <script type="text/os-template" xmlns:os="
http://ns.opensocial.org/2008/markup"; xmlns:osx="
http://ns.opensocial.org/2009/extensions"; require="exampledata">
        Hello ${OwnerName}
      <a href="${exampledata.result.content.jobs[0].jobID}">${
exampledata.result.content.jobs[0].jobTitle}</a><br />
          <a href="${exampledata.result.content.jobs[1].jobID}">${
exampledata.result.content.jobs[1].jobTitle}</a>
    </script>
  ]]>
  </Content>
</Module>

if I remove the "Hello ${OwnerName}" then it works fine. I need to get the
Owner or Viewer's information. Am I doing anything wrong? Please help me

--
Shafiq



Naseeb Networks Confidentiality Notice:
This e-mail and any files transmitted with it are private and confidential and 
are solely for the use of the addressee.  It may contain material which is 
legally privileged.  If you are not the addressee or the person responsible for 
delivering to the addressee, be advised that you have received this e-mail in 
error and that any use of it is strictly prohibited.

Reply via email to