TOPIC: BrowseControl Dynamic
#1714
BrowseControl Dynamic 8 Months, 2 Weeks ago
Hi!

I have n tables:
1) trelleno(tablaid,tabla,descripcion)

Values(1,'trtipotelefono','Tipos de telefonos')
Values(2,'trnacionalidad','Nacionalidades')
Values(n,'trtipdoc', 'Tipos de Documentos')

2) trtipotelefono(tipotelefono_num,tipotelefono_name,tipotelefono_abbrev)
3) trnacionalidad(paiscod_num,pais_name, pais_abbrev)
.....
.....
n) trtipdoc(tipdoc_num,tipdoc_name,tipdoc_abbrev)

I want to save in the first table, the names of others tables( from 2 to n), my idea is build a browse on the first table and

when doubleclicked event is triggered, open a window for modified the others tables, sending as parameters tabla columns.

Somebody could help me? . Thanks.
 
 
#1722
Re:BrowseControl Dynamic 8 Months, 2 Weeks ago
Try this from the WorkSpace:

Code:

BrowseControl {
    New()
        { super("tables") }
    List_DoubleClick(row, col)
        {
        x = .GetRow(row)
        Dialog(.Window.Hwnd, 
            Object("Browse", x.tablename, xmin: 500, ymin: 300))
        return false // do not allow edit
        }
    }()



We have to override Browse double click because it normally is used to edit. (If you put this in a library, remove the "()" at the end - that is just so it will run from the WorkSpace)
 
 
andrew
 
#1731
Re:BrowseControl Dynamic 8 Months, 2 Weeks ago
Excelent!!!, Thanks a lot Andrew.

Aprovecho también para preguntar si hay usuarios que hablen Castellano. Gracias!!!
 
 
Last Edit: 2009/12/09 23:41 By isi_jca.