Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Table on Grid

Status
Not open for further replies.

Huskey

Vendor
Aug 23, 2002
53
0
0
GB
Hi

I have been trying for few weeks to display the table
imported onto the Grid. The database is imported into the decisiontable using the code:
BOOL CODBCTableImporter::APPLYSTRUCTURE()
{..
...
ODBCTableImporter *importer =
dynamic_cast<ODBCTableImporter*>(ObjectManager::GetIdentifiedAlgorithm(ID));
DecisionTable *table = Creator::DecisionTable();
// Set importer parameters.
importer->SetDatabase(&database);
importer->SetTable(tablestring);
importer->SetSelected(columnselected);
importer->SetNames(columnnames);
importer->SetTypes(columntypes);
importer->SetScales(columnscales);

// Load table.
bool ok = (importer->Apply(*table) != NULL);
....
}

Now, how to specify the SQL Query so that I could attach
the query to the Grid in order to load the &quot;Table&quot; which has been imported. The table imported is no longer a CDatabase. It has been converted to DecisionTable. I deeply appreciate if any experts could provide me some hints and advices.

Thanks very much for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top