Hi everybody
When I add a page, the footer of the last page is automatically deleted. It works perfectly. But I would like that the footer appears again on the last page when I delete the current page.
Here is the code used with the initialize event :
for (var i = 0 ; i < xfa.resolveNode("ira._Page1").count; i++)
{
if (i < xfa.resolveNode("ira._Page1").count - 1)
{
xfa.resolveNode("ira.Page1[" + i.toString() + "].Footer").presence = "hidden";
}
else
{
xfa.resolveNode("ira.Page1[" + i.toString() + "].Footer").presence = "visible";
}
}
this one used with click event for adding a page :
_Page1.addInstance();
xfa.host.pageDown();
app.execMenuItem("FitPage");
and at least for deleting a page
this.parent.parent._Page1.removeInstance(this.parent.index);
this.parent.parent._Carte.removeInstance();
Thanks for advance for your help.