PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Get value of a column table
Get value of a column table
Iniciado por Juan Luis Marizcal, 15,mar. 2016 18:53 - 2 respuestas
Publicado el 15,marzo 2016 - 18:53
I have several doubts about the tables.

In my page, I have 2 Tables, table A its the parent and Table B its the child, and I want to choose one of the rows of the parent table and the information about that ID in specific were displayed in the Child Table.

Do you have some recomendations or suggestions of this?

please I have a lot of work here.
Publicado el 19,marzo 2016 - 04:12
Easier way: Use a query Select Fielda, Fieldb,Fieldc from table Child where Child.linktotableParent = tableParent.id

Or you can use TableEnableFilter
Publicado el 23,marzo 2016 - 15:13
I do this all the time by:
1) On the Table1 Row Select event insert login to pass the Primary Key of the Parent Table1 (usually stored in a hidden Column as the users don't need to see it) into a Query that drives the content of Table2.
-- qry_Table2.param_PK = Table1.Col_PK
-- Specify any additional additional parameters required.

2) Redisplay the table via TableDisplay(Table2, taReExecuteQuery)

You could also set a global variable in step 1 that is used in the Table2 initialization logic. Then you would redisplay with TableDisplay(Table2, taInit).