execute dataport like available files

Martin_FörsterMartin_Förster Member Posts: 55
edited 2006-02-24 in Navision Financials
hallo is there any possibility to execute dataports where the system can found files??

this is the code in the dataport:

explorer.SETRANGE(Path, "webshop einrichtung"."Pfad Import/Export");
explorer.SETRANGE("Is a file", TRUE);
explorer.SETFILTER(Name,datei_import);

IF explorer.FIND('-') THEN BEGIN
  REPEAT
   timestamptemp := COPYSTR(explorer.Name,24,8);
   IF '20060223' = timestamptemp THEN BEGIN
    CurrDataport.FILENAME := "webshop einrichtung"."Pfad Import/Export" + explorer.Name;
    CurrDataport.IMPORT(TRUE);
   END;
  UNTIL explorer.NEXT = 0;
END;

but this code works only one times after it found the first time, but if there another it don't run another time!?!?

NEED HELP!?!?

Comments

  • krikikriki Member, Moderator Posts: 9,112
    You have to put the code OUTSIDE the dataport and call the dataport once for every file.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.