Support Article
How To Add Data Class Instance To Recent List
SA-12151
Summary
As per the following article, I understand that work class instances and rules will be added to the recent list.
https://pdn.pega.com/user-interface/displaying-a-list-of-recent-items-in-your-application
How can I add instances of data classes (classes that inherit Data-) to the recent list?
I have tried adding data class instances by calling activity @baseclass.pxRecents with parameter "upsert", but to no avail.
Resolution
The document here https://pdn.pega.com/user-interface/displaying-a-list-of-recent-items-in-your-application talks about setting @baseclass.pxTrackThisDocument property on the harness of the data instance to enable their listing in recents.
There are many instances of this OOTB - for example SpellChecker properties (Data-SpellChecker-Properties) get added to recents when opened. Easiest among all - the operator profile(Data-Admin-Operator-Id) gets added to recents on open. Activity @baseclass.pzGetOperatorProfile in this request sets the pxTrackThisDocument property to true.
Published July 15, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.