Search the Community
Showing results for tags 'master/detail'.
-
Hola, tengo un problema con 2 UniDbGrid relacionados con Maestro/Detalle. Agrupo los datos por un campo de la UniDbGrid y empieza el problema. El problema es que si me desplazo con el teclado (por ejemplo, presiono y mantengo presionado hacia arriba/abajo, la cuadrícula de detalles no puede mantenerse al día con las actualizaciones y las paradas. Solo funcionan los clics del mouse. Estoy usando el evento afterscroll para actualizar la cuadrícula de detalles, pero si me desplazo hacia arriba y hacia abajo varias veces, el afterscroll simplemente deja de funcionar. procedure TUM.qConPedidoAfterScroll(DataSet: TDataSet); var id:integer; begin id := Dataset.fieldbyname('id').asinteger; qdetalle.Close; qdetalle.ParamByName('IDPEDIDOS').AsInteger:=Id; qdetalle.Open; end; ¿Puede darme una solución con alguna funcionalidad en DBGrid, o quizás pueda recomendar una solución alternativa? Actualizar master-detail no es un problema en el escritorio, pero en la web es completamente diferente. Gracias.
- 1 reply
-
- afterscroll
- unidbgrid
-
(and 1 more)
Tagged with:
-
Behavior When moving from one master record to another, the related detail datasets should refresh, obtaining a result set that consists only of records that correspond to the selected master. Thus the detail datasets display only the records that are children of the master dataset. However, the "second" detail dataset does not refresh if the record count of the detail result set is the same for both the prior result set and the new result set. There is a project at GitHub that illustrates this problem. For those with more curiosity, see the README. Here's the URL: https://github.com/Pasquina/uniguimasterdetail.git
- 2 replies
-
- unidbgrid
- master/detail
-
(and 1 more)
Tagged with: