Hi,
i want to pass the parameter from one window to another . Based on the passed parameter i want to show the filtered list of records to the user in the list grid.
Please find the code below
<code>
<isomorphic:loadDS ID=“common_masters_codeDS”/>
<isomorphic:loadDS ID=“common_masters_entityDS”/>
isc.DynamicForm.create({
ID: “productForm”,
width:500,
top: 200,
left: 200,
numCols:2,
fields:[
{ name:“productCode”, ID:“productCode”, width:300,title: “ProductCode”,editorType: “comboBox”,
optionDataSource: “common_masters_codeDS”, pickListWidth: 550,valueField: “code”,
autoFetchData:false,pickListCriteria:{masterName:“Product”},pickListFields: [
{ name:“code” },
{ name:“desciption” }
]
},
{ name:"bankCode", width:300,title: "BankCode",editorType: "comboBox",
optionDataSource: "common_masters_codeDS", pickListWidth: 550,valueField: "code",
autoFetchData:false,pickListFields: [
{ name:"code" },
{ name:"desciption" }
],
getPickListFilterCriteria: function() {
return {masterName: "BankCode",
clientCode: productCode.getSelectedRecord().code
}
},
keyPress :function () {
if(isc.Event.getKey()=='Arrow_Down') {
modalWindow.show();
}
}
}
]
});
isc.Window.create({
ID: “modalWindow”,
title: “Seek Window”,
autoSize:true,
isModal: true,
autoCenter: true,
showModalMask: true,
width: “50%”,
height: 400,
autoDraw: false,
closeClick : function () {this.Super(“closeClick”, “test”)},
items: [
isc.DynamicForm.create({
ID: “SeekForm”,
autoFocus: true,
top: 170,
left: 185,
numCols:“2”,
font: “arial”,
fields: [
{name:“code”, title: “Code”,type: “text”,length:30 },
{name:“desc”, title: “Text”,type: “text”, length: 30},
{name: “search”, title: “Search”,type: “button”, length: 30,click: “seekMasterList.filterData({code:SeekForm.getValue(‘code’)})”
}
]
}),
isc.ListGrid.create({
ID: “seekMasterList”,
width:500,
height:380,
alternateRecordStyles:true,
dataSource:“common_masters_entityDS”,
autoFetchData: true,
dataProperties: {fetchMode: “local”},
recordClick:“SeekForm.getField(‘code’).setValue(seekMasterList.getSelectedRecord().code);”
}),
isc.Toolbar.create({
ID: “buttons”,
top: 400,
left: 200,
membersMargin:50,
height: 30,
buttons:[
{title: “Ok”, width:75, align: “left”,titleAlign: “center”, click:“”},
{title: “Cancel”, width:75, align: “left”,titleAlign: “center”,click:“modalWindow.hide()”}
]
})
]
});
</code>
Please tell me how to do this.
Thanks
ArulKumar.K