psciascia Honored Contributor.
Honored Contributor.
325 views

Trapping a process item moved to a new view

Jump to solution

I want to send a notification if a Task item has been moved from one view to another. I use ItemListener objects, and I have read in the documentation that the ItemMoved function  only traps movement within the same view. When moved to a new view it's trapped by the ItemAdded function.

Since getOldItem() returns null in ItemAdded (which makes sense), how would I go about trapping my movement across views?

Thanks,

Tags (1)
0 Likes
Reply
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Trapping a process item moved to a new view

Jump to solution
you'd need listeners attached to both views.
a cross view move would be represented by
an 'item removed' event firing in the source view,
and an 'item added' event firing in the target view.
you'd know this was a move since the item id would be unchanged.
0 Likes
Reply
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Trapping a process item moved to a new view

Jump to solution
you'd need listeners attached to both views.
a cross view move would be represented by
an 'item removed' event firing in the source view,
and an 'item added' event firing in the target view.
you'd know this was a move since the item id would be unchanged.
0 Likes
Reply
psciascia Honored Contributor.
Honored Contributor.

RE: Trapping a process item moved to a new view

Jump to solution
Super answer, thanks
0 Likes
Reply
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.