User Application 4.0.1

EmployeeStatus| String | Static list


In the Form field "EmployeeStatus" i have a static list (Active,
InActive) values for employeestatus attribute.


when i select the user in UserName field it should get the
employeeStatus value.

Below is my code

try
{

dn=form.getValue("UserName").toString;
var av = IDVault.get( null, dn, "user", "employeeStatus");
field.select(av)
}
catch(e)
{
alert( "Error"+e );
}

got the below error.

ErrorExpected string value for parameter ''dn'' of function
''idvault.get()''.


When i tried with the below hard coded value it works fine.

try
{
var av = IDVault.get( null,
"cn=lkumar_na,ou=NA,ou=Internal,ou=users,o=havigs" , "user",
"employeeStatus");
field.select(av)
}
catch(e)
{
alert( "Error"+e );
}

I followed this posting as well but din't help
http://forums.novell.com/netiq/netiq...cma-error.html


Any idea why this is behaving like this?


--
lvaradha
------------------------------------------------------------------------
lvaradha's Profile: http://forums.novell.com/member.php?userid=77512
View this thread: http://forums.novell.com/showthread.php?t=457970