HomeActive Query BuilderParsing select fields

Parsing select fields


Hi,
I'm using the .NET version.
Is it possible to parse the select fields, not through 'SelectListString' but using object representation?

Thanks, Gai.
Gai Tamir | email
January 2 2008, 05:51 AM
Ok I found the answer (using the CriteriaList).
But now I want the name of the table that this field comes from.

Any Ideas?

Thanks, Gai.
Gai Tamir | email
5 hours, 12 mins since original post
Dear Gai,

Sorry for the late response.

Unfortunately the current version does not allow you to get the link to the MetadataObject object. This will be done in the next minor version by accessing the CriteriaItem.Datasource.MetadataObject.Name property. This version should be available till the end of this month.

Right now you may have a look at the QueryStatistics.OutputColumns or QueryStatistics.UsedDatabaseObjectColumns collections.

Sincerely
Sergey Smagin
Sergey Smagin | email
2 days, 9 hours since original post
Hi,
I can find the table name.

CriteriaItem oldItem = subQuary.CriteriaList[i];
DataSourceObject dataSourceObject = oldItem.Column.Datasource.Data as DataSourceObject;
dataSourceObject.DatabaseObject[0]

Shlomo
Shlomo | email
1 week, 3 days since original post
This topic is closed