Projet

General

Profil

'Preview' has no function after publishing Model and Form

Ajouté par Joe Lee il y a plus de 10 ans

Hi,

I have Designer 015b installed on Alfresco 4.2e (Windows XP). There's couple usage observation I'm not sure if it's my installation problem:

(1) Edited ext:extensionModel, doing the same test pretty much exactly as in the video. saved and published the model successfully, also checked that 'Model active' is checked after published. Clicked 'Preview' and nothing happened and no errors in logs. Continued to edit extCustomForm, saved and published successfully. Clicked 'preview' nothing happened. Previous trial of Desinger 015a with Alfresco 4.2.c gave a 'Could not load dialog template...' error when model type is previewed right after published, but after form is published, the preview works correctly according to the form config.

(2) A folder named '$(dir.root)' with a sub-folder 'designer' was created after publishing the form, and a copy of form config file is also saved under the \designer folder as well as under Data Dictionary.

Regards,


Réponses (4)

RE: 'Preview' has no function after publishing Model and Form - Ajouté par Matthieu Laborie il y a plus de 10 ans

Hi,

Right now preview only work for default model-type form (ie without node created) #97. You should have publish your form first. When you publish it create the file under $(dir.root)/designer

where dir.root is normally something like C:\alfresco\data. Maybe in windows you should replace ${dir.root} on linux is working fine.

Found that on forum

3. In configuration file $ALF\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\becpg-designer-core\designer.properties replace beCPG.designer.configPath = ${dir.root}/designer to beCPG.designer.configPath = C:\\Alfresco\\designer

Or

4. In configuration file $ALF\tomcat\webapps\share\WEB-INF\classes\alfresco\designer.properties replace beCPG.designer.configFiles= ${dir.root}/designer/*.xml to beCPG.designer.configFiles = file:C:\\Alfresco\\designer\\*.xml

Regards

RE: 'Preview' has no function after publishing Model and Form - Ajouté par Joe Lee il y a plus de 10 ans

Thanks! changed the two designer.properties files as indicated and works for the ${dir.root} folder issue.

I have tried changing the form id to 'create' instead of 'default', I have tried deleting the node-type form. I have tried following the demo video to the dot, but I'm sorry still couldn't get the preview to do anything. Only found this in log that may be be related.

2013-11-28 11:13:16,166 INFO [web.scripts.MimetypesQuery] [http-apr-8080-exec-9] Successfully retrieved mimetypes information from Alfresco.
2013-11-28 11:13:51,178 WARN [designer.impl.DesignerServiceImpl] [http-apr-8080-exec-4] No assoc config found for this nodeRef

Otherwise there's no error log. May be I'll try a little harder, but would appreciate any suggestions.

Regards,
Joe

RE: 'Preview' has no function after publishing Model and Form - Ajouté par Joe Lee il y a plus de 10 ans

This is the page error I got if I use IE to access Alfresco instead of Firefox when 'preview' button is clicked

Info: 'formKind' is undefined
Row: 173
Char: 18
Code: 0
URI: http://localhost:8080/share/res/components/model-designer/toolbar_65ef991715fe468a6dfabbc15dd8671f.js

RE: 'Preview' has no function after publishing Model and Form - Ajouté par Matthieu Laborie il y a plus de 10 ans

Hi,

Thanks a lot for reporting, I will not have time to fix any issue on designer probably before next year. Put what you find as issue on a ticket or even provide a patch.
I will fix it as soon as possible. As we haven't migrate all our solution to 4.2.d we haven't done yet any full test on the designer UI part.

https://www.becpg.fr/redmine/issues/775

Regards

    (1-4/4)