| This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
I Used count for increamenting the s.no:
function visible(f) {
if(frmTask1.txtGrade.text!==null && frmTask1.txtQuantity.text!==null) {
frmTask1.flxMainSegment.isVisible=true;
var b= frmTask1.txtGrade.text;
var c= frmTask1.txtQuantity.text;
count += 1;
f = count;
var json={"lblSno":f,
"lblGrade":b,
"lblQuantity":c,
"btnDelete":{text:"Delete",onClick:Del}};
arr.push(json);
frmTask1.segmentGetvalue.setData(arr);
frmTask11.segmentDisplay.setData(arr);
} else {
alert("Both text are mandatory");
}
}