Arin Alex, Thanks.
It's work perfectly.
Just another question, i'm not very good in js but is there a better way to connect each object to different function?
Reportpage1_GroupBandHeader24.beforeRender.connect(BFP_heading1);
Reportpage1_GroupBandHeader25.beforeRender.connect(BFP_heading2);
function BFP_heading1()
{
Reportpage1_GroupBandHeader24.isVisible = (getField("recipe.heading1") != "");
}
function BFP_heading2()
{
Reportpage1_GroupBandHeader25.isVisible = (getField("recipe.heading2") != "");
}
I would like somethings like this, but it doesn't work.
Reportpage1_GroupBandHeader24.beforeRender.connect(BFP(Reportpage1_GroupBandHeader24 "recipe.heading1"));
function BFP(object, header)
{
object.isVisible = (getField(header) != "");
}
regards.