-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
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
Table Class Exports with a Request value #444
Comments
I suggest trying it without the ...edit |
It's alright yeah it seems the id gets lost and i don't see any way to make it work at least for now, if it's not possible right know it definitely should be in the future thanks for your time anyways |
I have fixed this issue by editing the core files of the Splade. Here is step by step how I have successfully was able to send the ID that is associated with a relationship with the records inside the data table: Step 1: Define Extra Parameters in BulkAction Class Step 2: Set Extra Parameters in HasBulkActions Trait
} Step 3: Pass Product ID as an Extra Parameter Step 4: Access Product ID in the Bulk Action Method Step 5: Use Extra Parameters in Blade Template These steps ensure that the productId is passed as an additional parameter when defining bulk actions and is accessible within the method that performs the bulk deletion. The use of @js in the Blade template ensures the JavaScript code has the correct parameters passed from the server side. |
Description:
I am using the table class because i need to do exports but i am having problems because i need a $id for the query which i get from the request and it is lost by the time i export the table someone haves any idea how i could approach this?
Steps To Reproduce Issue:
on my table class:
everything works except the export which returns an empty table instead of the same one it originally shows
The text was updated successfully, but these errors were encountered: