cancel
Showing results for 
Search instead for 
Did you mean: 

Scripts don't show up as options when creating a new rule that uses 'Execute Script' as an action.

tepee
Champ in-the-making
Champ in-the-making
I currently trying to evaluate Alfresco Community Edition 5.1(201605).

After uploading a script in the reposityory -> data dictionary -> scripts, setting its extension to ".js" and set its MIME type to "JavaScript", I tried to use the script as an action in a new rule.
However, no script including the uplodaded script didn't show up and a blank text box sits when I select "Execute script". Even if I typed the name of the script, there appeared the error message
"There is an error in the field." Please tell me if there is any configuration I would have left undone or any information about this.

Thank you.
19 REPLIES 19

cesarista
World-Class Innovator
World-Class Innovator

Maybe this helps:

May this be related with a non English installation, in which "Data Dictionary" folder in english does not exist ? This will be compatible with jeff and gbousquet.

This is quite often in addons:

Cannot send mails from a French installation · Issue #1 · teqnology/alfresco-login-reset-repo · GitH...

Regards.

--C.

YES, thats the problem!

The problem with missing SelectBox values exists, if I use Alfresco Share with German as default Browser language. If I change the Browser language to english, SelectBoxes are rendered and values exists.

So I think that´s the issue Thanks

(It is also a simple workaround with this Alfresco version)

douglascrp
World-Class Innovator
World-Class Innovator

Hey Cesar Capillas

I know the problem you are talking about, but I don't think it is related with the problem tepee _​ is facing.

I have some servers installed with the language configured as Brazilian Portuguese, and the Data Dictionary folder is called Dicionário de Dados.

All the scripts are shown ok.

This is the bean responsible for getting the javascript files list: community-edition/action-services-context.xml at 2c1eff9953d3105e738f7b06ba9ba8a079ca4c24 · Alfresco...

As you can see, the search path is /app:company_home/app:dictionary/app:scripts

I don't believe that is the main cause of this problem.

Maybe corrupted solr indexes?

tepee _​ Have you tried to perform a full reindex on this repository?

cesarista
World-Class Innovator
World-Class Innovator

Yes, probably you are right, Douglas C. R. Paes

Besides, michael.mrotzek _​ previous comment is related to a different issue (in a different layer), that I mentioned in the upper link. Regarding the corruption of the indexes, it is somehow strange because he is finding *js files when his language browser is setted to English.

Best regards.

--C.

mehe
Elite Collaborator
Elite Collaborator

I can confirm this behaviour. Using "german" as Primary Language in the Browser, I get the german UI and there are no scripts in the perform Action/Executive script dropdown for the javascrip files.

switching the Browser to "englisch" - I get the english UI and the javascript files are visible in the dropdown.

cesarista
World-Class Innovator
World-Class Innovator

Yes, I can reproduce it too (in Alfresco 201602GA). When switching to German UI, I neither see Specialise Type dropdown, nor remove/add aspect dropdown.

Regards.

--C.

mehe
Elite Collaborator
Elite Collaborator

I always thought I had problems with my upgrade from 5.0d to 5.1 - thank's to the community I realize now, that it's not my fault :-), but a reproducible problem.

cesarista
World-Class Innovator
World-Class Innovator

Well, I did a similar upgrade path Smiley Happy

Regards.

--C.

Issue "missing select values" with other primary language than english seems to be fixed in Alfresco Share v5.2.e. 


Looks promising - I'll try the update 🙂