<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic automatically associate documents to a template for REST created documents in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/automatically-associate-documents-to-a-template-for-rest-created/m-p/313621#M622</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I've installed the template-rendering-addon and configured it to automatically associate to a documenttype.&lt;/P&gt;
&lt;P&gt;If I create a new document by using the web interface of Nuxeo it works fine.
However if I try to create a new document using the REST API the template is not bound to the document. (it does not show in the tab associated templates).&lt;/P&gt;
&lt;P&gt;my REST api call is as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;jQuery.ajax({
	type: 'POST',
	contentType: "application/json",
	dataType: "json",
	url: '/nuxeo/api/v1/path/default-domain/workspaces/A',
	data: '{"entity-type": "document", "name":"answers2", "type": "surveyAnswers", "properties": {"dc:title":"testje","surveyanswers:question1n":' +now1+',"surveyanswers:question1f": '+future1+',"surveyanswers:question2n": '+now2+',	"surveyanswers:question2f": '+future2+',"surveyanswers:question3n": '+now3+',	"surveyanswers:question3f": '+future3+'}}'
	}
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is it supported to bind templates automatically to documents created by the REST API?&lt;/P&gt;
&lt;P&gt;Thanks in advance,
Bauke&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2014 18:28:07 GMT</pubDate>
    <dc:creator>Bauke_Roo</dc:creator>
    <dc:date>2014-02-25T18:28:07Z</dc:date>
    <item>
      <title>automatically associate documents to a template for REST created documents</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automatically-associate-documents-to-a-template-for-rest-created/m-p/313621#M622</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I've installed the template-rendering-addon and configured it to automatically associate to a documenttype.&lt;/P&gt;
&lt;P&gt;If I create a new document by using the web interface of Nuxeo it works fine.
However if I try to create a new document using the REST API the template is not bound to the document. (it does not show in the tab associated templates).&lt;/P&gt;
&lt;P&gt;my REST api call is as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;jQuery.ajax({
	type: 'POST',
	contentType: "application/json",
	dataType: "json",
	url: '/nuxeo/api/v1/path/default-domain/workspaces/A',
	data: '{"entity-type": "document", "name":"answers2", "type": "surveyAnswers", "properties": {"dc:title":"testje","surveyanswers:question1n":' +now1+',"surveyanswers:question1f": '+future1+',"surveyanswers:question2n": '+now2+',	"surveyanswers:question2f": '+future2+',"surveyanswers:question3n": '+now3+',	"surveyanswers:question3f": '+future3+'}}'
	}
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is it supported to bind templates automatically to documents created by the REST API?&lt;/P&gt;
&lt;P&gt;Thanks in advance,
Bauke&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:28:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automatically-associate-documents-to-a-template-for-rest-created/m-p/313621#M622</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-02-25T18:28:07Z</dc:date>
    </item>
  </channel>
</rss>

