Question
Custom Control Radio Button code is not working after upgrade to 7.2 from 5.5
Below is the custom control code. this is using in a list view for a radio Button used for selection. if this is selected, then a Property .pysingleselection is setting to index of the embedded page selected and is using for retrieving purpose. But this is not working and value "NAN" is being set to pysingleselection property,
<script type="text/javascript">
function setValue(val)
{
var id=val.parentNode.parentNode.rowIndex;
document.getElementById("test").value=parseInt(id);
showHideContinue(val);
}
</script>
<pega:choose>
<pega:when name="xxxxx">
<input type="radio" value="true" name="radio" onClick="setValue(this);" alt="<pega:lookup property='.pyActionPrompt' value='SelectTransaction'/>"
<pega:when test='$this-Value == "true"'> checked</pega:when> >
</pega:when>
<pega:when name="xxxxx">
<input type="radio" value="true" name="radio" onClick="setValue(this);" alt="<pega:lookup property='.pyActionPrompt' value='SelectTransaction'/>"
<pega:when test='$this-Value == "true"'> checked</pega:when> >
</pega:when>
<pega:when name="xxxx">
<input type="radio" value="true" name="radio" onClick="setValue(this);" alt="<pega:lookup property='.pyActionPrompt' value='SelectTransaction'/>"
<pega:when test='$this-Value == "true"'> checked</pega:when> >
</pega:when>
<pega:when name="xxxxxx">
<input type="radio" value="true" name="radio" onClick="setValue(this);" alt="<pega:lookup property='.pyActionPrompt' value='SelectTransaction'/>"
<pega:when test='$this-Value == "true"'> checked</pega:when> >
</pega:when>
<pega:otherwise>
<INPUT TYPE="radio" name="radio" value='true' alt="<pega:lookup property='.pyActionPrompt' value='SelectTransaction'/>" disabled>
</pega:otherwise>
</pega:choose>
<pega:onlyonce name="Alpha" >
<input type="hidden" id="test" name='$PSubTxnList$ppySingleSelection' value="<pega:reference name='SubTxnList.pySingleSelection' mode="NORMAL" />">
</pega:onlyonce >
Thanks in advance
Vinod Manavi
Hi Vinod,
I am not sure why your control would return that, but let's take a step back now that you are on Pega 7. Congrats on the [overdue] upgrade ;)
Can you describe at a high level, what this control is trying to achieve or what business requirement it served? I ask because since this was created back on 5.x, maybe we have an OOTB solution for you in Pega 7 which would remove the need for and the overhead of maintaining this custom hand coded control.
Also, you mention list views, which are deprecated in 7.2, so maybe even moving to a report definition would make your use case N/A, depending on the context.
Thanks,
Rett