05-03-2012 11:10 AM
Hi,
i'm trying to implement a permanent deletion feature : I created a document type that lists the deleted documents for a given user, so that he can permanently delete the selected ones.
Everything runs fine ... for the first deletion
It seems that the previsously selected documents are still cached somewhere in the UI (my "permanently delete" button is enabled although selection is empty), so that if i try to delete a second batch of docs, i get a "No such document" error.
I tried to use the Seam.Refresh operation, but it doesn't seem to work.
Any idea ?
05-10-2012 07:57 AM
Actually we're missing a 'Clear Selection' operation, a bit like 'Clear Clipboard' works.
The code of your operation would look like that:
@OperationMethod
public void run() {
OperationHelper.getDocumentListManager().resetWorkingList(
DocumentsListsManager.CURRENT_DOCUMENT_SELECTION);
}
This will empty the current selection. The refresh UI operation only invalidates queries cache.
05-03-2012 11:28 AM
quick question, does it work when you click on the refresh button from the UI?
05-03-2012 11:43 AM
No,
05-04-2012 10:35 AM
Can you give us your operation chain you used to implement the permanent deletion ?
05-04-2012 12:19 PM
That is simply
05-09-2012 08:43 AM
Same kind of problems with my new "validate button"
05-10-2012 07:57 AM
Actually we're missing a 'Clear Selection' operation, a bit like 'Clear Clipboard' works.
The code of your operation would look like that:
@OperationMethod
public void run() {
OperationHelper.getDocumentListManager().resetWorkingList(
DocumentsListsManager.CURRENT_DOCUMENT_SELECTION);
}
This will empty the current selection. The refresh UI operation only invalidates queries cache.
05-10-2012 08:27 AM
Thx.
06-04-2012 08:22 AM
the 'Clear Selection' operation works fine : I can select documents after a deletion, nevertheless i still have to refresh the list with my "refresh" automation chain.
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.