How to modify rel-attribute

Jan 9, 2014 at 9:54 AM
Hello,

I'm trying to post linked entries in atom-format to Odata service. Only thing missing from my payload is that rel-attribute should be: "http://schemas.microsoft.com/ado/2007/08/dataservices/related/SOItems". Currently it's automatically generated to "http://schemas.microsoft.com/ado/2007/08/dataservices/related/links"

Heres my current payload:
<a:entry xmlns:a="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<a:author>
<a:name></a:name>
</a:author>
<a:content type="application/xml">
<m:properties>
<d:odata.type>SOItems</d:odata.type>
<d:OrderId>0</d:OrderId>
<d:DocumentType>TA</d:DocumentType>
<d:CustomerId>0000001033</d:CustomerId>
<d:SalesOrg>1000</d:SalesOrg>
<d:DistChannel>12</d:DistChannel>
<d:Division>00</d:Division>
<d:DocumentDate m:null="true"></d:DocumentDate>
<d:OrderValue m:null="true"></d:OrderValue>
<d:Currency m:null="true"></d:Currency>
</m:properties>
</a:content>
<a:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/links" type="application/atom+xml;type=entry">
<m:inline>
<a:feed>
<a:entry>
<a:author>
<a:name></a:name>
</a:author>
<a:content type="application/xml">
<m:properties>
<d:OrderId>0</d:OrderId>
<d:Item>000020</d:Item>
<d:Material>M-06</d:Material>
<d:Plant>1200</d:Plant>
<d:Quantity>200.000</d:Quantity>
<d:Description m:null="true"></d:Description>
<d:UoM m:null="true"></d:UoM>
<d:Value m:null="true"></d:Value>
</m:properties>
</a:content>
</a:entry>
<a:entry>
<a:author>
<a:name></a:name>
</a:author>
<a:content type="application/xml">
<m:properties>
<d:OrderId>0</d:OrderId>
<d:Item>000020</d:Item>
<d:Material>M-06</d:Material>
<d:Plant>1200</d:Plant>
<d:Quantity>200.000</d:Quantity>
<d:Description m:null="true"></d:Description>
<d:UoM m:null="true"></d:UoM>
<d:Value m:null="true"></d:Value>
</m:properties>
</a:content>
</a:entry>
</a:feed>
</m:inline>
</a:link>
</a:entry>
How can I set rel-attribute for linked entry with datajs.

Thanks,

Br,
Raine