Options

MODIFY and RUNMODAL

shansenshansen Member Posts: 6
Dear Friends

I am calling a form to charge the clients VISA cards through a xml gateway. I need to read all payment lines and then save some data from the form, because they might pay with different cards. The code I have tried is:


IF Simul.FIND('-') THEN REPEAT

CLEAR(fTPV);
fTPV.SetVar(Simul."Importe (DL)", Simul."Nº documento");
IF fTPV.RUNMODAL = ACTION::Close THEN BEGIN
fTPV.OperRes(Simul."Nº Tarjeta",Simul.Caducidad);
END;

Simul.MODIFY;

UNTIL Simul.NEXT = 0;

But of course Navision 3.70 (native db) doesn't allow a runmodal without a COMMIT. As I prefer not to use COMMIT, I ask you if you have any suggestions.

Thanks

Soren
Soren Hansen
IT Manager
Helle Auto, S.A.

Comments

  • Options
    philippegirodphilippegirod Member Posts: 191
    Why do you use a form ?
    Could you have a temporary table, in wich you insert all the xml data before running your function and then, you use this table ? Need the user see the form ?
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
Sign In or Register to comment.