Question
Tata Consultancy Services Limited
GB
Last activity: 30 Aug 2017 6:05 EDT
Remove Thread Level Data Page during Switch Application - Not working
Dear All,
In Pega 7.2.2, when I switch between applications, the thread level data pages are not getting removed. (just OOTB functionality, no customized code involved).
I tried customizing ApplicationFreeClipboard activity and manually removed all Data Pages, still it doesn't work.
Dear All,
In Pega 7.2.2, when I switch between applications, the thread level data pages are not getting removed. (just OOTB functionality, no customized code involved).
I tried customizing ApplicationFreeClipboard activity and manually removed all Data Pages, still it doesn't work.
I am using below Java code in this activity
pega.getDeclarativePageUtils().deleteAllInstancesOfDeclarativePage("D_XXXXXXX");
Please let me know how to remove thread level data pages while switching application.
Thank you for your great support!
Regards
Guhan
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Tata Consultancy Services Limited
GB
Dear All,
I fixed this issue by doing the below steps.
1. Remove the PS1_ threads by using the java code mentioned here (https://community.pega.com/support/support-articles/dynamic-container-not-loading-when-switch-interaction-portal)
2. Using the Activity pzFlushDataPage by passing data page name and FlushAllInstances as true (this is for the data pages with parameters)
3. Using the syntax "tools.removeDataPage("DataPageName");" (this is for data pages without parameters)
I did the above 3 steps in ApplicationFreeClipBoard Activity. (I specialized this is framework layer)
Thank You all for your great support!
Regards
Guhan
Pegasystems Inc.
IN
Ideally, this method should work. Can you make sure by looking at the time of Data page if it was getting removed and not getting reloaded again by some reference?
Tata Consultancy Services Limited
GB
Thank You for your reply!
The code removes the data pages under user pages but it is not removing data page(thread) under data pages - thread. Please refer attachment.
Pegasystems Inc.
IN
Hi,
You can also try the steps mentioned below to achieve your requirement:
1. Do a Page-Remove of data page
2. Call OOTB FlushDeclarativePage activity with page name just D_<Name>
If you are having parameters for the data page, then you can Page-Remove and passing the full data page description with parameters inside e.g. DataPageName[Param1:Value,..].
Regards,
Vikash
Tata Consultancy Services Limited
GB
Thank You for your reply!
The code removes the data pages under user pages but it is not removing data page(thread) under data pages - thread. Please refer attachment.
Pegasystems Inc.
IN
Can you try using one either of the below functions as a java step in your activity and check if it removes the thread level data page.
pega_rules_declarepages.ExpireDeclarativePage(tools,"DeclarePagename");
or
pega.getDeclarativePageUtils().flushPage("Declarepagename");
Tata Consultancy Services Limited
GB
Thank You for your reply.
This code removes the data page only from Standard/Open Portal thread. It is not removing the data page from PS1_TABTHREAD1/PS2_TABTHREAD2. Please find attachment.
is there any code which removes thread level data page from all the available threads?
Thank You!
Pegasystems Inc.
IN
Hi,
Can you try with using below function in Call-Function method .
@(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools, "DeclarePageName")
Thanks,
Santhosh
Tata Consultancy Services Limited
GB
Thank You for your reply.
This code removes the data page only from Standard/Open Portal thread. It is not removing the data page from PS1_TABTHREAD1/PS2_TABTHREAD2. Please find attachment.
is there any code which removes thread level data page from all the available threads?
Thank You!
Accepted Solution
Tata Consultancy Services Limited
GB
Dear All,
I fixed this issue by doing the below steps.
1. Remove the PS1_ threads by using the java code mentioned here (https://community.pega.com/support/support-articles/dynamic-container-not-loading-when-switch-interaction-portal)
2. Using the Activity pzFlushDataPage by passing data page name and FlushAllInstances as true (this is for the data pages with parameters)
3. Using the syntax "tools.removeDataPage("DataPageName");" (this is for data pages without parameters)
I did the above 3 steps in ApplicationFreeClipBoard Activity. (I specialized this is framework layer)
Thank You all for your great support!
Regards
Guhan