Question
Accenture
IN
Last activity: 1 Apr 2021 1:58 EDT
Switch to different portal that belongs to same application on click of a button
I need to launch a portal that belongs to same application on click of a button. I have already tried imitating switch application feature of pega. But it does'nt seem to work. Kindly share a working example. I have attached screenshot of my sample implementation of the script "switchApplication"
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Bluevoir
IN
Did you try making use of the OOTB function "changePortal"
Since it's the same application I'm assuming that a single access group has access to multiple portals.
changePortal takes 3 parameters, strNewPortal, currentPortal, strNewPortalLabel.
PFA - working
Accenture
IN
Hi @Hoyath Thanks for your reply. Can I know in which pega version the above solution is working. Because its not working in Pega version 8.1.1. I tried it in 8.4.0, there is some changes in the parameter. Please a take a look at the attachment. Please let me know do we have solution in Pega version 8.1.1 for the same. Thank you.
Bluevoir
IN
I have verified in 8.1.1 as well, it's working for me as expected.
From the code side as well, there aren't any changes in parameters at least. If I'm not wrong this function is sitting in pxCaseMgrheader text file rule in Pega-ENDUSERUI-08-01-01. You can try private editing this rule and add some console loggers to debug the behavior. Look if the function is getting invoked and also verify the parameters.
Let me know if this doesn't help.
Accenture
IN
Thanks for reply @Hoyath. I tried it. I think the function is not being invoked. Please suggest me next actions to sort out this issue.
Bluevoir
IN
Well, this is strange. It should get invoked. I'm not sure, this might need some investigation.
Although I shouldn't be suggesting this, you can try copying the switchPortal function into userworkform with a new name and make use of it. At least this should get invoked.
But, to be frank, this is not a suggested approach, you can raise a support ticket if you aren't able to move forward on this.
Updated: 27 Mar 2021 17:42 EDT
Lantiqx
GB
Accenture
IN
@Krishna_1217 Thanks for your reply. But its not built on a framework. Not able to find a solution for this so far.