-
Notifications
You must be signed in to change notification settings - Fork 76
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
Set filter choices for written data table #443
Comments
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Can I #bump via comment to remove this stale label? Bummer how the onus is on the person wanting help to keep it alive. Also wild that it's been a full year! |
Hi @jwhendy, Thank you for raising this issue and for your interest in our package. I understand how this feature could be valuable from a user perspective. However, from a development standpoint, implementing it would be quite complex and is currently outside the scope of what we can realistically support. To give you some context, implementing filtering in OOXML documents is not a straightforward task. It involves creating an XML structure for the table element and hiding unselected rows, which may sound simple at first, but quickly becomes challenging. For example:
Each of these scenarios requires thorough research and testing to ensure it works correctly, and implementing this feature would demand a amount of time and effort I am currently unwilling to invest. I understand that you might find preparing spreadsheets manually for your colleagues tedious, but the development effort required on our side would involve a similarly tedious and time-consuming process before we could provide a solution. It's important to clarify that open source development is primarily driven by the interests of the developers (or in some other other projects, by the employers of the developers). We have to prioritize what aligns with our own focus and capacity, and this particular feature request isn't something that matches our current priorities. That said, I've implemented a partial solution for openxlsx2, which you might find helpful. If you'd like, you could try backporting it to openxlsx or prepare a pull request for openxlsx2 so we can discuss it further. Please be aware, however, that openxlsx is currently in a kind of maintenance mode. I've merged a few pull requests recently and submitted a release to CRAN, but overall, the package is reaching the end of its active development phase. Thank you again for your understanding, and I hope this provides some clarity on our current position. |
@JanMarvin fantastic response and totally understood on all points. As a non-expert, I didn't have a gauge for how difficult this was (my initial intuition is it might already exist), nor what the development backlog/queue looks like and where this fits. This is an awesome reference that can serve to help any others with this idea understand and I appreciate the time taken to summarize all of this. I'll take a look at the partial solution, thanks for providing! |
Is your feature request related to a problem? Please describe.
Using
writeDataTable
is great, however when sharing my work with colleagues, the expectation would be to have certain filters set. I cannot find a way to not only have filters, but also to set how I want them filtered when creating the workbook. Thus, I need to write it, open it, set the filters myself, then save again.Describe the solution you'd like
I could envision this as part of
writeDataTable
, or a separate helper function similar tosetColWidths
(e.g.setDataTableOptions
?).So maybe something like this, assuming I write a table with colName1, with values value1, value2, value3, and NA (blank). This would generate the table such that the equivalent user action would be to click the column drop down, uncheck value3 and leave Blank selected.
Describe alternatives you've considered
I've google around and found what I think is this question on SO, but the only answer is to use VBS, which I'm not interested in doing.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: