1. Version v9.0p_2014-02-15/LGPL Development Only
2. FireFox any version and Chrome
The problem description:
I use one SelectItem in a DynamicForm, and the SelectItem fetches data from server by DataSource. It fetches data when it
creates the first time (so I set its 'autoFetchData' true). I use 'picklist' to display it when click. The displayed listgrid is
set filtered (Its property 'showFilterEditor' is set true).
Acturally it was very like the example 'Featured Samples.Filter Related Records'.
But when I use as above, the problem appears. I click the selectitem and the listgird displays. I input one char in any
filtereditor, and the filtering does not process. When I open the server debug port and repeat it, I find the selectitme also
fetch data from server but not filter data which has been fetch on creating selectitem.
Furtherly when I input one char again, that is to say, input two chars, the filtering appears. And I futrher modify the input
value into one char or multiple chars, the filtering is normar.
But when I click the selectitem again and show the listgrid, the problem also appears again.
(Note: the SelectItem is located the line 91 and named infBoxLabel in the attach file 'uni_topo.js')
[code]
var infBoxLabel = ({
name: "infBoxLabel",
titleAlign : "left",
colSpan : 2,
width : "100%",
title:Uni_Util.getTitleHtml(sdn_uni_interface_name),
type:"select",
multiple:true,
valueField:"infName",
displayField:"infName",
pickListWidth:480,
autoFetchData:true,
defaultToFirstOption:true,
pickListProperties: {autoFetchData:false,
showFilterEditor:true,
filterOnKeypress:true,
filterButtonProperties:{visibility:"hidden"},
autoFetchTextMatchStyle:"substring",
},
pickListFields:[{name:"infName",
title:sdn_uni_phy_name,
type:"text",
required:true,
showDefaultContextMenu:false},
{name:"adminStatus",
title:sdn_uni_phy_admin_status,
valueMap:[sdn_uni_phy_admin_status_enable, sdn_uni_phy_admin_status_disable],
type:"select",
required:true,
showDefaultContextMenu:false},
{name:"infDesc",
title:sdn_uni_phy_description,
type:"text",
required:true,
showDefaultContextMenu:false}],
pickListCriteria:{start:0, length:10000, condStr:JSON.stringify({vrID: this.vrID, neIDs: this.neID})},
optionDataSource:isc.RestDataSource.create({
dataFormat : "json",
fetchDataURL : "/web/res/web-sdn-service/phyinf/fetch",
fields: [{name:"infName"},{name:"adminStatus"},{name:"infDesc"}],
operationBindings : [{operationType:"fetch", dataProtocol:"postMessage"}],
allowAdvancedCriteria:true,
}),
endRow: false,
});
[/ code]
Please check it.
Thank you.
2. FireFox any version and Chrome
The problem description:
I use one SelectItem in a DynamicForm, and the SelectItem fetches data from server by DataSource. It fetches data when it
creates the first time (so I set its 'autoFetchData' true). I use 'picklist' to display it when click. The displayed listgrid is
set filtered (Its property 'showFilterEditor' is set true).
Acturally it was very like the example 'Featured Samples.Filter Related Records'.
But when I use as above, the problem appears. I click the selectitem and the listgird displays. I input one char in any
filtereditor, and the filtering does not process. When I open the server debug port and repeat it, I find the selectitme also
fetch data from server but not filter data which has been fetch on creating selectitem.
Furtherly when I input one char again, that is to say, input two chars, the filtering appears. And I futrher modify the input
value into one char or multiple chars, the filtering is normar.
But when I click the selectitem again and show the listgrid, the problem also appears again.
(Note: the SelectItem is located the line 91 and named infBoxLabel in the attach file 'uni_topo.js')
[code]
var infBoxLabel = ({
name: "infBoxLabel",
titleAlign : "left",
colSpan : 2,
width : "100%",
title:Uni_Util.getTitleHtml(sdn_uni_interface_name),
type:"select",
multiple:true,
valueField:"infName",
displayField:"infName",
pickListWidth:480,
autoFetchData:true,
defaultToFirstOption:true,
pickListProperties: {autoFetchData:false,
showFilterEditor:true,
filterOnKeypress:true,
filterButtonProperties:{visibility:"hidden"},
autoFetchTextMatchStyle:"substring",
},
pickListFields:[{name:"infName",
title:sdn_uni_phy_name,
type:"text",
required:true,
showDefaultContextMenu:false},
{name:"adminStatus",
title:sdn_uni_phy_admin_status,
valueMap:[sdn_uni_phy_admin_status_enable, sdn_uni_phy_admin_status_disable],
type:"select",
required:true,
showDefaultContextMenu:false},
{name:"infDesc",
title:sdn_uni_phy_description,
type:"text",
required:true,
showDefaultContextMenu:false}],
pickListCriteria:{start:0, length:10000, condStr:JSON.stringify({vrID: this.vrID, neIDs: this.neID})},
optionDataSource:isc.RestDataSource.create({
dataFormat : "json",
fetchDataURL : "/web/res/web-sdn-service/phyinf/fetch",
fields: [{name:"infName"},{name:"adminStatus"},{name:"infDesc"}],
operationBindings : [{operationType:"fetch", dataProtocol:"postMessage"}],
allowAdvancedCriteria:true,
}),
endRow: false,
});
[/ code]
Please check it.
Thank you.