Thanks for your replies. I tried replcaing all the jars and able to integrate. Once I made DMI calls, I have mapped the Data source with two fields, retieved the values from Java, but in the screen, it is showing only one value in the Grid. Can you please help how to map all the values from fetch to the ListGrid? Please see out code sippets below.
public DSResponse fetch(DSRequest dsRequest)
throws Exception
{
DSResponse dsResponse = new DSResponse();
List matchingItemts = ListCriteria.findMatchingItems(); dsResponse.setStartRow(0);
dsResponse.setEndRow(matchingItemts.size());
dsResponse.setData(matchingItemts);
return dsResponse;
}
:
:
SupplyItem item = new SupplyItem();
Long itemID = new Long(1);
item.setSKU(“sku1”);
item.setBankName(“Deutsche Bank”);
item.setItemID(itemID);
elementList.add(item);
item = new SupplyItem();
itemID = new Long(2);
item.setSKU(“sku2”);
item.setBankName(“Citi Bank”);
item.setItemID(itemID);
elementList.add(item);
public class SupplyItem implements Serializable {
protected String SKU;
protected String BankName;
protected Long itemID;
public SupplyItem() { }
public void setBankName(String BankName) {this.BankName=BankName; }
public void setSKU(String sku) {this.SKU = sku;}
public String getBankName() {return BankName;}
public String getSKU() {return SKU;}
public Long getItemID() {return itemID;}
public void setItemID(Long itemID) {this.itemID = itemID;}
JS:
<isomorphic:loadDS ID=“supplyItemDMI” />
isc.ListGrid.create({
ID: “boundGrid”,
dataSource: “supplyItemDMI”,
width: “30%”,
height: 150,
autoFetchData: true
});
boundGrid.fetchData();
ds.xml file
<DataSource
ID=“supplyItemDMI”
serverType=“generic”>
<fields>
<field name=“SKU” type=“text” title=“SKU”/>
<field name=“BankName” type=“text” title=“BankName”/>
</fields>
<serverObject lookupStyle=“new” className=“com.db.dbfc.core.smartclient.FetchData”/>
</DataSource>
Please suggest what am i missing. I am getting values only for SKU. BankName is not getting printed.
Regards,
Kumbesh