Question
Capgemini India Pvt Ltd
IN
Last activity: 4 Oct 2018 13:54 EDT
How to close a tab on click on any button?
To fulfill one client's requirement, we need to close current tab (which holds case info) on click on one button present in that screen.We already tried "Close" event. Even calling function through "script run" event.
***Updated by moderator: Lochan to add Categories; Updated SR details***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Hi Sachin,
Upon reviewing this SR, it was observed that HFix-8237 was provided as part of the resolution. We also noted that there has been another SR spun for this and that has been resolved with the explanation that the flow action has be configured to close the document on submitting the assignment. Do let us know for any updates on the resolution provided!
Regards,
Lochan | Community Moderator | Pegasystems Inc.
Pegasystems Inc.
IN
Hi Sachin
Scenario: There is a button on the workObject and on click of it work object should be closed. If my assumption of the issue is incorrect kindly let us know.
Configure onClick event on the button and Add RunScript as the action. In the runscript just add "pega.u.d.doClose".
This should work fine, though haven't done complete investigation, if not kindly get back with the issue details.
-
Sandossh R
Capgemini India Pvt Ltd
IN
Hi Gouse,
Thanks for your reply.
Unfortunately it is not working.
Situation is:
Application is running in V6.3 version.
Presently I am in one assignment. In that assignment, there is one buttion. On click on that button currrent object should be closed, hence tab containing that object will also be closed.
Areteans Tech
AU
Hi ,
on click of button, use action save , and check close on save option in that.
Let us know if this works.
Thanks
Pegasystems Inc.
IN
Pegasystems Inc.
IN
Hi Sachin
I thought it was Pega 7. You may try the below change
On click of button run a Script. In the script write any function name of your choice(Eg:In below case I named it closeWorkObject).
Now define this function in userWorkForm HTML Fragment as below
<script>
function closeWorkObject(){
rulesExplorerExecute('CLOSE');
}
</script>
Capgemini India Pvt Ltd
IN
Pegasystems Inc.
IN
If you are trying to close without any additional functionality Try configuring "Cancel" action on click event. The Cancel action does nothing but calls closeWorkObject() function. Remove the script and add Cancel Action.
Capgemini India Pvt Ltd
IN
I tried, "Cancel" but screen is getting blank "white" but tab is not getting closed. Same result if I am selecting "Close".
I also tried option in floa action under Action tab
If an assignment is not being performed? "Close the Work Object", but result is same.
Capgemini India Pvt Ltd
IN
Raised one Pega SR also: SR-A92933
Pegasystems Inc.
IN
Hi Sachin
If the Cancel button shows up a blank screen then that is an issue and has to be debugged further . Perhaps the SR you raised would resolve this.
Pegasystems Inc.
IN
it should work, but as yu are seeing its not. Can you try just configure doclose js function using run script? Are you running directly in the Portal? Or is this work object opened in IAC ?
Capgemini India Pvt Ltd
IN
Hi Ravi,
I tried call doClose function directly using run script, but unfortunately it is having same result, ie: Blank white screen.
I am opening object in the portal only, IAC is not being used in the application.
Updated: 23 Aug 2016 6:40 EDT
BlueRose Technologies
SE
Hi Sachin,
Please try running Work-Close activity for your issue and let me know the response.
Thanks and Regards,
Prudhvi Ranjan
Capgemini India Pvt Ltd
IN
Hi Prudhvi Ranjan,
When I am calling activity "Close" using "Advance->Run Activity", activity is running in background by nothing is happening in screen.
When I am running activity "Close" using Refresh this section, it is showing blank screen under same tab.
eventually tab is not closing.
Capgemini India Pvt Ltd
IN
Hi All,
I think i found actual problem, Its combination of Pega 6.2 SP2 and Dynamic Container in the Portal. Once I am replacing dynamic container with WorkArea it starts working. But due to client expectation, I have to use DynamicContainer only. So kindly suggest me if there is any way, we can make it working .
Pega 6.3 SP2 + Portal hanving DynamicContainer instead of WorkArea
Accepted Solution
Pegasystems Inc.
IN
Hi Sachin,
Upon reviewing this SR, it was observed that HFix-8237 was provided as part of the resolution. We also noted that there has been another SR spun for this and that has been resolved with the explanation that the flow action has be configured to close the document on submitting the assignment. Do let us know for any updates on the resolution provided!
Regards,
Lochan | Community Moderator | Pegasystems Inc.