:: Forum >>
how to refresh the topline layout ?
I defined my topLine template depending on a parameter whether the grid is editable or not and I use a button to turn on or off grid edition, how woud I refresh the topLine template ? I tried obj.getTopLineTemplate().refresh() or obj.getContent("layout/box/top").refresh() - no way ...
Any idea?
obj.defineTemplate("topLine", function()
{
var numpage = Math.ceil(this.evos.CurrentResult / this.evos.PageSize); if (numpage == 0) numpage= 1;
var maxpage = Math.ceil(this.evos.NbResults / this.evos.PageSize);
var ret= "<table width='100%' ><tr ><td width=\"20%\" style=\"text-align:left;\">";
// left bar
ret += this.EvosLeftBarTemplate();
ret += " </td><td width=\"60%\" style=\"text-align:left;\">";
// middle bar
if (this.evos.viewMode == 1)
ret += this.EvosViewMiddleBarTemplate(numpage,maxpage);
else
ret += this.EvosEditMiddleBarTemplate(numpage,maxpage);
ret += "<td width=\"20%\" style=\"text-align:right;\" >";
// right bar
if (maxpage > 0) {
var lbl= new AW.UI.Label;
lbl.setControlText("Page " + numpage + " sur " + maxpage);
ret += lbl.toString();
}
return ret+"</td></tr></table>";
});
Philippe
Wednesday, March 15, 2006
oops! My fault...
this.refresh();
works ...
Philippe
Wednesday, March 15, 2006
This topic is archived.
Back to support forum
Forum search