Options

Start Reports/Dataports automatically

SanyaSanya Member Posts: 11
edited 2003-02-12 in Navision Attain
I want to start Reports or/and Dataports automatically. Does anybody know, how I can reach this? And what about starting the whole database incl. Login by a script or anything else?

Comments

  • Options
    Torben_R.Torben_R. Member Posts: 99
    Try a programme called Automate provided by Unisyn Software www.unisyn.com

    You can try a trial version for 15 days.

    Regards
    Torben
  • Options
    In Navision 3.60, Service Management, Periodic Activities, Job Scheduler Overview. :lol:
  • Options
    PrebenRasmussenPrebenRasmussen Member Posts: 137
    You can also use the simple approach: a vb script:

    wshShell.Run "fin.exe",1,false
    WScript.Sleep(1000)
    wshShell.SendKeys "{F12}"
    wshShell.SendKeys "username"
    wshShell.SendKeys "{ENTER}"
    wshShell.SendKeys "password"
    wshShell.SendKeys "{ENTER}"
    wshShell.SendKeys "{ENTER}"

    But as you see, the pasword is exposed if you do not use Windows login.
  • Options
    SanyaSanya Member Posts: 11
    Thanks a lot for your answers. I will try... But unfortunately we got the version 3.10..... :?
  • Options
    andre_jackandre_jack Member Posts: 14
    I use the freeware AUTOIT with a simple script, very similar to the vb script by PrebenRasmussen; it simulates the keys you press when opening the Attain interface and run the report.
    If you are interested I can send the script to you
  • Options
    SanyaSanya Member Posts: 11
    Of course I'm interested :D It would be perfect. I have got the AUTOIT Program too. But I have no documentation. So I do not know how to work with it....

    Thanks
  • Options
    andre_jackandre_jack Member Posts: 14
    You can find some documentation on the AutoIT homepage and on the Help file AutoIT installs.
    The site:
    http://www.hiddensoft.com/AutoIt/index.html

    The script I've made is something like:

    ; Runs Navision client
    Run, C:\\Program Files\\Navision Financials\\fin.exe servername=YOURSERVER\, nettype=tcp\, company=YOURCOMPANY
    WinWait, Login
    WinActivate, Login
    Send, USERNAME{TAB}
    Send, PASSWORD
    LeftClick, 50, 100

    ; Pounts to 'Contact Management'
    Send, !C


    that's it.


    Andrea
Sign In or Register to comment.