Hi,
I wanted to post query related to valueManager.reset(), for that I tried to create some code which can run on smartclient site,
unfortunately I am not able to create sample with comboBoxItem itself, facing below issue
In smartclient-site -> existing example Mutli-Field Search , I modified filterPickList.js file below is the code
When I call in click event Filtercombo.setValue(45300); - its not updating, I see there is no method Filtercombo.setValue()
45300 is the first value in supplyItem dataSource
Why? any scripts need to be included ?
Please provide sample code which can run directly on smartclient- I can use it for creating actual query
Sample 2 code
Thanks,
Anand L
I wanted to post query related to valueManager.reset(), for that I tried to create some code which can run on smartclient site,
unfortunately I am not able to create sample with comboBoxItem itself, facing below issue
In smartclient-site -> existing example Mutli-Field Search , I modified filterPickList.js file below is the code
When I call in click event Filtercombo.setValue(45300); - its not updating, I see there is no method Filtercombo.setValue()
45300 is the first value in supplyItem dataSource
Why? any scripts need to be included ?
Please provide sample code which can run directly on smartclient- I can use it for creating actual query
Code:
var Filtercombo = {
name: "filteredCombo", title: "Item (ComboBox)",
editorType: "ComboBoxItem",
addUnknownValues:false,
optionDataSource: "supplyItem",
displayField:"itemName", valueField:"SKU",
filterFields:["SKU", "itemName"],
pickListWidth:300,
pickListFields:[
{name:"SKU"},
{name:"itemName"}
]
};
var myButton = isc.IButton.create({
title:"Draw",
left:200,
top:200,
click: function()
{
Filtercombo.setValue(45300);
}
});
var comboItem = isc.DynamicForm.create({
ID:"comboItem ",
numCols:1,
fields : [
Filtercombo
]
});
HLayout.create
({
width : '100%',
layoutMargin : 0,
membersMargin : 10,
members :[comboItem, myButton]
});Sample 2 code
Code:
var item = {
name: "filteredCombo", title: "Select Item", editorType: "ComboBoxItem",
addUnknownValues:false,
optionDataSource: "supplyItem",
displayField:"itemName", valueField:"SKU",
filterFields:["SKU", "itemName"],
pickListWidth:300,
pickListFields:[
{name:"SKU"},
{name:"itemName"}
]
};
isc.DynamicForm.create({
ID:"testForm",
width: 500,
fields : [
item
]
});
item .setValue(45300);Anand L