I am inserting a web component created by Alpha5v7 Web Components unmodified into a a5w page. I have tried with different tables. The error is always at line 22 saying �variable is of different type�. I get the below error:
Script Error
Error:Script: /rotra/CatalogVersionFile.a5w line:22
x_catalogVersion1 = a5w_run_Component(tmpl_catalogVersion1)
Variable is of different type
Suggestions would be appreciated
Thanks
Old tony
A5w generated code below:
<%a5
Delete tmpl_catalogVersion1
DIM tmpl_catalogVersion1 as P
tmpl_catalogVersion1 = a5w_load_component("catalogVersion1a")
'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_catalogVersion1
componentName = "catalogVersion1"
end with
'=======================================compute the HTML for the Component=======================================
delete x_catalogVersion1
dim x_catalogVersion1 as p
tmpl_catalogVersion1.request = request
tmpl_catalogVersion1.session = session
tmpl_catalogVersion1.response = response
tmpl_catalogVersion1.serversetting = serversetting
tmpl_catalogVersion1.PageVariables = local_variables()
'BAD LINE IS BELOW
x_catalogVersion1 = a5w_run_Component(tmpl_catalogVersion1)
'=============================================================================================================
if x_catalogVersion1.RedirectURL <> "" then
response.redirect(x_catalogVersion1.redirectURL)
end
end if
?x_catalogVersion1.Output.Head.JavaScript
?x_catalogVersion1.Output.Head.CSS_Link
%>
<!--Alpha Five Temporary Code Start - Will be automatically removed when page is published -->
<!--CSS for tmpl_catalogVersion1 -->
<link rel="stylesheet" type="text/css" href="file:///C:\Program Files\A5V7/css/Corporate/style.css">
<!--Alpha Five Temporary Code End -->
<meta name="generator" content="Alpha Five HTML Editor">
<title></title>
</head>
<%a5
Script Error
Error:Script: /rotra/CatalogVersionFile.a5w line:22
x_catalogVersion1 = a5w_run_Component(tmpl_catalogVersion1)
Variable is of different type
Suggestions would be appreciated
Thanks
Old tony
A5w generated code below:
<%a5
Delete tmpl_catalogVersion1
DIM tmpl_catalogVersion1 as P
tmpl_catalogVersion1 = a5w_load_component("catalogVersion1a")
'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_catalogVersion1
componentName = "catalogVersion1"
end with
'=======================================compute the HTML for the Component=======================================
delete x_catalogVersion1
dim x_catalogVersion1 as p
tmpl_catalogVersion1.request = request
tmpl_catalogVersion1.session = session
tmpl_catalogVersion1.response = response
tmpl_catalogVersion1.serversetting = serversetting
tmpl_catalogVersion1.PageVariables = local_variables()
'BAD LINE IS BELOW
x_catalogVersion1 = a5w_run_Component(tmpl_catalogVersion1)
'=============================================================================================================
if x_catalogVersion1.RedirectURL <> "" then
response.redirect(x_catalogVersion1.redirectURL)
end
end if
?x_catalogVersion1.Output.Head.JavaScript
?x_catalogVersion1.Output.Head.CSS_Link
%>
<!--Alpha Five Temporary Code Start - Will be automatically removed when page is published -->
<!--CSS for tmpl_catalogVersion1 -->
<link rel="stylesheet" type="text/css" href="file:///C:\Program Files\A5V7/css/Corporate/style.css">
<!--Alpha Five Temporary Code End -->
<meta name="generator" content="Alpha Five HTML Editor">
<title></title>
</head>
<%a5
Comment