I am using the HTML editor. I saved the file as demographics.a5w. I entered a heading on the page, saved and previewed in browser. It looked as expected. Then I inserted a component, saved and previewed, and it failed. What am I not doing?
Thanks,
Rick
<%a5 'The componentAlias MUST be UNIQUE for each component on the page. It must not have spaces in the name. Keep name as short as possible dim componentAlias as c componentAlias = "DEMOGRAPHICS" Delete tmpl_DEMOGRAPHICS DIM tmpl_DEMOGRAPHICS as P tmpl_DEMOGRAPHICS = a5w_load_component("demographics") 'SYSTEM GENERATED COMMENT - PLEASE DO NOT REMOVE (LOAD:demographics) 'Following code allows you to override settings in the saved component. tmpl_DEMOGRAPHICS.override_settings = <<%override_settings% componentName = componentAlias _gridFilename = "demographics" %override_settings% 'TIP: To refer to local or page variables in the override_settings string, you must first define a local 'dot variable called 'pageVar' with properties for all of the variables you want to reference. For example: ' dim pageVar as p ' pageVar.gridRowCount = 10 'Then, in the override_settings string, you can reference pageVar.gridRowCount. For example: ' rows = pageVar.gridRowCount 'Resolve session and page variables in the override_settings string. a5w_resolveVariablesInOverrideSettings(tmpl_DEMOGRAPHICS,session,local_variables()) delete x_DEMOGRAPHICS dim x_DEMOGRAPHICS as p x_DEMOGRAPHICS = a5w_run_Component(tmpl_DEMOGRAPHICS) 'SYSTEM GENERATED COMMENT - PLEASE DO NOT REMOVE (RUN:tmpl_DEMOGRAPHICS) (EDIT:demographics) if x_DEMOGRAPHICS.RedirectURL <> "" then response.redirect(x_DEMOGRAPHICS.redirectURL) end end if ?x_DEMOGRAPHICS.Output.Head.JavaScript ?x_DEMOGRAPHICS.Output.Head.CSS_Link %>
Demographics
<%A5 ?x_DEMOGRAPHICS.Output.Body.Search_HTML %>
<%A5 ?x_DEMOGRAPHICS.Output.Body.Grid_HTML %>
<%A5 ?x_DEMOGRAPHICS.Output.Body.DetailView_HTML %>
Thanks,
Rick
<%a5 'The componentAlias MUST be UNIQUE for each component on the page. It must not have spaces in the name. Keep name as short as possible dim componentAlias as c componentAlias = "DEMOGRAPHICS" Delete tmpl_DEMOGRAPHICS DIM tmpl_DEMOGRAPHICS as P tmpl_DEMOGRAPHICS = a5w_load_component("demographics") 'SYSTEM GENERATED COMMENT - PLEASE DO NOT REMOVE (LOAD:demographics) 'Following code allows you to override settings in the saved component. tmpl_DEMOGRAPHICS.override_settings = <<%override_settings% componentName = componentAlias _gridFilename = "demographics" %override_settings% 'TIP: To refer to local or page variables in the override_settings string, you must first define a local 'dot variable called 'pageVar' with properties for all of the variables you want to reference. For example: ' dim pageVar as p ' pageVar.gridRowCount = 10 'Then, in the override_settings string, you can reference pageVar.gridRowCount. For example: ' rows = pageVar.gridRowCount 'Resolve session and page variables in the override_settings string. a5w_resolveVariablesInOverrideSettings(tmpl_DEMOGRAPHICS,session,local_variables()) delete x_DEMOGRAPHICS dim x_DEMOGRAPHICS as p x_DEMOGRAPHICS = a5w_run_Component(tmpl_DEMOGRAPHICS) 'SYSTEM GENERATED COMMENT - PLEASE DO NOT REMOVE (RUN:tmpl_DEMOGRAPHICS) (EDIT:demographics) if x_DEMOGRAPHICS.RedirectURL <> "" then response.redirect(x_DEMOGRAPHICS.redirectURL) end end if ?x_DEMOGRAPHICS.Output.Head.JavaScript ?x_DEMOGRAPHICS.Output.Head.CSS_Link %>
Demographics
<%A5 ?x_DEMOGRAPHICS.Output.Body.Search_HTML %>
<%A5 ?x_DEMOGRAPHICS.Output.Body.Grid_HTML %>
<%A5 ?x_DEMOGRAPHICS.Output.Body.DetailView_HTML %>
Comment