|
|
|
|
Important Contributors FamilyTrees.GenoPro.com Customers Translator GenoPro version: 2.0.1.6
Last Login: Tuesday, December 16, 2008
Posts: 390,
Visits: 1,271
|
Dan, I'm practising my programming and noticed that, within Genopro, the VBScript 'InputBox()' function doesn't work. I got instead the error message: Permission denied. Error 800A0046. Could you explain the problem? Thank you, JC
Edited: Sunday, July 13, 2008 by
GenoProSupport
|
|
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, February 3, 2026
Posts: 4,886,
Visits: 22,803
|
MsgBox and InputBox are client-side interaction functions. The scripting engine within report generator has not been designed to be interactive. Ron bypassed the interaction by using an external Active X control for creating HTML forms allowing the user to change the report parameters.
According to the technical documentation, I need to do is implement IActiveScriptSiteWindow...
Edited: Sunday, July 13, 2008 by
GenoProSupport
|
|
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, February 3, 2026
Posts: 4,886,
Visits: 22,803
|
|
|
|
|
|
Important Contributors FamilyTrees.GenoPro.com Customers Translator GenoPro version: 2.0.1.6
Last Login: Tuesday, December 16, 2008
Posts: 390,
Visits: 1,271
|
Thanks Dan, Your brief Interactive MsgBox skin works. That is with VBScript. I also tried the jscript 'window.prompt()' function but this one doesn't seem to work. Sorry to ask this question but as I am also learning jscript, I wonder if the problem's due to a wrong syntax/missing code from me or is it again another Report Generator limitation/blockage? JC
Edited: Sunday, July 13, 2008 by
GenoProSupport
|
|
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, February 3, 2026
Posts: 4,886,
Visits: 22,803
|
jcguasp (7/13/2008) I also tried the jscript 'window.prompt()' function but this one doesn't seem to work. Sorry to ask this question but as I am also learning jscript, I wonder if the problem's due to a wrong syntax/missing code from me or is it again another Report Generator limitation/blockage?GenoPro's report generator does not block anything. The message Permission Denied was displayed by the VBScript engine after querying GenoPro for the interface IActiveScriptSiteWindow. Since GenoPro was not supporting IActiveScriptSiteWindow and this interface was necessary to display a message box, then the script engine concluded the best error would be persmission denied. I don't know about the JScript window.prompt() function. I am learning scripting as you do...
|
|
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 14 hours ago
Posts: 3,487,
Visits: 27,235
|
jcguasp (7/13/2008) I also tried the jscript 'window.prompt()' function but this one doesn't seem to work.
My understanding is that the 'window' object is only available in a web browser, hence cannot be used from the Report Generator, only when running the script from an HTML page under browser control.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Edited: Monday, July 14, 2008 by
Ron
|