Subject Re: Seeker and GridColumnIndexChange.cc
From roy price <royprice@royprice.name>
Date Fri, 07 May 2021 20:26:10 -0400
Newsgroups dbase.getting-started

roy price Wrote:

> Hopefully one last problem.....
> 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
>       return
>
>  function SEEKERREC_onClose()
>      Store Rec to mrec
>    this.cactusaa1.rowset.applyLocate( mRec)
>       return
>
> function form_onNavigate(nWorkArea)
>        this.image1.dataSource = "FILENAME
> "+form.cactusaa1.rowset.fields['photoloc'].value
> return
>
> Hello Mervyn,,
I have successfully been able to adapt your Seeker Forms to my tables, which seems to work as I wanted.
Thanks very much.
(Although it took me a while to discover that on copying your files listings from the newsgroup to the source editor, that there were hidden characters stopping your code from working.)