question-DataView(CellEditors)

From: paolog (paologr..ibero.it)
Date: Mon May 02 2005 - 09:30:17 EDT

  • Next message: Cris Daniluk: "RE: error building Expressions: Can't resolve path component"

    Hello!
    I have a question related to DataViews. When i render table using DataViews I
    want to display combo for interested column, (I have created a lookup field
    in data view modeler).

    The code in user documentation is:

    DOTableModel tableModel = new DOTableModel();
    tableModel.setView(featureView);

    // Retrieve a list of data objects (with SelectQuery, say)
    // and initialize the model with it
    DataObjectList featureDataObjects = ...;
    tableModel.setDataObjects(matrixEntries);

    featureTable.setModel(tableModel);

    // set the apropriate TableCellRenderers and Editors
    new CellRenderers().installRenderers(featureTable);
    new CellEditors().installEditors(featureTable);

    But combo in the appropriate column return only a empty list.

    this return the correct lookupfield:
    ObjEntityViewField fld = objectEntityView.getField(2).getLookupField();

    and this return empty:
    Object[] vlr = objectEntityView.getField(2).getLookupValues();

    Where is my error ?

    Thanks
     Paolo



    This archive was generated by hypermail 2.0.0 : Mon May 02 2005 - 09:29:57 EDT