Question
Hopkins Software Pvt. Ltd.
IN
Last activity: 4 May 2023 4:57 EDT
How to open Incomplete Assignment on button click
Hi Everyone,
My requirement is to open incomplete assignment on button click. The assignment is mostly recently clossed
-
Like (0)
Ganesh Erae -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 4 May 2023 4:53 EDT
Infosys Private Limited
IN
Could you please confirm how you configured by providing screenshots.
- Make sure you should pass the particular page which is holding values in pages and classes.
- Once again check is particular property holding the pzInskey or not? which you passed in the handle key.
- One more way to achieve this requirement you can use "open-assignment" action by passing pyID.
Ordina
NL
@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.
-
Nagarjuna Saidu
Hopkins Software Pvt. Ltd.
IN
@BasRulesMatter! Incomplete Assignments means Pending assignments
-
Nagarjuna Saidu
Bits in Glass
IN
@Nagarjuna Saidu 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.
-
Nagarjuna Saidu Motukatla Harsha Vardhan
Hopkins Software Pvt. Ltd.
IN
@Anoop Krishna Then How open this recently closed instance on button click
Bits in Glass
IN
@Nagarjuna Saidu 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.
Updated: 2 May 2023 7:52 EDT
Hopkins Software Pvt. Ltd.
IN
@Anoop Krishna Appears Empty Assignment Key. The Button is in Data-portal-Class
Bits in Glass
IN
@Nagarjuna Saidu Fetch using dpage and refer dpage.property. Define that dpage in page and classes
Updated: 2 May 2023 6:32 EDT
Saudi azm
SA
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.
Infosys Private Limited
IN
- On click of button in action set run an activity to get latest instance using Obj-browse or Report defination. fetch pyID and pzInsKey of that particular record.
- Observe on which page results are getting loaded. pass that in pages and classes of that particular section.
- after that add another action set to that button "Open Work By handle" pass that pzInsKey property in the params.
-
Nagarjuna Saidu
Hopkins Software Pvt. Ltd.
IN
@Bhavani Sagireddy This Error comes
Ordina
NL
@Nagarjuna Saidu 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?
Accepted Solution
Updated: 4 May 2023 4:53 EDT
Infosys Private Limited
IN
Could you please confirm how you configured by providing screenshots.
- Make sure you should pass the particular page which is holding values in pages and classes.
- Once again check is particular property holding the pzInskey or not? which you passed in the handle key.
- One more way to achieve this requirement you can use "open-assignment" action by passing pyID.
-
Nagarjuna Saidu
Hopkins Software Pvt. Ltd.
IN
Key---- D_PullCaseDP.pxResults(1).pzInsKey This is working for me. Thank You Everyone
-
Anoop Krishna Baby Srilakshmi Ganga Bhavani Sagireddi Bas Groeneveld