cancel
Showing results for 
Search instead for 
Did you mean: 

File picker in Alfresco?

ardamose123
Champ on-the-rise
Champ on-the-rise
I'm developing some Alfresco Share extensions as proofs of concept. Currently, I want to develop a simple file comparison action, which would show a form with a file picker and a button to run the action business logic with the provided file. I already have everything done except for the file picker control.

The closest thing to a file picker I've seen is the association.ftl control. However, if I use it, it doesn't let me select anything; I can only get in and out of folders. I use no associations, so association.ftl is not the control I'm looking for.

Is there an out-of-the-box file picker in Alfresco? Or, is there a way to use the already-existing association.ftl control to choose files?

1 REPLY 1

ardamose123
Champ on-the-rise
Champ on-the-rise
I finally noticed my mistake.

In the class that extends ActionExecuterAbstractBase, I used the following parameter definition.

<java>
protected void addParameterDefinitions(List<ParameterDefinition> paramList) {
   paramList.add(new ParameterDefinitionImpl(PARAM_OTHER_DOC, DataTypeDefinition.NODE_REF, true, getParamDisplayLabel(PARAM_OTHER_DOC)));
}
</java>

I was using ASSOC_REF (among other things) instead of NODE_REF.

In the
share-config-custom.xml
, in the form configuration, there is no need to specify any template as part of the field.