Dynamic variable to function

ShowTable isn’t globally defined; to access it you need to use the hypeDocument.functions() call, like:

hypeDocument.functions().ShowTable('var1', 'var2', 'var3');

There’s a couple things to note:

  1. If called within HTML code you’d probably need to reference it by HYPE.documents[‘documentName’] where documentName is the name of your exported document
  2. hypeDocument, element, event are the first three arguments. You can theoretically pass any values to these three arguments, but make sure that you know what you’re doing with it as Hype will pass these arguments as expected which might be different than your custom values. If you want to pass additional arguments, see how in this thread.

So your resulting code would probably be something like:

<a href="#" onclick="HYPE.documents['documentName'].ShowTable(null, null, null, 'var1', 'var2', 'var3');">ShowTable</a>