xml - Unable to find field num_bc in directory schema bc. Trying to fallback on default one. [Nuxeo] -


what i'm trying populate dropdownlist database (num_bc). added schema bc, registered it, , created new directory bc_directory. can see values on dropdown list once click on can't select value.

here's log content:

[org.nuxeo.ecm.platform.ui.select2.common.select2common] unable find field num_bc in directory schema bc. trying fallback on default one. 

here's code: schema:

<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema"   targetnamespace="http://sample.nuxeo.org/sample/schemas/bc/"   xmlns:bc="http://sample.nuxeo.org/sample/schemas/bc/">    <xs:element name="num_bc" type="xs:string"/>   <xs:element name="date" type="xs:date"/>   <xs:element name="fournisseur" type="xs:string"/>   <xs:element name="code_fournisseur" type="xs:string"/>   <xs:element name="entreprise" type="xs:string"/>   <xs:element name="produit" type="xs:string"/>   <xs:element name="quantite" type="xs:string"/>   <xs:element name="montant_total" type="xs:string"/>   <xs:element name="prix_unitaire" type="xs:string"/>   <xs:element name="obsolete" type="xs:string"/>  </xs:schema> 

schema registrations:

<extension target="org.nuxeo.ecm.core.schema.typeservice" point="schema">     <schema name="bc" src="schemas/bc.xsd" /> </extension> 

i searched error generated, found have delete prefix on schema did not working though.

<extension target="org.nuxeo.ecm.directory.sql.sqldirectoryfactory"     point="directories">     <directory name="bc_directory">                     <schema>bc</schema>                     <datasource>java:/nxsqldirectory</datasource>                     <table>bc</table>                     <nativecase>false</nativecase>                     <idfield>num_bc</idfield>                     <autoincrementidfield>false</autoincrementidfield>                     <createtablepolicy>on_missing_columns</createtablepolicy>                     <querysizelimit>1000</querysizelimit>     </directory>  </extension> 

layout contribution:

<component name="org.nuxeo.project.sample.layouts">      <extension target="org.nuxeo.ecm.platform.forms.layout.weblayoutmanager" point="widgets">         <widget name="num_bc" type="suggestonedirectory">                         <labels>                           <label mode="any">numéro bc</label>                         </labels>                         <translated>true</translated>                         <fields>                           <field>bl:num_bc</field>                         </fields>                         <properties mode="any">                           <property name="width">300</property>                           <property name="labelfieldname">num_bc</property>                           <property name="dbl10n">true</property>                           <property name="minchars">0</property>                           <property name="hidehelplabel">true</property>                           <property name="directoryname">bc_directory</property>                           <property name="keyseparator">/</property>                           <property name="placeholder">num bc</property>                           <property name="documentschemas">dublincore,layout_demo_schema</property>                           <property name="repository">default</property>                         </properties>                         <controls mode="any">                           <!-- enable ajax submit on change/click/select on demo application -->                           <control name="supportinsideinputwidgeteffects">true</control>                         </controls>         </widget>      </extension>  </component> 


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -