<?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 Unable to find field num_bc in directory schema bc. Trying to fallback on default one. [Nuxeo] in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/unable-to-find-field-num-bc-in-directory-schema-bc-trying-to/m-p/318320#M5321</link>
    <description>&lt;P&gt;What I'm trying to do is to populate a dropdownlist from database (num_bc). I added the schema bc, I registered it, and  I created a new Directory bc_directory. All is good I can see the values on the Dropdown list but once I click on it I can't select its value.&lt;/P&gt;
&lt;P&gt;Here's the log content:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[org.nuxeo.ecm.platform.ui.select2.common.Select2Common] Unable to find field num_bc in directory schema bc. Trying to fallback on default one.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here's my Code:
Schema:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;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/"&amp;gt;
  
  &amp;lt;xs:element name="num_bc" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="date" type="xs:date"/&amp;gt;
  &amp;lt;xs:element name="fournisseur" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="code_fournisseur" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="entreprise" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="produit" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="quantite" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="montant_total" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="prix_unitaire" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="obsolete" type="xs:string"/&amp;gt;

&amp;lt;/xs:schema&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;BL schema:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://sample.nuxeo.org/sample/schemas/bl/"
  xmlns:bl="http://sample.nuxeo.org/sample/schemas/bl/"&amp;gt;
  
  &amp;lt;xs:element name="num_bc" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="num_bl" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="date" type="xs:date"/&amp;gt;
  &amp;lt;xs:element name="client" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="code_client" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="ref" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="quantite" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="montant_total" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="prix_unitaire" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="transporteur" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="code_transporteur" type="xs:string"/&amp;gt;

&amp;lt;/xs:schema&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Schema registrations:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"&amp;gt;
    &amp;lt;schema name="bc" src="schemas/bc.xsd" /&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I searched for the error generated, I found that I have to delete the prefix on schema I did not working though.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory"
    point="directories"&amp;gt;
    &amp;lt;directory name="bc_directory"&amp;gt;
    		        &amp;lt;schema&amp;gt;bc&amp;lt;/schema&amp;gt;
    		        &amp;lt;dataSource&amp;gt;java:/nxsqldirectory&amp;lt;/dataSource&amp;gt;
    		        &amp;lt;table&amp;gt;bc&amp;lt;/table&amp;gt;
    		        &amp;lt;nativeCase&amp;gt;false&amp;lt;/nativeCase&amp;gt;
    		        &amp;lt;idField&amp;gt;num_bc&amp;lt;/idField&amp;gt;
    		        &amp;lt;autoincrementIdField&amp;gt;false&amp;lt;/autoincrementIdField&amp;gt;
    		        &amp;lt;createTablePolicy&amp;gt;on_missing_columns&amp;lt;/createTablePolicy&amp;gt;
    		        &amp;lt;querySizeLimit&amp;gt;1000&amp;lt;/querySizeLimit&amp;gt;
    &amp;lt;/directory&amp;gt;
    
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Layout contribution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="org.nuxeo.project.sample.layouts"&amp;gt;

  	&amp;lt;extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point="widgets"&amp;gt;
		&amp;lt;widget name="num_bc" type="suggestOneDirectory"&amp;gt;
				        &amp;lt;labels&amp;gt;
				          &amp;lt;label mode="any"&amp;gt;Numéro BC&amp;lt;/label&amp;gt;
				        &amp;lt;/labels&amp;gt;
				        &amp;lt;translated&amp;gt;true&amp;lt;/translated&amp;gt;
				        &amp;lt;fields&amp;gt;
				          &amp;lt;field&amp;gt;bl:num_bc&amp;lt;/field&amp;gt;
				        &amp;lt;/fields&amp;gt;
				        &amp;lt;properties mode="any"&amp;gt;
				          &amp;lt;property name="width"&amp;gt;300&amp;lt;/property&amp;gt;
				          &amp;lt;property name="labelFieldName"&amp;gt;num_bc&amp;lt;/property&amp;gt;
				          &amp;lt;property name="dbl10n"&amp;gt;true&amp;lt;/property&amp;gt;
				          &amp;lt;property name="minChars"&amp;gt;0&amp;lt;/property&amp;gt;
				          &amp;lt;property name="hideHelpLabel"&amp;gt;true&amp;lt;/property&amp;gt;
				          &amp;lt;property name="directoryName"&amp;gt;bc_directory&amp;lt;/property&amp;gt;
				          &amp;lt;property name="keySeparator"&amp;gt;/&amp;lt;/property&amp;gt;
				          &amp;lt;property name="placeholder"&amp;gt;Num bc&amp;lt;/property&amp;gt;
				          &amp;lt;property name="documentSchemas"&amp;gt;dublincore,layout_demo_schema&amp;lt;/property&amp;gt;
				          &amp;lt;property name="repository"&amp;gt;default&amp;lt;/property&amp;gt;
				        &amp;lt;/properties&amp;gt;
				        &amp;lt;controls mode="any"&amp;gt;
				          &amp;lt;!-- enable ajax submit on change/click/select on demo application --&amp;gt;
				          &amp;lt;control name="supportInsideInputWidgetEffects"&amp;gt;true&amp;lt;/control&amp;gt;
				        &amp;lt;/controls&amp;gt;
		&amp;lt;/widget&amp;gt;

    &amp;lt;/extension&amp;gt;

&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Jun 2015 12:19:29 GMT</pubDate>
    <dc:creator>Dalal_</dc:creator>
    <dc:date>2015-06-15T12:19:29Z</dc:date>
    <item>
      <title>Unable to find field num_bc in directory schema bc. Trying to fallback on default one. [Nuxeo]</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/unable-to-find-field-num-bc-in-directory-schema-bc-trying-to/m-p/318320#M5321</link>
      <description>&lt;P&gt;What I'm trying to do is to populate a dropdownlist from database (num_bc). I added the schema bc, I registered it, and  I created a new Directory bc_directory. All is good I can see the values on the Dropdown list but once I click on it I can't select its value.&lt;/P&gt;
&lt;P&gt;Here's the log content:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[org.nuxeo.ecm.platform.ui.select2.common.Select2Common] Unable to find field num_bc in directory schema bc. Trying to fallback on default one.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here's my Code:
Schema:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;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/"&amp;gt;
  
  &amp;lt;xs:element name="num_bc" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="date" type="xs:date"/&amp;gt;
  &amp;lt;xs:element name="fournisseur" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="code_fournisseur" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="entreprise" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="produit" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="quantite" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="montant_total" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="prix_unitaire" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="obsolete" type="xs:string"/&amp;gt;

&amp;lt;/xs:schema&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;BL schema:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://sample.nuxeo.org/sample/schemas/bl/"
  xmlns:bl="http://sample.nuxeo.org/sample/schemas/bl/"&amp;gt;
  
  &amp;lt;xs:element name="num_bc" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="num_bl" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="date" type="xs:date"/&amp;gt;
  &amp;lt;xs:element name="client" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="code_client" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="ref" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="quantite" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="montant_total" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="prix_unitaire" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="transporteur" type="xs:string"/&amp;gt;
  &amp;lt;xs:element name="code_transporteur" type="xs:string"/&amp;gt;

&amp;lt;/xs:schema&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Schema registrations:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"&amp;gt;
    &amp;lt;schema name="bc" src="schemas/bc.xsd" /&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I searched for the error generated, I found that I have to delete the prefix on schema I did not working though.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory"
    point="directories"&amp;gt;
    &amp;lt;directory name="bc_directory"&amp;gt;
    		        &amp;lt;schema&amp;gt;bc&amp;lt;/schema&amp;gt;
    		        &amp;lt;dataSource&amp;gt;java:/nxsqldirectory&amp;lt;/dataSource&amp;gt;
    		        &amp;lt;table&amp;gt;bc&amp;lt;/table&amp;gt;
    		        &amp;lt;nativeCase&amp;gt;false&amp;lt;/nativeCase&amp;gt;
    		        &amp;lt;idField&amp;gt;num_bc&amp;lt;/idField&amp;gt;
    		        &amp;lt;autoincrementIdField&amp;gt;false&amp;lt;/autoincrementIdField&amp;gt;
    		        &amp;lt;createTablePolicy&amp;gt;on_missing_columns&amp;lt;/createTablePolicy&amp;gt;
    		        &amp;lt;querySizeLimit&amp;gt;1000&amp;lt;/querySizeLimit&amp;gt;
    &amp;lt;/directory&amp;gt;
    
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Layout contribution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="org.nuxeo.project.sample.layouts"&amp;gt;

  	&amp;lt;extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point="widgets"&amp;gt;
		&amp;lt;widget name="num_bc" type="suggestOneDirectory"&amp;gt;
				        &amp;lt;labels&amp;gt;
				          &amp;lt;label mode="any"&amp;gt;Numéro BC&amp;lt;/label&amp;gt;
				        &amp;lt;/labels&amp;gt;
				        &amp;lt;translated&amp;gt;true&amp;lt;/translated&amp;gt;
				        &amp;lt;fields&amp;gt;
				          &amp;lt;field&amp;gt;bl:num_bc&amp;lt;/field&amp;gt;
				        &amp;lt;/fields&amp;gt;
				        &amp;lt;properties mode="any"&amp;gt;
				          &amp;lt;property name="width"&amp;gt;300&amp;lt;/property&amp;gt;
				          &amp;lt;property name="labelFieldName"&amp;gt;num_bc&amp;lt;/property&amp;gt;
				          &amp;lt;property name="dbl10n"&amp;gt;true&amp;lt;/property&amp;gt;
				          &amp;lt;property name="minChars"&amp;gt;0&amp;lt;/property&amp;gt;
				          &amp;lt;property name="hideHelpLabel"&amp;gt;true&amp;lt;/property&amp;gt;
				          &amp;lt;property name="directoryName"&amp;gt;bc_directory&amp;lt;/property&amp;gt;
				          &amp;lt;property name="keySeparator"&amp;gt;/&amp;lt;/property&amp;gt;
				          &amp;lt;property name="placeholder"&amp;gt;Num bc&amp;lt;/property&amp;gt;
				          &amp;lt;property name="documentSchemas"&amp;gt;dublincore,layout_demo_schema&amp;lt;/property&amp;gt;
				          &amp;lt;property name="repository"&amp;gt;default&amp;lt;/property&amp;gt;
				        &amp;lt;/properties&amp;gt;
				        &amp;lt;controls mode="any"&amp;gt;
				          &amp;lt;!-- enable ajax submit on change/click/select on demo application --&amp;gt;
				          &amp;lt;control name="supportInsideInputWidgetEffects"&amp;gt;true&amp;lt;/control&amp;gt;
				        &amp;lt;/controls&amp;gt;
		&amp;lt;/widget&amp;gt;

    &amp;lt;/extension&amp;gt;

&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jun 2015 12:19:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/unable-to-find-field-num-bc-in-directory-schema-bc-trying-to/m-p/318320#M5321</guid>
      <dc:creator>Dalal_</dc:creator>
      <dc:date>2015-06-15T12:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find field num_bc in directory schema bc. Trying to fallback on default one. [Nuxeo]</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/unable-to-find-field-num-bc-in-directory-schema-bc-trying-to/m-p/318321#M5322</link>
      <description>&lt;P&gt;Please don't cross-post or at least mention the duplicate&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 16:21:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/unable-to-find-field-num-bc-in-directory-schema-bc-trying-to/m-p/318321#M5322</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2015-06-15T16:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find field num_bc in directory schema bc. Trying to fallback on default one. [Nuxeo]</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/unable-to-find-field-num-bc-in-directory-schema-bc-trying-to/m-p/318322#M5323</link>
      <description>&lt;P&gt;You say:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;field&amp;gt;bl:num_bc&amp;lt;/field&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where does that &lt;CODE&gt;bl&lt;/CODE&gt; comme from?&lt;/P&gt;
&lt;P&gt;Also you should always explicitly define the prefix when defining the schema:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;schema name="bc" prefix="bc" src="schemas/bc.xsd" /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jun 2015 12:31:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/unable-to-find-field-num-bc-in-directory-schema-bc-trying-to/m-p/318322#M5323</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2015-06-16T12:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find field num_bc in directory schema bc. Trying to fallback on default one. [Nuxeo]</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/unable-to-find-field-num-bc-in-directory-schema-bc-trying-to/m-p/318323#M5324</link>
      <description>&lt;P&gt;I updated the post and added the BL schema; in the layout of the BL I want to add a list of Bc (NumBc). and for the prefix I had it at first and deleted it after I searched for the error not working in both cases.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:44:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/unable-to-find-field-num-bc-in-directory-schema-bc-trying-to/m-p/318323#M5324</guid>
      <dc:creator>Dalal_</dc:creator>
      <dc:date>2015-06-16T14:44:35Z</dc:date>
    </item>
  </channel>
</rss>

