poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44953] Datavalidation across sheets (list mode)
Date Sun, 03 Aug 2008 22:48:29 GMT

Josh Micich <josh@gildedtree.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Josh Micich <josh@gildedtree.com>  2008-08-03 15:48:27 PST ---
Fixed in svn r682225/r682227.

This turned out to be way more work than expected.  There were several
bugs/deficiencies found in the original HSSFDataValidation API:
 - RVA settings for list formulas were NQR (probably the cause of this bug)
 - Lists with explicit values did not work
 - Formulas and simple values were not distinguished (Note that the Excel UI
handles expressions starting with '=' different to those without the equals

There were also problems with the java object model in that too many things
were crammed into HSSFDataValidation. Extensive changes were made to resolve
these issues. 
A new class DVConstraint was created to hold just the validation type, operator
and value expressions.  CellRangeAddressList was renamed and raised in the API.
HSSFDataValidation was moved to org.apache.poi.hssf.usermodel (where classes
like HSSFWorkbook, HSSFConditionalFormatting, etc are found).

The attached test code (id=21934) is just an extract from the original
TestDataValidation.  TestDataValidation has been updated to cover the 'cross
sheet validation' case, as well as the fixed functionality mentioned above. 
You can tweak the 'isSame' boolean variable to output the new version of the
test spreadsheet.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message