cancel
Showing results for 
Search instead for 
Did you mean: 

what happened to ECM forms in Labs3 Final ?

dominique
Champ in-the-making
Champ in-the-making
Hello,

I've been working with ECM Forms in Labs 3C, but in Labs 3 Final, they seem to have disapeared ?
No more "Forms" Folder in the Data Dictionary ?
In the source code of Labs 3 Final, org.alfresco.web.bean.content.CreateContentWizard  is still referencing the forms however.
We really need this ECM forms support.


kr,

Dominqiue
8 REPLIES 8

clark
Champ on-the-rise
Champ on-the-rise
I met with this same issue, is there any one to help us?

Many thanks.

macweaz
Champ in-the-making
Champ in-the-making
same problem,
is an installation issue?

lzap
Champ in-the-making
Champ in-the-making
Its a really an installation issue. I have tested 3c final on BOTH Windows (its OK) and Linux (ECM Forms are missing).

Thats bad 😞 I have no clue how to fix it.

lzap
Champ in-the-making
Champ in-the-making
Strange, in 3e (also known as 3.1 build preview #1) the (ECM) Forms are missing too.

sylvain78
Champ in-the-making
Champ in-the-making
Anybody knows why they removed it?  And do they plan to bring it back?  If so, when?…

I found this in the SVN logs (r12427) when they removed the ECM Forms : "Fix for ETHREEOH-218: DM forms should be disabled".

I managed to reenable it modifying the following files (I had to do a clean install though, cause I did not want to make a patch) :
jsp\content\create-content-wizard\details.jsp (for the forms drop-down)
bootstrap-context.xml (for the Forms Folder)
web-client-config-actions.xml (for the Create Form action)

The bottom line is that I would like to know why they removed it cause I don't want to crawl into a hole…

paulhh
Champ in-the-making
Champ in-the-making
Basically, the ECM forms were an experiment in re-using the WCM forms code.  Since then, we've decided that we need more control and flexibility than we were able to get using XForms - so we've started developing a new Forms Service.  The first phase of that is in the 3.2 code for Share, where the forms are config-driven (like the property sheets in the Explorer client).  It will get extended to support WCM and be schema-driven - which will take another release cycle.  We didn't want to create unnecessary legacy, so opted to remove the experimental DM forms.

Paul.

alf_life
Champ in-the-making
Champ in-the-making
I found this in the SVN logs (r12427) when they removed the ECM Forms : "Fix for ETHREEOH-218: DM forms should be disabled".

I managed to reenable it modifying the following files (I had to do a clean install though, cause I did not want to make a patch) :
jsp\content\create-content-wizard\details.jsp (for the forms drop-down)
bootstrap-context.xml (for the Forms Folder)
web-client-config-actions.xml (for the Create Form action)

The bottom line is that I would like to know why they removed it cause I don't want to crawl into a hole…

I checked their previous versions those 3 files on SVN and I have modified them as sylvain78. I can see the forms drop-down in the "Create Content Wizard page" But I can't see the "Content Form" folder in "Data Directory" to create new forms.

Can anyone help me about this, please ?

alf_life
Champ in-the-making
Champ in-the-making
Finally I have found when I discussed with sylvain78 : I just had to clean Alfresco's contents and the database ("clean install"). Then I could see the Forms folder.

Then I wondered how to display the form when I edit the result from a form. sylvain78 told me to do like this :

In EditOnlineDialog.java in the web-client project :

Add :

import org.alfresco.model.WCMAppModel;

Replace (in the handleHttpEditing method) :

if (MimetypeMap.MIMETYPE_TEXT_PLAIN.equals(mimetype) || MimetypeMap.MIMETYPE_XML.equals(mimetype) || MimetypeMap.MIMETYPE_TEXT_CSS.equals(mimetype)

With :

if (workingCopyNode.hasAspect(WCMAppModel.ASPECT_FORM_INSTANCE_DATA))
            {
               // editable form document
               FacesContext fc = FacesContext.getCurrentInstance();
               fc.getApplication().getNavigationHandler().handleNavigation(fc, null, "dialog:close:browse");
               this.navigator.setupDispatchContext(workingCopyNode);
               fc.getApplication().getNavigationHandler().handleNavigation(fc, null, "wizard:editContent");
            }           
            else if (MimetypeMap.MIMETYPE_TEXT_PLAIN.equals(mimetype) || MimetypeMap.MIMETYPE_XML.equals(mimetype) || MimetypeMap.MIMETYPE_TEXT_CSS.equals(mimetype)

Of course, always clean the install before restarting. And then it works perfectly !

The code may be slightly different but the logic is the same.

Thank you for sylvain78 who helped me much  Smiley Very Happy