Hi,
this is probably a very easy question... :)
I have the following DataSource which displays values correctly when attached to a ListGrid:
Now I want to get a List/Array of all the items in DataSourceTextField name (without using a list grid or anything). How can I do this? Thanks
this is probably a very easy question... :)
I have the following DataSource which displays values correctly when attached to a ListGrid:
Code:
public class SearchDataSource extends XJSONDataSource {
public static final int NAME_FIELD_LEN = 256;
private static int searchID = 0;
public SearchDataSource(SearchRequest request) {
setID(getNextSearchID());
setDataURL("http://...".concat(URL.encode(request.keyword)));
setRecordXPath("/");
DataSourceIntegerField pkField = new DataSourceIntegerField("ID");
pkField.setHidden(true);
pkField.setPrimaryKey(true);
DataSourceTextField name = new DataSourceTextField("name", MainLayout.constants.name(), NAME_FIELD_LEN, true);
// more data DataSourceTextField initializations ....
setFields(pkField, name);
}
}
Comment