[Gambas-user] Accesing database events

Doriano Blengino doriano.blengino at ...1909...
Tue Sep 30 08:17:36 CEST 2008


Benoit Minisini ha scritto:
> On lundi 29 septembre 2008, Jorge Carrión wrote:
>   
>> Excuse me, I've read what I've been write and I think is not very clear.
>> What I want is raise the .movefirst (or next) event of the second
>> databrowse when I make a click in the first databrowser. In other words:
>> cath the click event of the first DataBrowser (and the index, etc.)... but
>> there's no such event en the DataBrowser class.
>> I'm been clear enough with this explanation? Or should I cut off my head
>> inmediatly?
>>
>>     
>
> Not very clear... I didn't understand if the two data browsers are independent 
> or if there is a relation between their table. 
>
> Maybe can you make a picture?
>
>   
I think Jorge has a master-slave relationship between two tables, say, 
TablePainters and TableWorks. Each painter has a name, date of birth, 
and so on, while each record in TableWorks describes a painting; its 
foreign key is in TablePainters.

Each time he clicks in Databrowser1 (painters) he wants to load 
Databrowser2 with all the works from that painter.
This is what it seems to me; unfortunately I don't know database 
controls, so I am not able to help more.


Salut,
Doriano





More information about the User mailing list