How to create dependent drop downs in excel sheet generated using POI?

前端 未结 2 887
面向向阳花
面向向阳花 2021-01-07 02:01

we have a function in our java based web application where user can download an excel sheet template from the web application. Fill their data in this template and then uplo

2条回答
  •  抹茶落季
    2021-01-07 02:39

    You can get drop-down list (after clicking right mouse button) in case you've added (using POI) suggestions to the rows upper the first row that is visible to the user and should be filled (thus the rows beneath the header contain suggestions and are hgidden).

    You won't get (AFAIK) category dependancy with POI or even pure excel (without VBA) drop-down list (that holds suggestions on the basis of values entered earlier).

    What you can do, is to use POI to fill helper sheet with appropriate raw data and use VBA to dynamically generate drop-downs that would allow to pick a value from a list.

提交回复
热议问题