Subject | Re: [IBO] Re: IB_Grid SearchKeyByKey |
---|---|
Author | Helen Borrie |
Post date | 2007-11-18T12:45:48Z |
At 11:02 PM 18/11/2007, you wrote:
1. Set an OrderingItems entry for the column Tag_No, e.g.,
<another ordering item>
ByTagNo=RelationOrAliasName.Tag_No
So here, if ByTagNo (user-friendly name) is the second entry in OrderingItems, it is OrderingItem # 2 (we count OrderingItems from 1, not 0, just to be confusing!)
2. For when you want the Tag_No column to be the searched column, set the OrderingLinks to be
RelationOrAliasName.Tag_No=2
3. ...and set a SearchingLinks entry so that, when that column is the OrderingLink, the component will know which field its search parameter has to match up to:
RelationOrAliasName.Tag_No=:Tag_No
I'm using "RelationOrAliasName" as a placeholder for the table qualifier - the relation name or the alias name, in case you've got a joined set. You'll need to use whichever one you used in the SELECT statement. Not needed for a single-table query.
As Alan advised, pull up the SearchingLinks example and see how it's done.
Helen
>--- In IBObjects@yahoogroups.com, "Alan McDonald" <alan@...> wrote:You need to line up 3 ducks, not one. :-)
>> Have you set the searchinglinks property in the query?
>> Alan
>>
> Thanks for the responce Alan.
>I hadn't, but have just tried entering various things but that didn't
>work. My table name is Disc & the column name is Tag_No, what should I
>enter in the querySearchingLinks StringList
1. Set an OrderingItems entry for the column Tag_No, e.g.,
<another ordering item>
ByTagNo=RelationOrAliasName.Tag_No
So here, if ByTagNo (user-friendly name) is the second entry in OrderingItems, it is OrderingItem # 2 (we count OrderingItems from 1, not 0, just to be confusing!)
2. For when you want the Tag_No column to be the searched column, set the OrderingLinks to be
RelationOrAliasName.Tag_No=2
3. ...and set a SearchingLinks entry so that, when that column is the OrderingLink, the component will know which field its search parameter has to match up to:
RelationOrAliasName.Tag_No=:Tag_No
I'm using "RelationOrAliasName" as a placeholder for the table qualifier - the relation name or the alias name, in case you've got a joined set. You'll need to use whichever one you used in the SELECT statement. Not needed for a single-table query.
As Alan advised, pull up the SearchingLinks example and see how it's done.
Helen