|
|
|
Famous Writer
      
Group: Customers
Last Login: Today @ 11:02:25 AM
GenoPro Version: 2.0.1.6
Posts: 476,
Visits: 1,264
|
|
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
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Today @ 9:21:17 AM
GenoPro Version: 2.4.0.3
Posts: 3,523,
Visits: 14,875
|
|
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...
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Today @ 9:21:17 AM
GenoPro Version: 2.4.0.3
Posts: 3,523,
Visits: 14,875
|
|
|
|
|
|
Famous Writer
      
Group: Customers
Last Login: Today @ 11:02:25 AM
GenoPro Version: 2.0.1.6
Posts: 476,
Visits: 1,264
|
|
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
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Today @ 9:21:17 AM
GenoPro Version: 2.4.0.3
Posts: 3,523,
Visits: 14,875
|
|
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...
|
|
|
|
|
Grand Master
      
Group: Customers
Last Login: Today @ 4:11:09 AM
GenoPro Version: 2.0.1.6
Posts: 1,151,
Visits: 5,399
|
|
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"
|
|
|
|