Hi,
I have an issue with create record. I have 7 columns in my grid. I am
using recordDef.createRecord function to add the data to the store. I
am adding 7 values to the createRecord function for setting to the
grid. my problem here is I am seeing data only for the first column,
but not for all the columns. Please look at the below code and let me
know what's wrong with this.
private RecordDef createRecordDef(){
recordDef = new RecordDef(
new FieldDef[]{
new StringFieldDef("Number"),
new StringFieldDef("Aircraft Hours"),
new StringFieldDef("Current Status"),
new StringFieldDef("Next Due Inspection"),
new StringFieldDef("Next Due Date"),
new StringFieldDef("Month"),
new StringFieldDef("Status"),
}
);
return recordDef;
}
for(Iterator itr = testSet.iterator(); itr.hasNext();){
Test test = (Test)itr.next();
record[i] = recordDef.createRecord(new Object[] { test.getNumber
(),test.getStation(), test.getInServiceDate(), test.getTailNumber(),
test.getCustomer(), test.getStatus(), test.getComments()});
}
ArrayReader reader = new ArrayReader(createRecordDef());
proxy = new PagingMemoryProxy(new Object[][]{});
store = new Store(proxy, reader,true);
store.load();
grid.setStore(store);
grid.getStore().add(record);
Thanks in advance for any help.
Thanks,
Sekhar.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---