Para los Eruditos GeneXus
Publicado por Arlex Franco (101 intervenciones) el 24/02/2011 20:57:41
muy buen dia, estoy tratando de recorrer una tabla de un dataview con un Xfor Each, y mostrar unicamente los registros de esa tabla que esten en otra base de datos contenida en otro data view.. lo que hago en el evento LOAD es esto
Event Load
if cursor(&cT)
XFor Each 'LAVLOT' index 'ILAVLOT3' where LOTSTA = 'T' and LOTACC <> 0 and LAVCOD = &cT
xFor Each 'ACMST' index 'ACMSTL0' where ACMACC = LOTACC
&L = LOTKBT
&NL = LOTNUM
&Linea = LOTKSQ
&Dte = YMDtoD(LOTBDY,LOTBDM,LOTBDD)
&Des = LOTTDS
&acc = LOTACC
&mont = 0
&Tipo = LOTTCD
XEndFor
XendFor
Endif
EndEvent // Load
Como ven, tengo un ForEach anidado asi me parece que es la mejor manera de listar en el grid unnicamente los registros que coinciden
Pero, al compilar me da el siguiente error
spc0089 Event Load cannot be specified when there are multiple grids.
Event Load
if cursor(&cT)
XFor Each 'LAVLOT' index 'ILAVLOT3' where LOTSTA = 'T' and LOTACC <> 0 and LAVCOD = &cT
xFor Each 'ACMST' index 'ACMSTL0' where ACMACC = LOTACC
&L = LOTKBT
&NL = LOTNUM
&Linea = LOTKSQ
&Dte = YMDtoD(LOTBDY,LOTBDM,LOTBDD)
&Des = LOTTDS
&acc = LOTACC
&mont = 0
&Tipo = LOTTCD
XEndFor
XendFor
Endif
EndEvent // Load
Como ven, tengo un ForEach anidado asi me parece que es la mejor manera de listar en el grid unnicamente los registros que coinciden
Pero, al compilar me da el siguiente error
spc0089 Event Load cannot be specified when there are multiple grids.
Valora esta pregunta
0