||Re: datalink controls
Ken Mayer <firstname.lastname@example.org>
||Fri, 12 Jan 2018 07:59:55 -0800
On 1/12/2018 7:08 AM, Mustansir Ghor wrote:
> Dear All
> There is a query object mq1 is created with sql property as mq1.sql = "SELECT * FROM XYZ"
> Based on this 3 entrifield objects are datalinked in a form. eg. form.entryfield1.datalink=form.mq1,rowset.fields["name"]
> I am using later radio button to change table from XYZ to ABC (both have same field structure) in the query mq1.sql. With this datalink controls appear blank. I used rowset.notificontrols property to update controls but it does not work. Do I have to redefine all datalink controls again
> Anybody can guide me on the matter
How are you setting the order? Just changing the SQL property and then
issuing, as Maurizio has noted, rowset.refreshControls() should work. Or
maybe even just navigating to the top of the table (rowset.first() ).
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm