CLEAR(fInvProyecto);
recInvProyecto.SETFILTER("Cod. Recurso",cRecurso);
fInvProyecto.LOOKUPMODE(TRUE);
fInvProyecto.SETTABLEVIEW(recInvProyecto);
IF fInvProyecto.RUNMODAL <> ACTION::lookupOK THEN BEGIN
MESSAGE('1');
EXIT(FALSE);
END;
fInvProyecto.GETRECORD(recInvProyecto);
xProyecto := recInvProyecto."Nº proyecto";
EXIT(TRUE);
the runmodal returns always "Cancel" something diferent to lookupOK, the form properties seem to be correct, but I do not if I have forgoten some property
Your ideas are welcome.
0
Comments
On the form properties (the one that you do your lookup to), has the following
Property:LookupMode (If you choose No, the system automatically disables the LookupOK and LookupCancel actions.)
Have a look at the PushButton (your OK button on the form as well)
Property: PushAction
To have the system perform this action... Choose...
If you want to find out what message get's returned then, or if you are still in doubt, check for both or check for 'cancel'
Please note that I have not tested the above code for any errors, but you should get the idea.
Cheers,
gus
Click this link to download the Navision Bible!
If it was hard to write, it should be hard to understand."