spreadsheet-cfml icon indicating copy to clipboard operation
spreadsheet-cfml copied to clipboard

How get value from Drop-down list

Open EugeneZviR opened this issue 1 year ago • 5 comments
trafficstars

  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

EugeneZviR avatar Dec 20 '23 21:12 EugeneZviR

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.

cfsimplicity avatar Dec 22 '23 12:12 cfsimplicity

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

EugeneZviR avatar Dec 22 '23 16:12 EugeneZviR

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

20231222

cfsimplicity avatar Dec 22 '23 17:12 cfsimplicity

https://github.com/cfsimplicity/spreadsheet-cfml/assets/130551296/9d836cb6-f68d-4c7d-987a-6ddda7fcc6af

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

EugeneZviR avatar Dec 25 '23 11:12 EugeneZviR

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.

cfsimplicity avatar Dec 25 '23 20:12 cfsimplicity