Are you sure that you have set the "ADGroupSearch" control in Designer
to accept multiple-values? Check the "Allow multiple selection" setting.


like

Wolfgang


On 16.07.2012 02:36, lvaradha wrote:
>
> I tried the below code
>
> var value1=form.getValues("ADGroupList")
> IDVault.globalQuery("ADGroupList", "InternalResourceCustomQuery",
> {"internalad":form.getValue("ADGroupSearch")})
> field.setValues(value1, value1, true)
>
> field.select(value1)
>
> I am getting this below error.
>
>
> Search: An error 'field.select() function not supported for this type
> of control.' was encountered while executing the script
> 'form.select("ADGroupList") field.fireEvent("adgrpsearch")'
> Search: An error 'field.select() function not supported for this type
> of control.' was encountered while executing the script
> 'form.select("ADGroupList") field.fireEvent("adgrpsearch")'
> Unrecoverable error during asynchronous cal
>
>
> So i remove the field.select(value1) to see the result.
> without field.select(value1), i could able to keep old selection, but
> instead of having my selected value on the RIGHT side of the picklist it
> is showing in LEFT side of the picklist with my search result.
>
> Any idea?
>
>