We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As far as I see it is quite hard to hook in user input to decide which fields to export, because of how the design of the DownloadExcel action.
I know I can overwrite various functions etc. but I have no access to the values of the fields at that time.
So how am I supposed to implement that the user can choose the input fields dynamically?
The text was updated successfully, but these errors were encountered:
this is the solution that im using
create a class and extends to DownloadExcel
on handle function
/** * @param ActionRequest $request * @param Action $exportable * * @return array */ public function handle(ActionRequest $request, Action $exportable): array { $exportable->query = $this->customQuery($request); .... } private function customQuery($request) { return Model::all(); }
Sorry, something went wrong.
No branches or pull requests
As far as I see it is quite hard to hook in user input to decide which fields to export, because of how the design of the DownloadExcel action.
I know I can overwrite various functions etc. but I have no access to the values of the fields at that time.
So how am I supposed to implement that the user can choose the input fields dynamically?
The text was updated successfully, but these errors were encountered: