06-17-2015 09:06 PM
alfresco/core/CoreWidgetProcessing[createWidget] >> The following error occurred creating a widget TypeError: Cannot read property 'totalDocuments' of undefined
at alfresco_documentlibrary_AlfDocumentListPaginator__processLoadedDocuments [as processLoadedDocuments] (https://alfresco.dev.urthecast.com/share/res/js/surf/1c2eeba992cc846899ed28fbc174967c.js:74809:21)
at alfresco_documentlibrary_AlfDocumentListPaginator__allWidgetsProcessed [as allWidgetsProcessed] (https://alfresco.dev.urthecast.com/share/res/js/surf/1c2eeba992cc846899ed28fbc174967c.js:75100:18)
at alfresco_core_CoreWidgetProcessing___registerProcessedWidget [as _registerProcessedWidget] (https://alfresco.dev.urthecast.com/share/res/js/surf/1c2eeba992cc846899ed28fbc174967c.js:13748:18)
at https://alfresco.dev.urthecast.com/share/res/js/surf/1c2eeba992cc846899ed28fbc174967c.js:14100:28
at runFactory (https://alfresco.dev.urthecast.com/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:1117:43)
at execModule (https://alfresco.dev.urthecast.com/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:1245:5)
at https://alfresco.dev.urthecast.com/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:812:7
at guardCheckComplete (https://alfresco.dev.urthecast.com/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:1260:5)
at contextRequire (https://alfresco.dev.urthecast.com/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:811:6)
at req (https://alfresco.dev.urthecast.com/share/res/js/lib/dojo-1.9.0/dojo/dojo.js:137:11)
Object {_attachPoints: Array[1], _attachEvents: Array[0], _connects: Array[0], _supportingWidgets: Array[0], id: "alfresco_documentlibrary_AlfDocumentListPaginator___fc29981b-ab52-48d0-8e9b-f31e57bc9c46"…}
07-08-2015 05:32 AM
Sorry for the slow response on this, but I've only just seen this question on the forums…
Firstly, it's worth pointing out that we wrote the search page very much with infinite scrolling in mind, however that said ideally we'd want to be able to support the use of standard pagination as well. I've taken a look through the code and it looks like we're missing a few things to get this to work properly.
Part of the issue is that the "alfresco/search/AlfSearchList" (this is in the latest versions of Aikau, the old "alfresco/documentlibrary/AlfSearchList" is now deprecated) overrides quite a few parts of the standard list behaviour. Some of these can be worked around through configuration… for example if you were to configure your "alfresco/lists/Paginator" like this:
{
name: "alfresco/lists/Paginator",
config: {
documentsLoadedTopic: "ALF_RETRIEVE_DOCUMENTS_REQUEST_SUCCESS",
totalResultsProperty: "response.numberFound",
startIndexProperty: "response.startIndex"
}
}
You'd find that it is then able to process the results and work out the number of pages available, etc. Unfortunately one part of this is missing which is the ability to actually drive page selection. This is caused by the AlfSearchList not making a call to the "setupSubscriptions" or "updateLoadDataPayload" functions defined in the "alfresco/lists/AlfSortablePaginatedList" widget that it extends. This would have provided the capabilities to make the AlfSearchList work with the Paginator.
I've raised an issue in JIRA for us to address this problem https://issues.alfresco.com/jira/browse/AKU-414
We'll include this in a future sprint and you'll then be able to use a future version of Aikau with 5.0.d (see https://community.alfresco.com/community/ecm/blog/2015/03/24/why-alfresco-50d-will-be-a-game-changer...) to resolve your problems.
Regards,
Dave
07-09-2015 06:16 PM
08-12-2015 04:21 AM
03-12-2018 06:14 AM
I need to add pagination in the faceted search page of Alfresco 5.2 version with Aikau 1.0.101.3 . How can I do this? Can you please provide me a sample
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.