Author Topic: Is there a way to trigger the report builder from javascript (i.e. F8)  (Read 2281 times)

Thomas Arnbjerg

  • EA User
  • **
  • Posts: 86
  • Karma: +0/-0
    • View Profile
I've created a script, which sets the project constants based on tags on a report package. Is there a way to trigger document generation from javascript (display window 'Generate Documentation') and avoid having the user press F8?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13239
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Yes, you can press F8 for him.

This is how I do it in VBScript:

Code: [Select]
dim ws
Set ws = CreateObject("wscript.shell")
ws.sendkeys "{F8}"

Not the most elegant solution, but it does the job

Geert