Subject Re: Seeker and GridColumnIndexChange.cc
From Akshat Kapoor <akshat.kapoor@kapoorsons.in>
Date Tue, 4 May 2021 15:34:56 +0530
Newsgroups dbase.getting-started

Good Afternoon Roy,

This is in addition to what Mervyn has said.
> My form uses Gridcolumnindexchange.cc, and I wish to include a seeker as part of the form, but cannot see how to combine Seeker with gridcolumnindex change.
>
> So my approach is to include a button on the form that runs a separate seeker form with the same table, does a seek, and stores the record number of the table  to a variable, close the Seeker Form, and then use the variable to navigate the table to the same record number.
> As with the following, that does produce an error, but doesn't navigate either, as I cannot see how to navigate just by closing the seeker form.
> ?I need something to "trigger" the navigate.
>
> function SEEKERTITLE85_onClick()
>        Do seekertitle85.wfm

      this.cactusaa1.rowset.applyLocate( mRec)
Copied this line from SEEKERREC_onClose(). It will need modifications.
to suit this function.
Just placing it here should solve your issue.

>        return
>
>   function SEEKERREC_onClose()
>       Store Rec to mrec
>     this.cactusaa1.rowset.applyLocate( mRec)

Is this event firing?
I would insert msgbox('I am firing') to test this.

>        return

Regards
Akshat