Ver Mensaje Individual
  #1  
Antiguo 08-06-2015
alexglez1255 alexglez1255 is offline
Miembro
NULL
 
Registrado: jul 2013
Posts: 86
Reputación: 13
alexglez1255 Va por buen camino
Error ´no corresponding master record found´

Cuando doy un Applyupdates(0) en datasets anidados me aparece este error....alguien sabe por que..?
el codigo es el siguiente


Código Delphi [-]
  With logicanegocio do

   If cdsArticContUnClienteCANTIDAD.Value>0 then
     begin
      cdsArticContUnClienteCOD_ARTICULO.AsInteger:=CDSListalmaCOD_ARTICULO.AsInteger;
      cdsArticContUnClientePRECIO.Value:=CDSListalmaPRECIO_VENTA.Value;
      cdsArticContUnClienteDESCRIPCION_ARTICULO.Value:=CDSListAlmaDESCRIPCION.Value;
      cdsArticContUnClienteCOD_VENDEDOR.Value:=cdsContratUnClienteCOD_VENDEDOR.Value;
      cdsArticContUnClienteCAPTURISTA.Value:=CDSdatosempresaUSUARIOACCESO.Value;
      cdsArticContUnClienteIDCAPTURISTA.Value:=CDSdatosempresaIDUSUARIO.Value;
      If (cdsArticContUnCliente.Modified) then
       begin
        cdsArticContUnCliente.ApplyUpdates(0);
        modulodatos.IBTransaction1.Active:=true;
        modulodatos.IBTransaction1.commit;
       end
       Else ShowMessage('Nada que gravar ');
     end  // end if si se hizo algun cambio
    Else begin
      ShowMessage('debe introducir la cantidad ');
      DBedit4.SetFocus;
      end; // End if si la cantidad es >0

Esta tabla es detalle de otra tabla llamada contratos y en esta tabla pongo los articulos de venta del contrato...sin embargo creo que no he definido esa relacion en delphi aunque ya lo hice en el ibexpert no se como hacerlo en el Delphi y creoo que por alli esta el problema...GRACIAS POR SU GRAN AYUDA..Y QUE MI DIOS LOS BENDIGA..POR SU LABOR ALTRUISTA...
Responder Con Cita