Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DataSource Field List getFields()

    For the datasource, I could not find a method to get list of available fields. I was looking for getFields() method. Is it included in the newer versions or am i missing something.

    Thanks

    #2
    One way to get access to fields is through an event. For a brief example,
    Code:
            ListGrid.addRecordClickHandler(new RecordClickHandler() {
            	public void onRecordClick(RecordClickEvent event) {
            		ListGrid source = (ListGrid)event.getSource();
            		detailViewer.setData(source.getSelection());
    //        		source.getSelectedRecord().getAttribute("_fieldname_");
            	}
            });

    Comment

    Working...
    X