Question
Cognizant Technologies
CA
Last activity: 31 Jul 2017 21:44 EDT
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>
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