Hi all, I’ve got what is probably a simple problem but I just can’t figure it out!
I have a DSP page that invokes a service to select records from a SQL database. On the string list it returns, in the service I run pub.list:sizeOfList to get a number of how many values there are.
What I want to be able to do, is display an alert in the DSP if the value is more than one. This is what I’ve got so far:
Script:
<script>
function myFunction() {
var x = %value BizFuncCount%
var y = 1
if (Number(x) > Number(y)){
alert("Select correct BIZ_FUNC, then press bottom submit button");
}
else
{
alert("Script test");
}
}
</script>
This function is called on the submit button. Where am I going wrong?