Hello,
I am trying to fetch the data from wsdl datasource and display it on grid. I am using smartclient server for evaluation purpose. But I am not able to see the data on the grid. Header is displaying but not data.
<HTML><HEAD>
<SCRIPT>var isomorphicDir="../../isomorphic/";</SCRIPT>
<SCRIPT SRC=../../isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=../../isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=../../isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=../../isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=../../isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=../../isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=../../isomorphic/skins/SmartClient/load_skin.js></SCRIPT>
<!--<SCRIPT SRC="ProductSearch.js"></SCRIPT>-->
</HEAD><BODY BGCOLOR='#e0e0e0' MARGINHEIGHT=0 MARGINWIDTH=0 LEFTMARGIN=0 TOPMARGIN=0>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=5 BORDER=0><TR><TD CLASS=pageHeader BGCOLOR=WHITE>
Web Service Binding (PRODUCT SEARCH)
</TD></TR></TABLE><TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0 BORDER=0><TR>
<TD BGCOLOR=336666><IMG SRC=images/blank.gif WIDTH=1 HEIGHT=4></TD></TR></TABLE>
<script>
isc.VLayout.create({
width: "80%",
height: "70%",
top:150,
members: [
isc.SearchForm.create({
ID: "searchForm",
numCols: 4,
wsdlLoaded: function () {
isc.clearPrompt();
var service = isc.WebService.get("http://com/net/service");
if (service == null) {
isc.warn("WSDL not currently available (tried"
+"http://localhost:7001/Test/ProductSearch?wsdl)");
}
this.setDataSource(service.getInputDS("search"));
var myResults = isc.DataSource.create({
serviceNamespace : service.serviceNamespace,
wsOperation : "search",
recordName : "searchResponse",
fields:[
{name:"ProductId", type:"long", xmlRequired:true},
{nillable:"true", name:"ProductName", type:"string", xmlRequired:true},
{nillable:"true", name:"ProductLevel", type:"ProductLevel", xmlRequired:true},
{name:"ConsumptionViewExist", type:"boolean", xmlRequired:true},
{name:"SupplyViewExist", type:"boolean", xmlRequired:true},
{name:"PlantDetailsExist", type:"boolean", xmlRequired:true}
]
});
searchResults.setDataSource(myResults);
}
}),
isc.Button.create({
title: "Search",
click: "searchResults.fetchData(searchForm.getValuesAsCriteria())"
}),
isc.ListGrid.create({
ID: "searchResults",
width:"80%",
height:500,
wrapCells:true,
fixedRecordHeights:false,
showAllRecords:true,
alternateRecordStyles:true,
dataSource:"myResults"
})
]
});
isc.showPrompt("Loading WSDL from http://localhost:7001/Test/ProductSearch?wsdl");
isc.XMLTools.loadWSDL("http://localhost:7001/Test/ProductSearch?wsdl", "searchForm.wsdlLoaded()");
</script>
</BODY>
</HTML>
Thanks for your help in advance.