Subject | Re: [IBO] Actual field names |
---|---|
Author | russellbelding |
Post date | 2006-06-22T20:58:29Z |
--- In IBObjects@yahoogroups.com, "Alan McDonald" <alan@...> wrote:
It might be that IBO internals have a record of the table.field
names. Yes I could parse the SQL entered; I was hoping to avoid
that. Thanks, Russell
>data
> > I have an "SQL script presenter" that presents in a TIB_GRID the
> > arriving from an SQL script fed to a TIB_QUERY. I want to allowthe
> > grid columns to be ordered by clicking on the column titles.problem. I
> >
> > Using a script like "select field01 from table" there is no
> > use grid.gridFields to get fields names like "field01" and feedthese
> > into the ordering properties of the query.to how
> >
> > Using a script like "select field01 as alias01 from table",
> > I need "field01" for the query ordering properties. So far I can
> > find "alias01" and have not found "field01". Any suggestions as
> > to find "field01" from the existing grid or query properties ornot sure I
> > methods?
> > Thanks
> >
> >
>
> not sure why you're using the word script and not query - so I am
> understand completely..alias name and
> but since the query after executing will only ever return the
> not the original field, you will have to parse the originalquery.text
> yourselfHi Alan.
> Alan
>
It might be that IBO internals have a record of the table.field
names. Yes I could parse the SQL entered; I was hoping to avoid
that. Thanks, Russell