Buenos días, creo que estoy haciendo mal el RUNMODAL y me está dando el siguiente mansaje de error:
https://ibb.co/kFMRGR
El código que tengo es el siguiente:
// Aplico filtros para mostrar registros en la page.
recMachineCenter.RESET;
recMachineCenter.SETRANGE("Work Center No.", noOld);
recMachineCenter.SETFILTER("Capacity (Effective)", '>%1', 0);
pageMachine.SETTABLEVIEW(recMachineCenter);
pageMachine.LOOKUPMODE(TRUE);
pageMachine.EDITABLE(FALSE);
// Una vez se ha cogido el registro seleccionado de la lista.
IF pageMachine.RUNMODAL = ACTION::LookupOK THEN BEGIN
// Cambio el centro de trabajo a centro máquina.
pRecProdOrdRoutingLin.VALIDATE(Type,pRecProdOrdRoutingLin.Type::"Machine Center");
pageMachine.GETRECORD(recMachineCenter);
pRecProdOrdRoutingLin.VALIDATE("No.",recMachineCenter."No.");
//Dejo la descripción antigua de la línea.
pRecProdOrdRoutingLin.Description := descripcionOld;
pRecProdOrdRoutingLin.MODIFY(TRUE);