Question
Coforge DPA
IN
Last activity: 12 Apr 2019 14:10 EDT
Section Refresh not happening
I have configured a table in "Data-Portal" class. The source of table is data page of Work Class. I am using a Button in table. On click of that a ,overlay comes up, where we are having client side validations. I am using Custom buttons(overlay buttons) in overlay. on click of submit, the refresh-other section(parent Section) is not working in actions tab.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Coforge DPA
IN
This issue is resolved by explicitly refreshing the section by using custom control. The control refers a function written in UserWorkForm(HTML Fragment).
The code is:
Custom Control: save the pzModalButton and refer function written below for onclick of submit
User Work Form:
function CustomRefresh(){
doModalAction(pega.u.d.submitModalDlgParam,event);
pega.u.d.reloadSection(pega.u.d.getSectionByName("SectionName","ClassName"));
}
Pegasystems Inc.
FR
Hello,
Is it just the Refresh-Other-Section which is not working? How about if you just call an activity for example.
Coforge DPA
IN
i have added activity, which is not running at all.
Pegasystems Inc.
IN
Try to add refresh section in the button itself ,after the local action.
Pegasystems Inc.
IN
Hello
have you checked tracer? Are you seeing any activity?
Also,is there any error in log/tracer?
Coforge DPA
IN
There is no trace of reload section activity. For test, i have kept a data transform in event actions of submit button. Which is also not running.
Pegasystems Inc.
IN
Hi ,
Check for the console (errors if any ) from the Devloper tool of your browser.(CLick F12 yo open devtools )
Coforge DPA
IN
For Section and Local Action in same class context(-Work), on click of submit(overlay button). The section refresh is happening. But for Parent Section(Data-Portal) and Section containing local action of class(-Work). The refresh on click of submit is not happening. Even the event- actions on overlay button are not working.
Accepted Solution
Coforge DPA
IN
This issue is resolved by explicitly refreshing the section by using custom control. The control refers a function written in UserWorkForm(HTML Fragment).
The code is:
Custom Control: save the pzModalButton and refer function written below for onclick of submit
User Work Form:
function CustomRefresh(){
doModalAction(pega.u.d.submitModalDlgParam,event);
pega.u.d.reloadSection(pega.u.d.getSectionByName("SectionName","ClassName"));
}