Skip to content

bug in tableproxyBuilder #8

@alja

Description

@alja

.. it sets displayed collection in tabe-info
void REveTableProxyBuilder::Build(const REveDataCollection* collection, REveElement* product, const REveViewContext* context)
{
REveTableViewInfo* info = context->GetTableViewInfo();

// printf("-----REveTableProxyBuilder::Build() body for %s (%p, %p)\n",collection->GetCName(), collection, Collection() );
auto table = new REveDataTable("testTable");
table->SetCollection(collection);
product->AddElement(table);
product->SetName("product for " + collection->GetName());
auto tableEntries = context->GetTableViewInfo()->RefTableEntries(collection->GetName());

for (const REveTableEntry& spec : tableEntries) {
auto c = new REveDataColumn(spec.fName.c_str());
table->AddElement(c);
std::string exp = "i." + spec.fExpression + "()";
c->SetExpressionAndType(exp.c_str(), spec.fType);
c->SetPrecision(spec.fPrecision);
}

info->SetTableId(table->GetElementId());
fTable = table;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions