cancel
Showing results for 
Search instead for 
Did you mean: 

Importing to Alfresco templates

harrymoore
Champ in-the-making
Champ in-the-making
I'm working on a utility that will import content as templates. I create
an xml in CIFS and then programmatically (using AVMRemote API) set the property:
"{http://www.alfresco.org/model/wcmappmodel/1.0}parentformname"
to the name of the form. The system, however, does not recognize the xml
file as a template. I can see in the node browser that the property is set.

Do I need to apply the
"{http://www.alfresco.org/model/wcmappmodel/1.0}forminstancedata" aspect prior to setting the parentformname property? If that is the
case then what api call do I use to apply the aspect? I don't see
anything in the AVMRemote.

Thanks,
Harry
5 REPLIES 5

harrymoore
Champ in-the-making
Champ in-the-making
I am also trying to modify existing xml template files through the CIFS drive but Alfresco does not properly build the form in the UI after a change.

arielb
Champ in-the-making
Champ in-the-making
you will need to apply the aspect as well for the ui to recognize the xml file as a form.  unfortunately, aspect related apis are not yet available via AVMRemote - they will be for GA.

as for the second problem, do you have any more details (log error messages etc.)?

harrymoore
Champ in-the-making
Champ in-the-making
Thanks for the update on the api.

On the second issue, I'll get the latest build before trying again. Then I'll trap any error and post them.

Thanks

arielb
Champ in-the-making
Champ in-the-making
it seems like britt added aspect related to avmremote today.  you should be good to go with writing the clt to add form instance data from the file system now.

harrymoore
Champ in-the-making
Champ in-the-making
It works! Thanks. I updated my sample application to include creating a templated xml file in a sandbox. If anyone is interested, shoot me an email.