Using the ListGrid's advanced field picker, as in
and it all works as advertised, except that the 'Available Fields' filter does not accept user input. This with a 3.1d 10/4 nightly, tested on Firefox 15 and IE9. Log output follows:
Bug?
Code:
public void onModuleLoad() { ListGrid grid = new MyGrid(); grid.setDataSource(DataSource.get("OrderItem")); grid.setUseAllDataSourceFields(true); grid.setAutoFetchData(true); ListGridField detail = new ListGridField("QUANTITY"); detail.setAttribute("detail", true); grid.setFields(detail); VLayout layout = new VLayout(); layout.setWidth100(); layout.setHeight100(); layout.addMember(grid); layout.draw(); if (!GWT.isScript()) { KeyIdentifier debugKey = new KeyIdentifier(); debugKey.setCtrlKey(true); debugKey.setAltKey(true); debugKey.setKeyName("D"); Page.registerKey(debugKey, new KeyCallback() { public void execute(String keyName) { SC.showConsole(); } }); } } class MyGrid extends ListGrid { public MyGrid() { super(); setAttribute("useAdvancedFieldPicker", true, false); setAttribute("advancedFieldPickerThreshold", 1, false); } }
Code:
14:46:22.248:INFO:Log:initialized 14:46:24.210:WARN:Log:New Class ID: 'DataView' collides with ID of existing object with value 'function DataView() { [native code] }'. Existing object will be replaced. This conflict would be avoided by disabling ISC Simple Names mode. See documentation for further information. 14:46:26.706:INFO:Log:isc.Page is loaded
Comment