07-23-2012 09:59 AM
Still trying to access the list of selected docs in sections :
the action category for my button is
CURRENT_SELECTION_SECTIONS_LIST
the "Selection is not empty" has been replaced by a custom EL
#{documentsListsManager.isWorkingListEmpty("CURRENT_SELECTION_SECTIONS") == false}
This works but Seam.GetSelectedDocuments is useless : i have to contribute a new, not very original, operation in Nuxeo IDE
@Operation(id=GetSectionSelectedDocuments.ID, category=Constants.CAT_FETCH, requires=Constants.SEAM_CONTEXT, label="GetSectionSelectedDocuments", description="")
public class GetSectionSelectedDocuments {
public static final String ID = "Seam.GetSectionSelectedDocuments";
protected @Context OperationContext ctx;
@OperationMethod
public DocumentModelList run() throws Exception {
List<DocumentModel> res =
OperationHelper.getDocumentListManager().getWorkingList(
DocumentsListsManager.CURRENT_DOCUMENT_SECTION_SELECTION);
return new DocumentModelListImpl(res);
}
}
But I meet the following error: could not access: DocumentsListsManager (?)
07-24-2012 01:42 PM
Please provide the actual (maybe shortened) stack trace with the error.
07-25-2012 06:28 AM
Seems there's been a problem with studio / ide / instance update :
everything is working fine with this soultion.
What a pity these kind of operations referencing constants do not accept a parameter : if i want to the same with deleted documents, it seems i ll have to create another operation ...
07-25-2012 11:31 AM
Could you please open a NXP ticket in our JIRA to request this enhancement?
07-27-2012 10:35 AM
Ticket opened
07-30-2012 01:18 PM
[NXP-9777][1]
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.