cancel
Showing results for 
Search instead for 
Did you mean: 

URL to edit XML content using associated form

dgenard
Champ on-the-rise
Champ on-the-rise
Hi,
With Alfresco 2.9.0B, I'm writing a webscript which displays a list of XML content.
For each content, I'd to provide an edit button, but I can't find which URL will open the content in XForm editor.

I tried things like
http://localhost:8080/alfresco/navigate/wizard/editContent/7312d621-0c64-11dd-9349-c9fbc42d0414
but it fails with the following message
java.lang.IllegalArgumentException: Edit Form wizard requires action node context.
Any idea ?
Denis
1 REPLY 1

pmonks
Star Contributor
Star Contributor
URL addressability is described at http://wiki.alfresco.com/wiki/URL_Addressability - the specific syntax for opening a Web Form is:

http://hostnameSmiley Tongueort/alfresco/c/ui/editwebcontent ?sandbox=avm_store_id &webproject=guid_of_web_project &path=avm_store_id:/path/to/filename.extension &container=plain
For example:

http://localhost:8080/alfresco/c/ui/editwebcontent ?sandbox=sample–admin &webproject=64f1a7d1-acbc-11dc-af2d-cd08f7680a6c &path=sample–admin%3A%2Fwww%2Favm_webapps%2FROOT%2Ftest%2Ffolder%2Ftest.xml &container=plain
(note: I inserted a single space between each query string parameter so that the URLs would wrap within the forum's quote boxes - they shouldn't be there in the real URLs)

I haven't sat down and determined what the equivalent syntax is for ECM (DM) forms added in the 2.9 preview release, but I would assume it's somewhat similar to the above.

Cheers,
Peter