08-21-2018 06:39 PM
I tried this code,
ngOnInit() { let nodes: any = this.apiService.getInstance().nodes; nodes.getNodeInfo('-root-', { includeSource: true, include: ['path', 'properties'], relativePath: '/Sites/swsdp/documentLibrary' }) .then(node => { console.log(node); this.currentFolderId = node.id; this.changeDetector.detectChanges(); }); }
to set my default folder to be the documentLibrary, but nothing happens, I still need to browse sites, then swsdp to access documentLibrary.
09-04-2018 09:46 AM
I guess you didn't assigned to the document list your new currentFolderId calculated in the init:
<adf-document-list
#documentList
[currentFolderId]="currentFolderId">you have always root as value in the currentFolderId.
09-04-2018 11:07 AM
You are right Eugenio, changing default code [currentFolderId]="'-my-'" with [currentFolderId]="currentFolderId" has been the solution.
Thank you very much.
Best regards,
Joël
10-29-2018 11:50 PM
Have you solved your problem regarding this one? because I'm getting an "ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '-root-'. Current value: '-my-'." error with that, or is it because we're using different adf version?
10-29-2018 11:53 PM
never mind got it working now.
Explore our Alfresco products with the links below. Use labels to filter content by product module.