Power Builder - actualizar datos

 
Vista:
sin imagen de perfil

actualizar datos

Publicado por MARCOS (67 intervenciones) el 27/06/2014 23:24:45
Hola buenos dias tengo un problema tengo un boton actualizar con el siguiente codigo:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
if dw_1.RowCount() > 0 then
	dw_2.SetItem(1,'estado_resultado','I')  // Resultados Digitados
   dw_2.SetItem(1,'fecha_actualizacion_resultado',datetime(today(),now()))
	dw_2.SetItem(1,'usuario_actualiza_resultado',e_usuario.usuario)
 
End If
 
if dw_1.Update(true,false)=1 then
	if dw_3.Update(true,false)=1 then
		if dw_2.Update()=1 then
			commit;
			dw_3.ResetUpdate()
			dw_1.ResetUpdate()
		else
			Rollback;
		end if
	else
		rollback;
	end if
end if
dw_1.SetFocus()

pero cuando lo ejecuto me dice en la que no puede crear dos llaves primarias por que el no actualiza si no guarda que podria hacer para esto si alguien me da una luz agradezco.
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