It seems that you didn't set the saved values correctly with
field.setValues(). That's why it doesn't find the old value.
See Steven's hint about the function syntax.

You'll find more info on all ECMAScript functions in the IDM UserApp
Design Guide. A helpful resource for solving such issues.


Try:

//Code: In ADGroupList field on event property //adgrpsearch

var value1=form.getValues("ADGroupList");

IDVault.globalQuery("ADGroupList", "InternalResourceCustomQuery",
{"internalad":form.getValue("ADGroupSearch")});

field.setValues( value1, value1, true );

field.select(value1);


Wolfgang


On 13.07.2012 18:56, lvaradha wrote:
>
> Understood thanks... Do you know why i am getting the 2nd error
>
>
> error when i performed the below activity
> 1) click on the workflow
> 2) In ADGroupList selected "SSL-Service-OWA" group to RIGHT Side of the
> Pick list ( Note: i did onload event to populate these value for
> ontime)
> 3) Then i searched for string in ADGroupSearch field and press tab
> which throwed the below error.
>
>
>
> Active Directory Applications: An error '''field.select()'': value(s)
> ''cn=SSL-Service-OWA,cn=ResourceDefs,cn=RoleConfig,cn=AppConfig,cn= UserApplication,cn=idv-DriverSet,ou=IDM,ou=Services,o=idv''
> not found in the list items.' was encountered while executing the script
> 'var value1=form.getValues("ADGroupList")
> IDVault.globalQuery("ADGroupList", "InternalResourceCustomQuery",
> {"internalad":form.getValue("ADGroupSearch")})
> field.setValues("ADGroupList", value1,true) field.select(value1) '
> Active Directory Applications: An error '''field.select()'': value(s)
> ''cn=SSL-Service-OWA,cn=ResourceDefs,cn=RoleConfig,cn=AppConfig,cn= UserApplication,cn=idv-DriverSet,ou=IDM,ou=Services,o=idv''
> not found in the list items.' was encountered while executing the script
> 'var value1=form.getValues("ADGroupList")
> IDVault.globalQuery("ADGroupList", "InternalResourceCustomQuery",
> {"internalad":form.getValue("ADGroupSearch")})
> field.setValues("ADGroupList", value1,true) field.select(value1) '
> Search: An error '''field.select()'': value(s)
> ''cn=SSL-Service-OWA,cn=ResourceDefs,cn=RoleConfig,cn=AppConfig,cn= UserApplication,cn=idv-DriverSet,ou=IDM,ou=Services,o=idv''
> not found in the list items.' was encountered while executing the script
> 'field.fireEvent("adgrpsearch")'
> Search: An error '''field.select()'': value(s)
> ''cn=SSL-Service-OWA,cn=ResourceDefs,cn=RoleConfig,cn=AppConfig,cn= UserApplication,cn=idv-DriverSet,ou=IDM,ou=Services,o=idv''
> not found in the list items.' was encountered while executing the script
> 'field.fireEvent("adgrpsearch")'
>
>