No need to use fireEvent in this case - you can simply add this in the
onchange event of the "UserName" field:

This assumes that - like you indicated - both, the field name and the
DAL attribute name, is 'FirstName'

____

function getDetail( dn, fldName, attrName )
{
if ( dn == "" ) return;
try
{
var av = IDVault.get( fldName, dn, "user", attrName );
alert( "Debug: " + av );
}
catch(e)
{
alert( fldName+": error getting "+attrName+" for "+dn+": "+e );
}
}

getDetail( field.getValue(), 'FirstName', 'FirstName' );

____

Wolfgang

On 15.06.2012 20:26, lvaradha wrote:
>
> Hi Wolfgang,
> I changed my code as above, but nothing is getting displayed in the
> form and i am not seeing any error in form and logs either.
>
> Basically i am trying to search for user in UserName field and get
> users FirstName attribute value in the "FirstName" form field for
> modification..
>
> Do you have any idea?
>
>