Hi
I have written the below script library function, while onload of the form getting the error message:“strText” is null or not an object
function writeInComboSR(data,fldCombo)
{
fldCombo.length=0
fldCombo.length +=1
fldCombo[fldCombo.length-1].text = “Choose a Person for this Status Report”
for(iCount=1;iCount<data.length;iCount++)
{
fldCombo.length +=1
strText = new Object(); strText=data[iCount]
var pos = strText.indexOf(‘/O=’);
strText = strText.substring(0,pos);
if (strText !=undefined && strText != null)
{
if(strText == document.forms[0].CurrUser.value)
{
fldCombo[fldCombo.length-1].text = trim(strText)
fldCombo[fldCombo.length-1].selected= true
}
else
{
fldCombo[fldCombo.length-1].text = trim(strText)
}
}
}
}
Thanks
Sanjay