This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

cadmojr20164211
cadmojr20164211

My list has a column with the type partial working perfectly, but when exporting to csv or pdf, the column with the partial return null. Do I have to set the type partial in registerListColumnTypes? Does anybody know how to solve this?

Last updated

daftspunky
daftspunky

Try overriding the column value in your controller

public function listOverrideColumnValue($record, $columnName, $definition = null)
{
    if ($columnName === 'mypartialcolumn') {
        return 'Value for export';
    }
}
cadmojr20164211
cadmojr20164211

Thanks for the attempt, but unfortunately it doesn't work, it still brings null.

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.