Hello!!

I have a php automation code which create a new document and
assign the properties to it, it works fine except when the
property is declared as "stringList" in the schema, this
create a new table referencing to the correspondent field
but the value of this property is not inserted into this
field from my code, below you'll find the references:

schemam definicion:
<extension target="org.nuxeo.ecm.core.schema.TypeService"
point="schema">
    <schema name="aleph" prefix="aleph"
src="data/schemas/aleph.xsd"/>
  </extension>

aleph.xsd:
...
<xs:element name="editorial" type="xs:string"/>
<xs:element name="autor_contenido" type="nxs:stringList"/>
...

code:
...
$answer = $session->newRequest("Document.SetProperty")
->set('input', 'doc:' . $path)
->set('params', 'value', "My Editorial")
->set('params', 'xpath', "aleph:editorial")
->sendRequest();

$answer = $session->newRequest("Document.SetProperty")
->set('input', 'doc:' . $path)
->set('params', 'value', "autor 01")
->set('params', 'xpath', "aleph:autor_contenido")
->sendRequest();

here the first property is set fine but the second one does
not work, any clue would be apreciated

Thanks in advanced
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to