05-05-2008 04:39 PM
05-06-2008 10:28 AM
<html>
<head>
<title>Start DIAdem</title>
<script TYPE="text/vbscript" LANGUAGE="vbscript">
Sub DoDIAdem
Dim oDIAdem
Set oDIAdem = CreateObject("DIAdem.ToCommand" )
Call oDIAdem.TextvarSet("T1","MyQuery" )
Call oDIAdem.CmdExecuteASync("ScriptStart('MyQuery.vbs')" )
End Sub
</script>
</head>
<body>
<h1><a href="javascript:DoDIAdem()">Start DIAdem Script...</a></h1>
</body>
</html>
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
06-11-2008 01:57 AM
<html>
<head>
<title>Start DIAdem</title>
<script TYPE="text/vbscript" LANGUAGE="vbscript">
Sub DoDIAdem
Dim oDIAdem
Set oDIAdem = CreateObject("DIAdem.ToCommand" )
Call oDIAdem.TextvarSet("T1","MyQuery" )
Call oDIAdem.CmdExecuteASync("ScriptStart('MyQuery.vbs')" )
End Sub
</script>
</head>
<body>
<h1><a href="javascript:DoDIAdem()">Start DIAdem Script...</a></h1>
</body>
</html>
Matthias ,
This did work thank you, now i am faced with another chalange, the Dialog window doesn't work thru a web interface, and this forced me to use a different aproache.
Instead of the Dialog window, I created a HTML file/vbscript, which does exactly waht the DIAdem Dialog window was suppose to do.
In this HTML file I have Few drop_down lists that get populated from a MYSql database, when I perfom the selection one parameter is created for each of these Drop down boxes.
The Question is how to pass these parameters to the DIAdem VBscript? as T1, T2, T3 etc...
thx
06-11-2008 10:57 AM
Hello Mikey!
Did the TextVarSet command not work?
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
06-11-2008 11:59 AM
Hello Mikey!
Did the TextVarSet command not work?
Matthias
Can i use this command to pass multiple parameters?
Thx
06-11-2008 12:24 PM
Actually, I just tried the following and it worked:
Call oDIAdem.TextvarSet("T1","Value1" )
Call oDIAdem.TextvarSet("T2","Value2" )
Call oDIAdem.TextvarSet("T3","Value3" )
Call oDIAdem.CmdExecuteASync("ScriptStart(DiademReport.VBS')" )
Thx Matthias
06-11-2008 01:05 PM