Conversation
Adds an Export CSV button to search results that downloads all matching devices as a CSV file with columns: Data Center, Cabinet, Device Label, Device Type, Serial No, Asset Tag, Primary IP, Owner, Status. Fixes opendcim#1386
|
Why add an entirely new export feature rather than just add the racks to the report that already does this function?
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Louis-Arnaud ***@***.***>
Sent: Tuesday, February 10, 2026 11:28:30 AM
To: opendcim/openDCIM ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [opendcim/openDCIM] Add CSV export for search results (PR #1660)
Summary
Adds CSV export functionality to the search results page. A new Export CSV button appears alongside the existing "Show All" and "Racks Only" buttons. Clicking it downloads all matching search results as a CSV file.
Exported columns: Data Center, Cabinet, Device Label, Device Type, Serial No, Asset Tag, Primary IP, Owner, Status.
Fixes #1386<#1386>
________________________________
You can view, comment on, or merge this pull request online at:
#1660
Commit Summary
* b3def32<b3def32> Add CSV export for search results
File Changes
(1 file<https://github.com/opendcim/openDCIM/pull/1660/files>)
* M search.php<https://github.com/opendcim/openDCIM/pull/1660/files#diff-fe25e8545f067eb50fae0028b5dcdc76e168a985bd8806edcae066ae1f6a4f8b> (36)
Patch Links:
* https://github.com/opendcim/openDCIM/pull/1660.patch
* https://github.com/opendcim/openDCIM/pull/1660.diff
—
Reply to this email directly, view it on GitHub<#1660>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAMTY6UHKRMTI3VUCUGA7234LIIL5AVCNFSM6AAAAACUUSCS42VHI2DSMVQWIX3LMV43ASLTON2WKOZTHEZDENBTHE3DONY>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#1660", "url": "#1660", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
|
|
Good point! The existing Search/Export by Data Center (search_export.php) is great for browsing The original request in #1386 came from a use case where the report didn't quite fit — for example, Happy to discuss if you think there's a better way to approach this! |
|
https://dev.opendcim.org/search_export.php Using the existing report and your example. We have a single property filter here that works the exact same as the search function, I think the only thing missing here are the rack objects themselves. This already has an export function for csv, excel and pdf. Personally I think the best approach would be to modify this to add in the racks. If you would like to modify the other search page and we can find a way to link those search results over to this report and pre-populate the search term that would be ideal. |

Summary
Adds CSV export functionality to the search results page. A new Export CSV button appears alongside the existing "Show All" and "Racks Only" buttons. Clicking it downloads all matching search results as a CSV file.
Exported columns: Data Center, Cabinet, Device Label, Device Type, Serial No, Asset Tag, Primary IP, Owner, Status.
Fixes #1386