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

Thomas Arnbjerg

  • EA User
  • **
  • Posts: 75
  • 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: 12978
  • Karma: +540/-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("")
ws.sendkeys "{F8}"

Not the most elegant solution, but it does the job