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