<?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 Re: Form Processor not able to generate form in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/form-processor-not-able-to-generate-form/m-p/32870#M13914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved this by doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error was "please provide a namespace resolver" when using super.generate(). This is because in the code for the superclass it references the null value this.namespace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not solve that issue and rather did a work around, I copied a lot of the code from the default form processor (stuff like getTypeItem(), generateDefaultFields(), makeItemData()...) and changed stuff as needed. The real key for me was that I needed to use&amp;nbsp;fieldProcessorRegistry.buildField(fieldName, data); in order to use the xml file as a field definition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding that and also for some reason needing to set&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;Item formItem = f.getItem();&lt;/SPAN&gt;&lt;BR style="color: #727174;" /&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;formItem.setType("scwf:adduser");&lt;/SPAN&gt;&lt;BR style="color: #727174;" /&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;formItem.setUrl("/api/classes/scwf_adduser");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Everything works as intended and I can safely override the default submit url to do my own parsing of the form results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2017 18:13:36 GMT</pubDate>
    <dc:creator>les21</dc:creator>
    <dc:date>2017-06-05T18:13:36Z</dc:date>
    <item>
      <title>Form Processor not able to generate form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/form-processor-not-able-to-generate-form/m-p/32869#M13913</link>
      <description>Hi, I'm trying to display a custom form using Alfresco.util.PopupManager.displayForm() however I'm having an issue trying to use my own form processor. It works without a hitch if I use the itemKind: "type", so the type processor but if I try to use my own "adduser" processor it just shows a blank f</description>
      <pubDate>Mon, 05 Jun 2017 12:53:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/form-processor-not-able-to-generate-form/m-p/32869#M13913</guid>
      <dc:creator>les21</dc:creator>
      <dc:date>2017-06-05T12:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Form Processor not able to generate form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/form-processor-not-able-to-generate-form/m-p/32870#M13914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved this by doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error was "please provide a namespace resolver" when using super.generate(). This is because in the code for the superclass it references the null value this.namespace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not solve that issue and rather did a work around, I copied a lot of the code from the default form processor (stuff like getTypeItem(), generateDefaultFields(), makeItemData()...) and changed stuff as needed. The real key for me was that I needed to use&amp;nbsp;fieldProcessorRegistry.buildField(fieldName, data); in order to use the xml file as a field definition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding that and also for some reason needing to set&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;Item formItem = f.getItem();&lt;/SPAN&gt;&lt;BR style="color: #727174;" /&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;formItem.setType("scwf:adduser");&lt;/SPAN&gt;&lt;BR style="color: #727174;" /&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;formItem.setUrl("/api/classes/scwf_adduser");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Everything works as intended and I can safely override the default submit url to do my own parsing of the form results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 18:13:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/form-processor-not-able-to-generate-form/m-p/32870#M13914</guid>
      <dc:creator>les21</dc:creator>
      <dc:date>2017-06-05T18:13:36Z</dc:date>
    </item>
  </channel>
</rss>

