Alright, this is my first Alpha 5 site, and I've got it almost completely functional, however, I'm running into a problem with one page in particular. Any help would be great.
Functionally, this pages is intended to create a PDF report, pre-populated from a temporary table which I populate on the fly via the after-validate section of the component. (Query doesn't mean database query, it's the form of query meaning to instigate an investigation.)
The Error:
500 Internal Server Error
Script Error
Error:Script: /CreateAQuery.a5w line:46
x_CreateQuery = a5w_run_Component(tmpl_CreateQuery)
Argument is incorrect data type
The Code:
CreateAQuery.a5w
Functionally, this pages is intended to create a PDF report, pre-populated from a temporary table which I populate on the fly via the after-validate section of the component. (Query doesn't mean database query, it's the form of query meaning to instigate an investigation.)
The Error:
500 Internal Server Error
Script Error
Error:Script: /CreateAQuery.a5w line:46
x_CreateQuery = a5w_run_Component(tmpl_CreateQuery)
Argument is incorrect data type
The Code:
CreateAQuery.a5w
Code:
<html> <head> <%a5 Delete tmpl_Navigation DIM tmpl_Navigation as P tmpl_Navigation = a5w_load_component("Navigation") 'Following code allows you to override settings in the saved component, and specify the component alias (componentName property). 'Tip: Keep the componentName property short because this name is used in page URLs, and it will help keep the URLs short. 'Each component on a page must have a unique alias (componentName property). with tmpl_Navigation location = "" componentName = "Navigation" end with '=======================================compute the HTML for the Component======================================= delete x_Navigation dim x_Navigation as p tmpl_Navigation.request = request tmpl_Navigation.session = session tmpl_Navigation.response = response tmpl_Navigation.serversetting = serversetting tmpl_Navigation.PageVariables = local_variables() x_Navigation = a5w_run_Component(tmpl_Navigation) ?x_Navigation.Output.Head.JavaScript ?x_Navigation.Output.Head.CSS_Link %> <%a5 Delete tmpl_CreateQuery DIM tmpl_CreateQuery as P tmpl_CreateQuery = a5w_load_component("CreateQuery") 'Following code allows you to override settings in the saved component, and specify the component alias (componentName property). 'Tip: Keep the componentName property short because this name is used in page URLs, and it will help keep the URLs short. 'Each component on a page must have a unique alias (componentName property). with tmpl_CreateQuery componentName = "CreateQuery" end with '=======================================compute the HTML for the Component======================================= delete x_CreateQuery dim x_CreateQuery as P tmpl_CreateQuery.request = request tmpl_CreateQuery.session = session tmpl_CreateQuery.response = response tmpl_CreateQuery.serversetting = serversetting tmpl_CreateQuery.PageVariables = local_variables() x_CreateQuery = a5w_run_Component(tmpl_CreateQuery) '============================================================================================================= if x_CreateQuery.RedirectURL <> "" then response.redirect(x_CreateQuery.redirectURL) end end if ?x_CreateQuery.Output.Head.JavaScript ?x_CreateQuery.Output.Head.CSS_Link %> <!--Alpha Five Temporary Code Start - Will be automatically removed when page is published --> <!--CSS for tmpl_CreateQuery --> <link rel="stylesheet" type="text/css" href="file:///C:\Program Files\A5V7/css/TeaCup/style.css"> <!--Alpha Five Temporary Code End --> <!--Alpha Five Temporary Code Start - Will be automatically removed when page is published --> <!--CSS for tmpl_Navigation --> <link rel="stylesheet" type="text/css" href="file:///C:\Program Files\A5V7/css/TeaCup/components/a5navsysToolbar/style.css"> <!--Alpha Five Temporary Code End --> <meta name="generator" content="Alpha Five HTML Editor"> <title></title> </head> <body> <p><table> <tr> <td><!-- Navigation System --> <%a5 ?x_Navigation.Output.Body.navsysTBH %> </td> </tr> <tr> <td> <br> <table> <tr> <td><%A5 ?x_CreateQuery.Output.Body.Dialog_Echo %></td> </tr> <tr> <td><%A5 ?x_CreateQuery.Output.Body.Xbasic_Code_Errors %></td> </tr> <tr> <td><%A5 ?x_CreateQuery.Output.Body.Dialog_HTML %></td> </tr> </table> </td> </tr> </table> </p> </body></html>
Comment