Data Objects when instantiated needs to appear in the pyRecents gadget of SFAFramework Portal.
As per requirement, when user tries to create a Data Object by launching New Harness , it must appear in the Recent items list. Tried implementing the steps mentioned in the article (https://pdn.pega.com/support-articles/recent-item-list-not-populated). But the pyRecordID (Step-2) does not appear in the pyRecentListItem Pagelist during execution. As observed, the @baseclass.pyAddRecentListItem Data-Transform is not triggered when a New harness is being launched. Had also tried updating the DT Rule-.pyAddRecentListItem, but this also does not append/update a Page of pyAddRecentListItem Page-List in Declare_pzRecentsCache Data-Page.
Please suggest whether there is any alternate to implement this requirement? Thank You!
When you login to the developer studio and switch to the ootb application pega rules and then you launch a case coupled to a new harness "General Task". You see the update on the side panel is this essentially what you are trying to do? If so I believe that is implemented in pzRecentExplorer section included in pzExplorers which has a refresh when condition on the recents cache. If that is what you are targeting, I would think you can update your design to mirror.
The refresh condition given in pzExplorers section is When Declare_pzRecentsCache.pxUpdateDateTime Changes.
As per my understanding, the only way to acheive this is by appending (target Data WO instance) to the Declare Page Declare_pzRecentsCache. Since, the source activity that builds this Page-List is a Final Rule,I had tried implementing the below steps provided in one of the reference article links mentioned in my original post.
1) Call a PreActivity/DataTransform that sets the pxTrackThisDocument to true in harness primary page.
2) In @baseclass.pyAddRecentListItem, add pyRecordID that shows in Recents section. Now, it will be added in clipboard recents.
3) The recents section in the portal is filtered with a When rule, so one must update pyShowRecents When rule that qualifies patient.
When executed above steps, it is observed that required page does not get appended to the Page-List Declare_pzRecentsCache. Also,had directly tried to append a Page to this Page-List through activity step. But, Pega does not allow to do so. This is where I am currently struck with my implementation.
Kindly let me know any alternate that is available to acheive this. Thank You!