Question
Evonsys
LK
Last activity: 4 Apr 2018 9:19 EDT
Refresh section by Radio button click event in the grid view row
Hi All,
i want to refresh the section when doing radio button click in the grid view row with the below custom control. to refresh the section i modified the on click event as below: but section is not getting refreshed, how can i modify the below control to refresh a section??
this is how i modified the method:
onclick="Grids.getActiveGrid(event).setOtherRadioToFalse(this, event );" "pega.u.d.reloadSection(pega.u.d.getSectionByName('ORG-FW-CCF-Data-Entity-Address.ResidencyDetails','',''),'Testactivity','', false, true, '-1', false);"
My Cutom control (without refresh section method )
Hi All,
i want to refresh the section when doing radio button click in the grid view row with the below custom control. to refresh the section i modified the on click event as below: but section is not getting refreshed, how can i modify the below control to refresh a section??
this is how i modified the method:
onclick="Grids.getActiveGrid(event).setOtherRadioToFalse(this, event );" "pega.u.d.reloadSection(pega.u.d.getSectionByName('ORG-FW-CCF-Data-Entity-Address.ResidencyDetails','',''),'Testactivity','', false, true, '-1', false);"
My Cutom control (without refresh section method )
<pega:save name="strRefName" ref="$this-name" />
<pega:save name="strValue" ref="$this-value" />
<pega:include name="Messages"/>
<%
String output = StringUtils.crossScriptingFilter(tools.getSaveValue("strRefName").replaceAll("[\\d]" , ""));
%>
<input type="hidden" name="<p:r n='$this-name'/>" value="false"/>
<input type=radio name="<p:r n='$this-name'/>"
onclick="Grids.getActiveGrid(event).setOtherRadioToFalse(this, event );" value="true"
<pega:when test='$this-value=="true"'>
checked="true" id = "<%=output%>"
</pega:when>
<pega:choose>
<pega:when test="$mode-input">
</pega:when>
<pega:otherwise>
disabled="disabled"
</pega:otherwise>
</pega:choose>
<pega:include name="ClientValidation"/> />
One of three things is likely going wrong. Here is how I would approach this.
1) Verify your JS markup/syntax is correct. Make sure you onClick is fired properly (use an alert or something obvious)
2) Verify your reload call is actually making it out to the server.
3) If the call never makes it out, verify the syntax or expected list of params of the reload call is accurate. This is an internal API, so it could change from release to release. (Try and find an internal reference and mimic the call)