Skip to content
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

How get value from Drop-down list #351

Open
EugeneZviR opened this issue Dec 20, 2023 · 5 comments
Open

How get value from Drop-down list #351

EugeneZviR opened this issue Dec 20, 2023 · 5 comments

Comments

@EugeneZviR
Copy link

  1. i have xlsx file with dropdowns and i try read them and cell return empty in query
    need try use newDataValidation?
    can you give me example
    Thanks
@cfsimplicity
Copy link
Owner

Hi, the read() method will only return cell values. Data validations are not themselves cell values, they just limit what values can be entered.

So in other words, if you have added a data validation drop-down to a cell, but no value has been chosen from that drop down, then when you read that cell it will be empty. If you select a value from the drop-down and save the workbook, read() will then return the value you chose.

Hope that makes sense.

@EugeneZviR
Copy link
Author

Here file of dropdown what i need get data. Not regular and query give me empty
temp_need_test_dropdowns.xlsx

@cfsimplicity
Copy link
Owner

Those are not drop-downs. They are images of drop-downs.

20231222

@EugeneZviR
Copy link
Author

bandicam.2023-12-25.15-14-23-843.mp4

Yes i know. Almost all editors show its like img but if you WPS this will be real dropdown with different options

@cfsimplicity
Copy link
Owner

Sorry but I don't understand what "WPS" means or what software you are using in your video.

As far as the library/POI is concerned, your spreadsheet does not appear to contain any data validation dropdowns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants