OptionDatasource

Hi,
I’m having a dynamicForm with selectItem. I’m assigning a optionDataSource. I want the selectItem to have data which is based on a criteria which comes as a variable. I tried to use the following code,but getting exception. Kindly let me know how to fill the selectItem using an optionDataSource based on a criteria. I’m pasting below the code i tried out. I’m using a Spring DMI datasource

isc.DynamicForm.create({
	ID:"SelectForm",
	width: 500,
	autoFetchData: false,
    fields: [{
        ID: "List", 
        title: "Select ", 
        type: "select",
        autoFetchData: false,
        optionDataSource: "ListForUserDMI",
        valueField: "Id",
        displayField:"Name"
        }]	
});
List.getOptionDataSource().fetchData({userId:20},List.setValueMap(data));

Thanks In advance

Specify it as pickListCriteria, or if it’s dynamic, override getPickListFilterCriteria()

Could you give some pointers to the documentation of pickListcriteria.
I’m not able to get how it is used.

Thanks in advance.

Anything property or method mentioned in the forums can be looked up in the SmartClient Reference via search.

pickListCriteria is type Object, so eg;

    pickListCriteria : { field : "value" }

Thanks!!!