You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a fairly sophisticated lens that queries my database and pulls back per month purchase history for every buyer based on a date span and a list of buyer IDs provided. I have my lens displaying this information correctly. Because of the nature of the query and export desire, I have the DownloadExcel set up in this fashion:
public function actions(NovaRequest $request)
{
return [
(new DownloadExcel())
->withChunkCount(false)
->standalone()
->withHeadings(),
];
}
This adds the ... to the top right of my page and allows me to select my action. It also seems to run my query correctly. However, it always downloads a completely empty excel file.
I can try to share more code, but why is my excel file completely empty when my lens is clearly showing the right data?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a fairly sophisticated lens that queries my database and pulls back per month purchase history for every buyer based on a date span and a list of buyer IDs provided. I have my lens displaying this information correctly. Because of the nature of the query and export desire, I have the DownloadExcel set up in this fashion:
This adds the
...
to the top right of my page and allows me to select my action. It also seems to run my query correctly. However, it always downloads a completely empty excel file.I can try to share more code, but why is my excel file completely empty when my lens is clearly showing the right data?
Beta Was this translation helpful? Give feedback.
All reactions