Question

3
Replies
518
Views
Close popover
Vinod Manavi (vinod_manavi)
Cognizant Technologies

Cognizant Technologies
CA
vinod_manavi Member since 2015 7 posts
Cognizant Technologies
Posted: June 27, 2017
Last activity: July 31, 2017
Closed

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

Low-Code App Development Data Integration Java and Activities System Administration Upgrades
Moderation Team has archived post