when I add grid, I show this message with popup
how do I solve this problem?
DataSource: isc_DataSource_0: attempt to use DataSource of type iscServer without SmartClient Server option. Please either set clientOnly: true for one-time fetch against dataURL/testFileName or upgrade to SmartClient Pro, Power or Enterprise
Stack trace:
DataSource.sendDSRequest(_1=>Obj)
DataSource.performDSOperation(_1=>"add", _2=>Obj{name:11}, _3=>"isc_ListGrid_0.$337(dsResponse, dsReques..."[42], _4=>Obj)
DataSource.addData(_1=>Obj{name:11}, _2=>"isc_ListGrid_0.$337(dsResponse, dsReques..."[42], _3=>Obj)
ListGrid.saveEditedValues(_1=>1, _2=>5, _3=>Obj{name:11}, _4=>undef, _5=>"_1", _6=>"tab", _7=>undef)
ListGrid.saveEdits(_1=>"tab", _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef)
ListGrid.$32l(_1=>2, _2=>0, _3=>"tab")
ListGrid.$32f(_1=>"tab", _2=>1, _3=>5, _4=>2, _5=>0)
ListGrid.cellEditEnd(_1=>"tab", _2=>undef)
ListGrid.editorKeyPress(_1=>[TextItem ID:isc_TextItem_5 name:goodtime], _2=>"Tab", _3=>null)
[a]DynamicForm.itemKeyPress(_1=>[TextItem ID:isc_TextItem_5 name:goodtime], _2=>"Tab", _3=>null)
FormItem.$18d(_1=>[TextItem ID:isc_TextItem_5 name:goodtime], _2=>[DynamicForm ID:isc_DynamicForm_0], _3=>"Tab", _4=>null)
FormItem.handleKeyPress(_1=>Obj, _2=>Obj)
[a]MathFunction.invokeSuper(_1=>null, _2=>"handleKeyPress", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
[a]MathFunction.Super(_1=>"handleKeyPress", _2=>[object Arguments], _3=>undef)
TextItem.handleKeyPress(_1=>Obj, _2=>Obj)
[c]EventHandler.bubbleEvent(_1=>[TextItem ID:isc_TextItem_5 name:goodtime], _2=>"keyPress", _3=>Obj, _4=>undef)
[c]EventHandler.handleKeyPress(_1=>[object KeyboardEvent], _2=>undef)
[c]EventHandler.$kd(_1=>[object KeyboardEvent])
[c]EventHandler.dispatch(_1=>[c]EventHandler.$kd(), _2=>[object KeyboardEvent])
anonymous(event=>[object KeyboardEvent])
source
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.DataSourceField;
import com.smartgwt.client.data.fields.DataSourceTextField;
import com.smartgwt.client.types.Autofit;
import com.smartgwt.client.types.ListGridEditEvent;
import com.smartgwt.client.types.RowEndEditAction;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.grid.ListGridRecord;
import com.smartgwt.client.widgets.layout.VLayout;
import com.google.gwt.core.client.EntryPoint;
public class EditGrid implements EntryPoint {
public void onModuleLoad() {
final ListGrid countryGrid = new ListGrid();
DataSource dataSource = new DataSource();
countryGrid.setWidth(500);
countryGrid.setAutoFitMaxRecords(6);
countryGrid.setAutoFitData(Autofit.VERTICAL);
countryGrid.setCanEdit(true);
countryGrid.setEditEvent(ListGridEditEvent.CLICK);
countryGrid.setListEndEditAction(RowEndEditAction.NEXT);
String [] name = {"name", "population","total_area", "goverment", "have","goodtime" };
DataSourceField namek;
for (int i = 0; i < name.length; i++) {
namek = new DataSourceTextField(name[i], name[i]);
dataSource.setFields(namek);
}
IButton button = new IButton("Edit New");
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
countryGrid.startEditingNew();
}
});
countryGrid.setDataSource(dataSource);
VLayout vLayout = new VLayout(20);
vLayout.addMember(countryGrid);
vLayout.addMember(button);
vLayout.draw();
}
}
how do I solve this problem?
DataSource: isc_DataSource_0: attempt to use DataSource of type iscServer without SmartClient Server option. Please either set clientOnly: true for one-time fetch against dataURL/testFileName or upgrade to SmartClient Pro, Power or Enterprise
Stack trace:
DataSource.sendDSRequest(_1=>Obj)
DataSource.performDSOperation(_1=>"add", _2=>Obj{name:11}, _3=>"isc_ListGrid_0.$337(dsResponse, dsReques..."[42], _4=>Obj)
DataSource.addData(_1=>Obj{name:11}, _2=>"isc_ListGrid_0.$337(dsResponse, dsReques..."[42], _3=>Obj)
ListGrid.saveEditedValues(_1=>1, _2=>5, _3=>Obj{name:11}, _4=>undef, _5=>"_1", _6=>"tab", _7=>undef)
ListGrid.saveEdits(_1=>"tab", _2=>undef, _3=>undef, _4=>undef, _5=>undef, _6=>undef)
ListGrid.$32l(_1=>2, _2=>0, _3=>"tab")
ListGrid.$32f(_1=>"tab", _2=>1, _3=>5, _4=>2, _5=>0)
ListGrid.cellEditEnd(_1=>"tab", _2=>undef)
ListGrid.editorKeyPress(_1=>[TextItem ID:isc_TextItem_5 name:goodtime], _2=>"Tab", _3=>null)
[a]DynamicForm.itemKeyPress(_1=>[TextItem ID:isc_TextItem_5 name:goodtime], _2=>"Tab", _3=>null)
FormItem.$18d(_1=>[TextItem ID:isc_TextItem_5 name:goodtime], _2=>[DynamicForm ID:isc_DynamicForm_0], _3=>"Tab", _4=>null)
FormItem.handleKeyPress(_1=>Obj, _2=>Obj)
[a]MathFunction.invokeSuper(_1=>null, _2=>"handleKeyPress", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
[a]MathFunction.Super(_1=>"handleKeyPress", _2=>[object Arguments], _3=>undef)
TextItem.handleKeyPress(_1=>Obj, _2=>Obj)
[c]EventHandler.bubbleEvent(_1=>[TextItem ID:isc_TextItem_5 name:goodtime], _2=>"keyPress", _3=>Obj, _4=>undef)
[c]EventHandler.handleKeyPress(_1=>[object KeyboardEvent], _2=>undef)
[c]EventHandler.$kd(_1=>[object KeyboardEvent])
[c]EventHandler.dispatch(_1=>[c]EventHandler.$kd(), _2=>[object KeyboardEvent])
anonymous(event=>[object KeyboardEvent])
source
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.DataSourceField;
import com.smartgwt.client.data.fields.DataSourceTextField;
import com.smartgwt.client.types.Autofit;
import com.smartgwt.client.types.ListGridEditEvent;
import com.smartgwt.client.types.RowEndEditAction;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.grid.ListGridRecord;
import com.smartgwt.client.widgets.layout.VLayout;
import com.google.gwt.core.client.EntryPoint;
public class EditGrid implements EntryPoint {
public void onModuleLoad() {
final ListGrid countryGrid = new ListGrid();
DataSource dataSource = new DataSource();
countryGrid.setWidth(500);
countryGrid.setAutoFitMaxRecords(6);
countryGrid.setAutoFitData(Autofit.VERTICAL);
countryGrid.setCanEdit(true);
countryGrid.setEditEvent(ListGridEditEvent.CLICK);
countryGrid.setListEndEditAction(RowEndEditAction.NEXT);
String [] name = {"name", "population","total_area", "goverment", "have","goodtime" };
DataSourceField namek;
for (int i = 0; i < name.length; i++) {
namek = new DataSourceTextField(name[i], name[i]);
dataSource.setFields(namek);
}
IButton button = new IButton("Edit New");
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
countryGrid.startEditingNew();
}
});
countryGrid.setDataSource(dataSource);
VLayout vLayout = new VLayout(20);
vLayout.addMember(countryGrid);
vLayout.addMember(button);
vLayout.draw();
}
}
Comment