xmlport tries to update key

Carlos_PtCarlos_Pt Member Posts: 21
Hi all, i am trying to avoid the "Do you confirm you want to change the key that identifies this record" message when running a xmlport.
CLEAR(XMLportFinishing);
CLEAR(Ficheiro);
CLEAR(recFicheirosFinishing);
CLEAR(vFileNumber);
CLEAR(vLastName);
recConfigFinishing.GET;

MARKEDONLY(TRUE);
IF FINDFIRST THEN BEGIN
  
  Ficheiro.CREATE(recConfigFinishing."Pasta de arquivo" +'\'+ recFicheirosFinishing.Nome + '.xml');
  Ficheiro.CREATEOUTSTREAM(FXOutStream);

  XMLportFinishing.fxSetFinishingCodes(recFicheirosFinishing.Nome, vLastName);
  vTeste:=COUNT;
  XMLportFinishing.SETTABLEVIEW(Rec);
  XMLportFinishing.SETDESTINATION(FXOutStream);
  XMLportFinishing.EXPORT();

  
  Ficheiro.CLOSE;
  
  MARKEDONLY(FALSE);
  CLEARMARKS;
END ELSE
  ERROR('Não existem registos seleccionados.');

fxSetFilter(vFilter);
CurrForm.UPDATE;
I get the message at the XMLportFinishing.SETTABLEVIEW(Rec) call.



Any ideas?

Thanks in advance. :)

Comments

  • krikikriki Member, Moderator Posts: 9,110
    Try to put a "IF FINDFIRST THEN ;" just before the Currform.UPDATE.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Carlos_PtCarlos_Pt Member Posts: 21
    thanks for the reply, it was solved with currform.update(false).

    best regards
Sign In or Register to comment.