Hide Column on Condition when exporting to PDF

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
wungaz
User
Posts: 214

Hide Column on Condition when exporting to PDF

Post by wungaz »

I have managed to hide columns on the list page, but when exporting to PDF it shows the columns.
How can I hide Columns and change column names when exporting to PDF?


danielc
User
Posts: 1601

Post by danielc »

Put this code in Page_Load server event for your list page:
if ($this->Export == "pdf") {
$this-><yourhidefield>->Exportable = FALSE;
$this-><yournewcaptionfield>->setFldCaption("newcaption");
}


wungaz
User
Posts: 214

Post by wungaz »

The Exportable=FALSE working fine but its failing to change the Field caption using: $this->Mark3->setFldCaption("Dee");


wungaz
User
Posts: 214

Post by wungaz »

Oooh I figured out that you must enable: Export Field Caption in the Advanced Settings...Thanks Daniel


Post Reply