Closed GoogleCodeExporter closed 9 years ago
Please remove the / from the end of your URL.
It should read: http://localhost/alfresco/wcs/form-builder/home
and not
http://localhost/alfresco/wcs/form-builder/home/
Original comment by mike.pri...@abstractive.ca
on 7 Jun 2012 at 6:06
[deleted comment]
[deleted comment]
The Web Script /alfresco/wcs/form-builder/home/ is NOT a URL.
Remove your trailing /. The correct URL is
/alfresco/wcs/form-builder/home
Original comment by mike.pri...@abstractive.ca
on 7 Jun 2012 at 6:34
If you look in the root of the zip file there is a module.properties file.
Original comment by mike.pri...@abstractive.ca
on 7 Jun 2012 at 6:37
Use 7-Zip or win zip to browse your amp file (an AMP file is just a ZIP) You
will find the module.properies file in the root. The reason its giving you a
404 is because you have a trailing forward slash "/". If you go to
/alfresco/wcs/index you should see a family for Form Management. If you wish
you could get to the home page from there.
Original comment by mike.pri...@abstractive.ca
on 7 Jun 2012 at 6:39
Your AMP was probably installed correctly the first time around :)
Original comment by mike.pri...@abstractive.ca
on 7 Jun 2012 at 6:41
[deleted comment]
Stop tomcat
Put the amp into c:/alfresco/amps
Then run the apply_amps.sh file located c:/alfresco/bin/apply_amps.sh
This will install your amp into the WAR. Once it has completed it will (should)
delete the alfresco folder under. Tomcat/webapps/. If its not delete it
(c:/alfresco/tomcat/webapps/alfresco
Start tomcat.
Once alfresco is up and running go to http://localhost/alfresco/wcs/index
You should see Form Management in the list of web-script families.
Let me know when you get this far and we can continue.
Original comment by mike.pri...@abstractive.ca
on 7 Jun 2012 at 7:55
Sorry the amps is apply_amps.bat (WINDOWS) .sh is linux
Original comment by mike.pri...@abstractive.ca
on 7 Jun 2012 at 7:56
[deleted comment]
If you want to manually install the amp. You need to do a few things but I
don't recommend this as next time your WAR is expanded it will overwrite.
You must be installing the AMP incorrectly as a few hundred people have
installed this fine.
I have just installed the AMP on a fresh install to test this out. This is the
documentation from Alfresco.
http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fta
sks%2Famp-install.html
Unless i see what you are doing I cant really point out what going on. If you
have altered the .amp file in anyway. Try re-downloading the AMP again.
Original comment by mike.pri...@abstractive.ca
on 7 Jun 2012 at 8:38
[deleted comment]
[deleted comment]
Hi there, this is a very common question; There are many ways people may use
the form manager in share. Here are some examples:
Pre-Defined Metadata set - STRICT
A pre-defined metadata set means you control what metadata documents must have.
Instead of adding aspect upon aspect you use profiles to determine what users
should enter.
1) Document Type relation: Using an aspect to display a document type dropdown
list. When the user selects an option it builds out (displays) profiles
assigned to its value
2) Share site specific content. This allows different sites to have different
metadata profiles; You can use the same document type property and use the
/byShareSite option for displaying different lists of document types to the end
user. This way you can search on the same property globally across your
repository yet limit users choice based on site/dept
3) Allow alfresco to manage its own; Typically this would show side by side
Alfresco's default model information (using alfresco forms) and FM Custom
metadata (using FM model and using its benefits).
Dynamic form creation - TRADITIONAL
1) You could use the FM manager much like alfresco does; Take what aspects are
applied to the document and draw a form collection based upon that.
This requires that you have forms built for the default Alfresco metadata. Or
we could have a case match that ignores the default aspects and builds only
custom from that list.
The FM module was built as a framework to build forms and deploy using jQuery.
It allows for everything that was in the webinar but targeted more specifically
at custom development in Alfresco. It seems that the community would like to
replace Alfresco's internal Share form with it; which is great, but as you can
see there are many ways this can be tackled.
The current form initialization allows you to give a list of aspects (must be
available as forms in the form management app):
'aspects': []
Or giving it a profile (object taken from metadata profiles):
'profile': {}
I will be adding in a variable for something like:
'drawOptions': {
'drawByNodeAspects': <boolean>,
'ignoreAlfrescoDefaults': <boolean>
}
This would basically just grab the aspects applied to that node and pass it
into 'aspects' : []
NOTE: This requires a node to be passed into the jquery form builder
Hope this makes sense there's a bit on information there. I expect to have
something for the second method (TRADITIONAL) in the next week or so
Original comment by mike.pri...@abstractive.ca
on 12 Jun 2012 at 3:32
Hi again,
Please go to the home page of this project. I have added information on how to
get this all up and running. Code is attached for extending the form component
for alfresco.
Let me know how you get on.
Original comment by mike.pri...@abstractive.ca
on 12 Jun 2012 at 8:30
[deleted comment]
[deleted comment]
[deleted comment]
Hi There,
I have updated the Wiki as it wansnt clear to download the Share Form
Extension.zip that had the extensions.
Can you tell me what version of Alfresco you are using. Your webscript is
failing when trying to use page.url.templateArgs.site. This is the variable
that Alfresco Share holds your siteid in.
Cheers,
Mike
Original comment by mike.pri...@abstractive.ca
on 14 Jun 2012 at 2:44
[deleted comment]
[deleted comment]
I tried to replace those files once again,
I am still getting an error message:
*Exception:* org.springframework.extensions.webscripts.WebScriptException -
05140000 Failed to process template
org/alfresco/components/form/form.get.html.ftl
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:175)
*Exception:* freemarker.core.InvalidReferenceException - Expression
fmAspects is undefined on line 15, column 30 in
org/alfresco/components/form/form.get.html.ftl.
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
Please advise
Thanks again
Original comment by aba...@gmail.com
on 14 Jun 2012 at 6:28
Your getting a different error: fmAspects is undefined on line 15
fmAspects isn't in the two files in that zip file. Are you sure you are
replacing the files:
form.get.html.ftl
form.get.head.ftl
with the files in Share Form Extension.zip
here is the link:
http://alfresco-form-model-management.googlecode.com/files/Share%20Form%20Extens
ion.zip
Original comment by mike.pri...@abstractive.ca
on 15 Jun 2012 at 4:56
[deleted comment]
replaced the 2 files referenced for the third time and restarted.
Here is my error message:
Exception: freemarker.core.InvalidReferenceException - Expression
page.url.args.nodeRef is undefined on line 41, column 52 in
org/alfresco/components/form/form.get.html.ftl.
Original comment by aba...@gmail.com
on 15 Jun 2012 at 7:56
[deleted comment]
[deleted comment]
You last error message:
Exception: freemarker.core.InvalidReferenceException - Expression
page.url.args.nodeRef is undefined on line 41, column 52 in
org/alfresco/components/form/form.get.html.ftl.
nodeRef is a mandatory url parameter. When you go to edit details in Share
nodeRef should be in the url for anything to work. If you like I can run
through this stuff via a web conference ; using something like Team Viewer (its
free and you can share screens). My email is mike.priest@abstractive.ca if you
want to set something up. Its hard to see whats going on without seeing what
your doing. I can walk through the install on my screen.
Let me know.
Mike
Original comment by mike.pri...@abstractive.ca
on 18 Jun 2012 at 2:49
[deleted comment]
[deleted comment]
Hi Mike, still trying to figure out what can I do to make FM working...
My environment: Ubuntu Linux 12.04 LTS - Alfresco Community Edition 4.2c
Installed manually, not working (Error 404 in
My_IP_Address:8080/alfresco/wcs/form-builder/home as Issue #12)
Installed with apply_amps.sh and I can't login in Alfresco anymore! (i get some
error telling me to use the FORCE option)
Any sugestions?
Thanks in advance
Original comment by julio.mo...@gmail.com
on 18 Mar 2013 at 2:04
Original issue reported on code.google.com by
aba...@gmail.com
on 7 Jun 2012 at 5:54