More information on this topic is available in the documentation section: /general.faq.releases/.
AW.HTML.DispatchTool = AW.System.Template.subclass();
AW.HTML.DispatchTool.create = function()
{
var obj = this.prototype;
obj.setTag('DIV');
obj.defineTemplate("DispatchHeader", new AW.System.Template);
with (obj.getTemplate("DispatchHeader"))
{
setTag('DIV');
setStyle("height", 50);
setStyle("position", "absolute");
setStyle("width", "100%");
setStyle("background-color", "yellow");
}
obj.defineTemplate("AuxTop", new AW.System.Template);
obj.defineTemplate("GridBody", new AW.System.Template);
obj.defineTemplate("AuxBottom", new AW.System.Template);
obj.defineTemplate("TabBody", new AW.System.Template);
obj.defineTemplate("Tabs", new AW.System.Template);
obj.setContent(function() {
return
this.getDispatchHeaderTemplate() +
this.getAuxTopTemplate() +
this.getGridBodyTemplate() +
this.getAuxBottomTemplate() +
this.getTabBodyTemplate() +
this.getTabsTemplate();
})
}
AW.HTML.DispatchTool.create();
All assistance would be appreciated....
obj.setContent("html", function() {
return this.getDispatchHeaderTemplate() +
this.getAuxTopTemplate() +
this.getGridBodyTemplate() +
this.getAuxBottomTemplate() +
this.getTabBodyTemplate() +
this.getTabsTemplate();
})
}
//AW.HTML.DispatchTool.create();
Main problem was with return statement - it actually just returns nothing ignoring the next lines because it is equivalent to 