Hi Everyone,
My requirement is to open incomplete assignment on button click. The assignment is mostly recently clossed
Hi Everyone,
My requirement is to open incomplete assignment on button click. The assignment is mostly recently clossed
@NagarjunaS16644648 I think you have to ask yourself what you’re trying to accomplish here. From which context do you want to display the most recently closed assignment? When you start from a portal, OOTB there are some widgets that show worklists and workbaskets sorted by urgency and other properties. There’s also a ‘Recents’ gadget that shows recent work which does account for browser behaviour / closing a tab for example. Doing this for an assignment instead is a little different and I would question if this requirement is purposeful to a user.
If the requirement is to display the most recently resolved assignment, that would be easier because that allows you to retrieve an assignment instance and use a status filter to retrieve the assignment with the most recently update datetime property. Still, I would try to clarify this requirement before building what you’re actually asking.
@NagarjunaS16644648
Hi Mate,
To open an incomplete assignment in Pega on button click, we can use " Perform harness" action associated with the button.
Step 1: First we need to identify the ID for the incomplete assignment that you want to open.( we can obtain this ID from worklist)
Step 2: Now we should create a “Perform harness” action on the button by configuring its properties.
Step 3: Now in the Action set field, select the action set that contains the incomplete assignment.
Step 4: Save and Test.
@BasG0629 Incomplete Assignments means Pending assignments
@NagarjunaS16644648 you can refer pyUserworkWorklist report definition which is used to display all the assignments assigned to the specific users. You can customize that RD as per your requirement. You can saveas to different name, and modify filters of RD(You can sort based on pxcreatedatetime for recently closed assignments.
@Anoop Krishna Then How open this recently closed instance on button click
Hi @NagarjunaS16644648
@NagarjunaS16644648 you need to fetch the assignment key using which is pxrefobjectinsname(key to the open assignment) in the above RD and then pass this to open assignment(action) action on click of button.
@Anoop Krishna Appears Empty Assignment Key. The Button is in Data-portal-Class
@NagarjunaS16644648 Fetch using dpage and refer dpage.property. Define that dpage in page and classes
@NagarjunaS16644648 This means that the pagelist you’re doing the ‘Open work by handle’ action for, does not contain any results that have a .pzInsKey as its rowkey. Can you verify that the Obj-Browse or report definition is returning results and you’re referring to the correct values within that pagelist?
@NagarjunaS16644648
Could you please confirm how you configured by providing screenshots.