cancel
Showing results for 
Search instead for 
Did you mean: 

Allowing user to choose Destination Folder on Start Custom workflow

nehagupta
Champ in-the-making
Champ in-the-making
Hi,
I want the user to chose the destination folder on Start Workflow Screen.
Below is the snippet from Model.xml




       <property name="scwf:destination">
               <title>Chose Destination</title>
               <type>d:noderef</type>
               <mandatory>false</mandatory>
</property>

Snippet from share-config-custom.xml


<show id="scwf:destination" />
<appearance>
<field id="scwf:destination" label-id="Destination Folder">
                        <control template="/org/alfresco/components/form/controls/association.ftl">
                           <control-param name="allowNavigationToContentChildren">false</control-param>
                        <control-param name="displayMode">items</control-param>
                        </control>
</field>
</appearance>


It allows the user to chose a file but not a folder on start workflow screen.Please advise how this can be done.

4 REPLIES 4

muralidharand
Star Contributor
Star Contributor
Hi Neha,
I already did this in Alfresco 4.x version and you can try the similar stuffs in Alfresco 5.x version.

http://www.codingfreaks.net/2014/07/alfresco-activiti-workflow-form-how-to_9.html

darkredd
Star Contributor
Star Contributor
Hi Neha,

You can use the association tag of the content model definition to define you property that will select a folder without the need to modify the picker.
Here is a snippet of how I use it:
            <association name="mes:replyLocation">
               <title>Document Reply Location</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:folder</class>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </target>
            </association>

By defalut it will show the select button on folders.

Hi DarkRedd,
Thanks for sharing this.
Let me also try this in development environment and if this helps, I will ignore the picker control modification.

Thanks for your help !!

Regards,
Neha
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.