GeneXus - spc0053 !!!! URGENTE!! AYUDA CON EL TRABAJO!!

 
Vista:

spc0053 !!!! URGENTE!! AYUDA CON EL TRABAJO!!

Publicado por gonz@ (10 intervenciones) el 18/05/2012 14:41:07
HOLA!

el warning surge cuando pongo las condiciones "when not &ArticuloId.IsEmpty()"...

alguna equivalencia al when not..

porque si o si necesito que sea asi, por como hice el modelo


DESDE YA MIL GRACIAS!!




Event GridPorMes.Load
if &FlagPorMes
for each order TG_Anio
where TG_Anio >= &AnioI when not &AnioI.IsEmpty()
where TG_Anio <= &AnioF when not &AnioF.IsEmpty()

&Anio = TG_Anio
for each order TG_Mes
where TG_Mes >= &MesI
where TG_Mes <= &MesF

&Mes = str(TG_Mes)
&Venta = 0
for each
where TG_SucursalId = &SucursalId
where TG_ArticuloID = &ArticuloId when not &ArticuloId.IsEmpty()
where TG_ProductoId = &ProductoId when not &ProductoId.IsEmpty()
where TG_SubFamiliaId = &SubFamiliaId when not &SubFamiliaId.IsEmpty()
where TG_FamiliaId = &FamiliaId when not &FamiliaId.IsEmpty()

&Venta += TG_Venta
endfor
LOAD
endfor
endfor
endif
EndEvent






spc0053 Conditional constraint "TG_ArticuloID = &ArticuloId" cannot be generated in group starting at line 404. Changed to standard constraint.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil
Val: 17
Ha mantenido su posición en GeneXus (en relación al último mes)
Gráfica de GeneXus

spc0053 !!!! URGENTE!! AYUDA CON EL TRABAJO!!

Publicado por Julio (305 intervenciones) el 22/05/2012 03:24:36
Prueba esto:

where TG_ArticuloID = &ArticuloId and not &ArticuloId.IsEmpty()

Comenta todas las lìneas where y prueba solo en una.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

spc0053 !!!! URGENTE!! AYUDA CON EL TRABAJO!!

Publicado por ezecozzi (2 intervenciones) el 02/06/2012 02:18:35
El when no esta funcionando. Reemplaza

where TG_SucursalId = &SucursalId
and (TG_ArticuloID = &ArticuloId and not &ArticuloId.IsEmpty() ) or &ArticuloId.IsEmpty()
and (TG_ProductoId = &ProductoId and &ProductoId.IsEmpty() ) or &ProductoId.IsEmpty()
and (TG_SubFamiliaId = &SubFamiliaId and not &SubFamiliaId.IsEmpty() ) or &SubFamiliaId.IsEmpty()
and (TG_FamiliaId = &FamiliaId and not &FamiliaId.IsEmpty() ) or &FamiliaId.IsEmpty()

¿Se entiende?

Saludos
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar