I designed a dataport which exports part of the Cust. Ledger Entry table. The report should be run from within the Navision Scheduler. The problem I am facing is that Navision asks me if I want to replace the existing file. Is there a way to prevent this message? I can’t find it in the dataports’ properties.
Try to use command ERASE(filename) before assigning CURRDATAPORT.FILENAME…
maybe with IF ERASE(filename) then; or IF EXIST(filename) then ERASE(filename); otherwise you will get an runtime error if the file does not exist and ERASE tries to erase it.
Thanks very much guys! Navision makes my work every day easier thanks to you! [:)] I think this forum is the best thing ever invented (exept for progressive rock). [:D]
Although the problem is already solved, I think the most simple way would be to do CurrFile.QUERYREPLACE(FALSE); in OnInitDataport or OnPreDataport. It should make the Dataport not ask before replacing the file AND is more logical - in my opinion.
Hi Nelson, I agree; it’s clear that there are more roads that lead to Rome (as we say in The Netherlands), but your road is the best! Thanks!
Then you also know what they say: When in Rome, be a Roman… [:D][:D]
quote:
I think this forum is the best thing ever invented (exept for progressive rock).
Micheal you right about this forum, and with your taste in music. When in Holland, be an Ayreonaut.
quote:
Originally posted by stepheng
[quote]
When in Holland, be an Ayreonaut.
I am! And a Dream Theaterist, and a Porcupine Tree-er, and an Opetheer…[8D]
Hi Try this “Mostly Autumn” best British band around at the moment (IMHO) http://www.mostly-autumn.com/ Friday 23rd April Holland, Zoetermeer, Boerderji
Thanks Steven, I never heard of them. I will try to find their music and listen. Ehhh, I think this is not the right forum for our discussion…[:D]