cancel
Showing results for 
Search instead for 
Did you mean: 

In Association Complete Source node list is not returned

pavaniakella
Champ in-the-making
Champ in-the-making
Hi,

I created a custom model with the following association
 
<association name="cdl:propertyRef">
               <title>Property Reference</title>
               <source>
                  <mandatory>true</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:cmobject</class>
                  <mandatory>true</mandatory>
                  <many>false</many>
               </target>
</association>
I also specified the start location for the association in share-custom-config.xml as follows

<field id="cdl:propertyRef">
   <control>
     <control-param name="startLocation">/app:company_home/st:sites/cm:testsite/cm:documentLibrary/cm:Properties</control-param>
   </control>
</field>
The problem is it not showing all the folders in the specified location.It is only displaying 99 folders.I have more than 5000 folders.
Is there any solution to overcome this.
Any help is appreciated.

Regards,
Pavani Akella
3 REPLIES 3

pavaniakella
Champ in-the-making
Champ in-the-making
Additional information:
To be more clear, here is exactly what I need. When we click on select button for the association field, the following url is called in the backend(which is again a webscript)
http://localhost:8080/share/proxy/alfresco/api/forms/picker/node/children?selectableType=cm:cmobject...
selectableType,xpath is defiened while creating association in the content model as start location and type of object

Here there is size parameter in the url. Is there a location where I can change the 100. I don't exactly know where the url for the select button is getting constructed or where to change the size paramter.
I tried to change the parameter in  tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\forms\pickerchildren.get.js but since the webscript is already called with 100 even though i change the size paramater here there is no impact.

Regards,
Pavani Akella

romschn
Star Collaborator
Star Collaborator
I am also facing the similar issue. Have you got the solution to above problem?

Thanks,

pavaniakella
Champ in-the-making
Champ in-the-making
Hi,

I am not sure if it is the right solution but copy 
\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\form\controls\common\picker.inc.ftl
to shared folder and change the value at maxserarchresults value from 100 to 5000 or to a value required. It solved my problem.

Regards,
Pavani Akella