AFaust / alfresco-form-model-management

Automatically exported from code.google.com/p/alfresco-form-model-management
0 stars 2 forks source link

Installation of jQuery #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install alf_forms_management_1_3_1.amp
2. Install fm-share_1_2_2.amp
3. Generate a model as in "Form Management Admin Guide.pdf"

What is the expected output? What do you see instead?
Can not edit metha information of files

What version of the product are you using? On what operating system?
alfresco-community-4.0.d
on 
Windows 7 x64

Please provide any additional information below.
I can not edit the meta information of files, also I can not see the side by 
side screen as in your video presentation. 

Maybe it is caused by the jQuery plugin. What files I have to edit for the 
"jQuery Plugin" I can't follow description (jQuery Doc.pdf)?

Original issue reported on code.google.com by dominik....@esg.de on 20 Aug 2012 at 3:16

GoogleCodeExporter commented 9 years ago
Please take a look at the console in Firebug. This will tell you if any AJAX 
services failed. If so, please post the response of those calls here.

NOTE: The FM Share Form extension will only show Forms built from the FM Module 
if one of the two scenarios are true:

1) Custom aspects have been added to a document. Using the "traditional 
approach" searches the FM module for any custom aspects built in the builder. 
If it finds them it will render the forms found.

2) A direct aspect/profile has been given to the init method of jQuery form 
call (see <Alf 
install>\tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfres
co\components\form\form.get.head.ftl)

Original comment by mike.pri...@abstractive.ca on 20 Aug 2012 at 3:24

GoogleCodeExporter commented 9 years ago
Thank you for your fast response.
I have checked the side with firebug and there error.

No I installed a new system from the scretch. Can you check my steps and 
comment them if I have missed some thin? I think such a step by step tutorial 
is very helful to get a quick start with your tool.

1. Installation of Alfresco Community Version 4.0.0

2. Generation of the mandatory directories wit Alfresco Explorer
   -    …Company Home/Dictionary/Models/Constraints
   -    …Company Home/Dictionary/Models/JsonModels
   In my case „Company Home/Dictionary/Models“ is ”Firmen-Home/Datenverzeichnis/Modelle” because I use a German OS. That can’t be changed even with a English/English Installation.

3. Stop the Server using the Alfresco Management tool 

4. Prepare Files for Share-Extension
   -    Open file in editor …Alfresco\tomcat\shared\classes\alfresco-global.properties 
   -    Comment out solr and change the index subsystem to lucene like below 
        ### Solr indexing ###
        ##index.subsystem.name=solr
        #dir.keystore=${dir.root}/keystore
        #solr.port.ssl=8443

        index.subsystem.name=lucene
        index.recovery.mode=FULL

5.Installation of the FM AMP
  - alf_forms_management_1_3_1.amp -> … Alfresco/amps
  - fm-share_1_2_2.amp -> …Alfresco/amps_share
  - fmdemo-share1.1.amp -> …Alfresco/amps_share
  - run apply_amps script (…Alfresco/bin)

6. Start the Server using the Alfresco Management tool update the directories

7. Stop Server

8. Change directories for non-english versions 
   -  open with editor  … Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\ca\ab\fm\formsmanagement\utils\locale\alfresco-locale.js
   - change following lines
     fmPath.models = "Data Dictionary/Models/"; ==> fmPath.models = " Datenverzeichnis/Modelle/";
     fmPath.constraints = "Data Dictionary/Models/Constraints/"; ==> fmPath.constraints = " Datenverzeichnis/Modelle/Constraints/";
     fmPath.jsonModels = "Data Dictionary/Models/JsonModels/"; ==> fmPath.jsonModels = " Datenverzeichnis/Modelle/JsonModels/";

9. Change Lucene mode from FULL to VALIDATE
   -    Open file in editor …Alfresco\tomcat\shared\classes\alfresco-global.properties 
   -    index.subsystem.name=lucene
        index.recovery.mode=FULL
        ==>
        index.subsystem.name=lucene
        index.recovery.mode=VALIDATE

10. Start the Server
11. Setting up a form (http://127.0.0.1:8080/alfresco/wcs/form-builder/home) 
such as in "Form_Management_Admin_Guide.pdf"

After this steps I can use the form_model_management to edit forms. Within 
Share I can see the new search tool and the dashlet. 

But I can not set any Metadata to any file. 

Original comment by dominik....@esg.de on 21 Aug 2012 at 11:01

GoogleCodeExporter commented 9 years ago
Hi Dom, 

Your install directions seem fine to me. I think it's just being clear on how 
the Form Management works. 

I have updated the content of "GettingFormsWorkingInShare". Have a quick read 
through the Share extension project. It will shed some light on the default 
config. 

Thanks!

Original comment by mike.pri...@abstractive.ca on 21 Aug 2012 at 8:17

GoogleCodeExporter commented 9 years ago
I have seen your notes about the "traditional" and the "strict" methods. But I 
can't get the forms to show up. 
Can you provide me with a example file of the 'form.get.head.ftl' file for both 
methods?

thank you very much in advance!

Original comment by dominik....@esg.de on 22 Aug 2012 at 11:58

GoogleCodeExporter commented 9 years ago
I have added the names of my generaded aspects to the strict method section 
(see File) but I don't get access to it. In the search view I can see the 
fields. Do I have to edit other files, too?

thank you very much in advance!

Original comment by dominik....@esg.de on 22 Aug 2012 at 2:18

Attachments:

GoogleCodeExporter commented 9 years ago
Hello again,

It's just a configuration issue. The 'aspects' option in the form init method 
is expecting an 'Aspect Object' type. The AJAX service wrapped around the form 
init is what grabs the JSON object model for aspects. 

The service then passes those objects to the init function using the 'aspect' 
parameter. I have attached a new file for your reference.

Use the file attached and it should work.

Cheers

Original comment by mike.pri...@abstractive.ca on 23 Aug 2012 at 2:45

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you very much, that brought me a big step forward.

No the forms working(worked) fine. 
Learning never stops. I installed another amp file and now I cannot access the 
form management site anymore. It quits with "Cannot read property "children" 
from null" (I have attached the howl error message). 

The suspicious thing is that this failure is even existent after setting the 
files share.war and alfresco.war back to their state before installing the amps.

Original comment by dominik....@esg.de on 24 Aug 2012 at 11:54

Attachments:

GoogleCodeExporter commented 9 years ago
I don’t want to bother you but I am trying to set up a demo system until next 
week, so I am under pressure in the moment. Thanks to Murphy! 
There are a few questions I hope you can give me a short answer to. So I have 
something to do this Weekend. 
1.  How can I apply a Form to a folder and its files and subfolders – So I 
only have to fill out the form once for all files 
2.  Is it possible to force the user to fill out the form during the upload of 
one or more files or after generating a new folder
3.  Is it possible to trigger the generation of subfolders after Appling a model 
to a folder
Thank you very much in advance for your efforts !!

Original comment by dominik....@esg.de on 24 Aug 2012 at 1:11

GoogleCodeExporter commented 9 years ago
In relation to the error:

Cannot read property "children" from null 
(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/we
bscripts/ca/ab/fm/formsmanagement/dropdown-manager/dropdown-manager.get.js

This will only happen if it cannot find the Constraints folder (check you path 
and the locale.js for translation.

Original comment by mike.pri...@abstractive.ca on 27 Aug 2012 at 12:38

GoogleCodeExporter commented 9 years ago
My Apologies on the latness of this reply, i have been busy with projects all 
weekend and haven't had time to work on this one.

1.  How can I apply a Form to a folder and its files and subfolders – So I 
only have to fill out the form once for all files

I would highly reccomend not chaining metadata entry from one folder to all 
files. This means all your files will have the same metadata and it would make 
your search redundant. If you mean adding an aspect (Essentially a form) that 
adds aspects to all files you can do this via Alfresco's content rules. 
http://wiki.alfresco.com/wiki/Client_Manage_Content_Rules 

Essentially you could say, when ever a file is added to this space, apply 
aspects a,b,c. using node.addAspect("dmo:aspect"). If those forms are available 
in the form management module. That form would then be displayed when you edit 
that document.

A rule basically allows you to trigger actions/scripts based upon events when 
content is added, updated, moved into etc.. and you can base this on mime type 
if you wish.

2. Is it possible to force the user to fill out the form during the upload of 
one or more files or after generating a new folder

This would be a custom piece, but is possible. I have a client that does this.

3.  Is it possible to trigger the generation of subfolders after Appling a 
model to a folder

This is possible again by using content Rules applided to a space (folder)

Hope this helps.

Original comment by mike.pri...@abstractive.ca on 27 Aug 2012 at 12:49

GoogleCodeExporter commented 9 years ago
Just another note. Your error may also be because the user accessing the 
Dropdown Manager does not have access to the folder. It could be a permissions 
issue too.

Original comment by mike.pri...@abstractive.ca on 27 Aug 2012 at 12:51

GoogleCodeExporter commented 9 years ago
Thank you for your extensive answer. 

To 1. I thought that would be better for searching files. I found some scripts 
to do a job such as this.

To 3. I also found a script to realize the generation of subfolder dependent on 
folder rules.

To 2. Do you have any implementation hint for me? Is it possible with a script 
started by a rule?

A new point - 4. I have encouraged a problem with your dropdown menus. If I 
apply a aspect with a dropdown menu to a file which provides me with other 
fields after selecting an option it comes to problems when opening the meta 
data a second time. At the second time I opening the edit meta data page I see 
the applied data and also an additional unselected dropdown menu. 
This problem appears by the use of the classic approach. I am using this method 
because I want to provide different dropdown lists to different folders. 

If I am using your strict method there is no duplication of the fields. Is it 
possible to show only specific metadata profiles dependent on other aspects 
applied to a folder? That would be my prefered Solution. But until now I have 
not found a working implementation. 

Original comment by dominik....@esg.de on 27 Aug 2012 at 1:34

GoogleCodeExporter commented 9 years ago
The issue around traditional approach and dynamic dropdowns has been fixed. If 
you are using service dropdown lists then you need to make sure that that list 
is available to the page in which its being loaded.

This fix is in the newest release.

Original comment by mike.pri...@abstractive.ca on 20 Sep 2012 at 5:44