cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 4.x Forms Development

subhajitsen
Champ in-the-making
Champ in-the-making
I want to create web forms using Alfresco 4.x forms service. I am new in Alfresco. Could you please share me simple step by step guide for creating sample form. I went though the wiki. Tried to apply fdk amp and put the fdk jar in tomcat shared or in webapps share. The Alfresco 4.0 Share did not start after restart doing the steps mentions in form service wiki. Following I tried:

Following are the steps I followed to install 4.x FDK in my Alfresco Community 4.0 server.
1> My server is running
2> I put the alfresco-fdk.amp in my installation amps folder(D:\Alfresco\amps).
3> run the apply_amps bat file
4> After  creating the shared folder in my installation ( D:\Alfresco\tomcat\shared),  I put the alfresco-fdk.jar in it.
5> I restarted the server.
6> There are errors in the log file, at the time of start up and Alfresco did not start.
7> I also tried by put the alfresco-fdk.jar in my installation D:\Alfresco\tomcat\webapps\share\WEB-INF\lib folder on a fresh installation by following the above steps. Then also after restart Alfresco did not start.
8> I also followed the following forum https://forums.alfresco.com/forum/developer-discussions/development-environment/where-can-i-get-alfr...

-Subhajit
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

the <a href="http://docs.alfresco.com/4.1/topic/com.alfresco.enterprise.doc/tasks/share-customize.html">Alfresco documentation</a> is pretty good on this part. And Jeff Potts has a widely praised <a href="http://ecmarchitect.com/images/articles/alfresco-content/content-article-2ed.pdf">guide</a> on <a href="http://ecmarchitect.com">his page</a>.

If you have any concrete issues with steps outlined in the documentation, the guide or the wiki, please keep in mind that in order to help, we need substantial information on the problem: what exactly did you try to do, what does your code look like, what - if any - is the error displayed in Alfresco logs or Tomcat console…

Regards
Axel

subhajitsen
Champ in-the-making
Champ in-the-making
Hi,

Thanks for the information. I have created custom content type mm:doc having 4 text types. I want to create a new custom form in share by that I will enter data in alfresco of my custom content types. I want content to be stored in xml format. Could you please help me by step by step guide, how can I do it . Following I tried.

1> I added following in share-config-custom.xml after doing the configuration for creating custom content type in alfresco. The content type addition was successful. It is in the D:\Alfresco\tomcat\shared\classes\alfresco\web-extension location.

<config evaluator="model-type" condition="mm:doc">
            <forms>
                <form id= "custom-form-id">
                    <field-visibility>
                                   <show id="mm:title" for-mode="view,edit,create" />
                                  <show id="mm:shortTitle" for-mode="view,edit,create" />

                                  <show id="mm:description" for-mode="view,edit,create" />
                                  <show id="mm:standardImageUrl" for-mode="view,edit,create" />
                      </field-visibility>
                   </form>
                </forms>
        </config>

I do not know , it is the right step or not to configure the form in alfresco comunity 4.0. if yes then how can I configure it in alfresco to view this form shome where in alfresco share. so that I can view this form and add data in alfresco.

I have added the xml configuration as file attachment also because I see in view mode it is not displayed.

Thanks in advance.

-Subhajit