cancel
Showing results for 
Search instead for 
Did you mean: 

aikau, documentList and filter

vincent-kali
Star Contributor
Star Contributor
Hi all,
I'm trying to use aikau widgets to develop a new page containing

- alfresco/documentlibrary/AlfDocumentList
  use to display specific node properties
- alfresco/documentlibrary/AlfDocumentFilters
  to filter displayed properties

Filter is publishing a configured value on ALF_DOCLIST_FILTER_SELECTION topic
when selected, but I don't know how to configure filters to
interact with AlfDocumentList or view.

Could somebody help ? An example would be great.

Thanks,
Vincent


4 REPLIES 4

ddraper
World-Class Innovator
World-Class Innovator
It's important to understand that the the filters that are used will correspond to filters provided by the REST API provided by the server and that no filtering is not done on the client. The (work in progress) doclib.lib.js library file for building custom Document Libraries in Aikau (https://github.com/Alfresco/Aikau/blob/master/aikau/src/main/resources/webscript-libs/doclib/doclib....) provides an example of how filters can be used. The "alfresco/services/DocumentService" onRetrieveDocumentsRequest function will apply any filters in a request to load documents by including the "?filter=" request parameter in the URL. You can use lists and filters with any suitable REST API but filtering will only work if that API supports them.

Regards,
Dave

Hi Dave,
Thanks for your reply.
I finally found a solution to filter the doclist on client side using 'visibility' and rules on widgets.

Regards,
Vincent

thirumal
Champ on-the-rise
Champ on-the-rise
I too want to filter the list

If you want to filter documents, you should follow Dave instructions.
If you want to filter a custom list on client side, you can use visibilityConfig/invisibilityConfig config on rows.

regards,