cancel
Showing results for 
Search instead for 
Did you mean: 

WCM XForms Submit

mpetty
Champ in-the-making
Champ in-the-making
I have a simple XForm that was created using Eclipse and the "Visual XForms Designer".  When the submit button is pressed it just writes out an xml file via xforms-submit and post.  This is all fine and dandy and works in a non-Alfresco environment.

What do I have to alter to get the form to save this xml file to somewhere inside of Alfresco?  I've moved the schema and xhtml file into a couple of different places in Alfresco, tried to create web projects from it, put it in the data dictionary->webforms area and so on and so forth.  After a couple of hours wandering the wiki and google, I still haven't found a solution that works.  So, what's supposed to be done in situations like this?

I've tried a number pf post and put methods and I just haven't found the magic string to allow me to post a document into Alfresco's repository.  I understand that I may need to create a webscript, but I imagine that such functionality is built into Alfresco.  Can't I just post to a script or something?  What's the syntax look like for that?

I'm not opposed to re-making the forms, but I just can't shake the feeling that I'm missing something incredibly simple here.  Any help would be appreciated.  I just need a simple xform that's inside of alresco that when the user hits submit saves an xml inside of Alfresco also.
2 REPLIES 2

reshma
Champ in-the-making
Champ in-the-making
Hi,
  As I understood you want to create one form in side alfresco, at the time of creating forms we will provide one schema file and one more xfs-fo (or) xslt (or)flt file, by using this two files the form will create,

and by using this form we will create WebContent for this one xml will generate automatically, the form data will be stored in side xml, and any point of time you can modify your data by editing this xml .

mpetty
Champ in-the-making
Champ in-the-making
Thank you for the reply.

I am already uploading the form and having it display fine.

I'm just curious as to the syntax for writing data to different stores in Alfresco from an XForm.  Is there a way to do it directly?  Do I have to write some type of webscript?  Is there any documentation on any of this?