Bug 153221 - FILESAVE ODS Cell Validation source as structured reference is saved as absolute cell reference
Summary: FILESAVE ODS Cell Validation source as structured reference is saved as absol...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ODF-import Cell-Validity Calc-DataRange
  Show dependency treegraph
 
Reported: 2023-01-26 13:36 UTC by Gabor Kelemen (allotropia)
Modified: 2023-02-16 08:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Calc (17.86 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-01-26 13:36 UTC, Gabor Kelemen (allotropia)
Details
The example file before saving as ods (58.50 KB, image/png)
2023-01-26 13:36 UTC, Gabor Kelemen (allotropia)
Details
The example file after save and reload (54.12 KB, image/png)
2023-01-26 13:37 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-01-26 13:36:10 UTC
Created attachment 184930 [details]
Example file from Calc

This is split out from bug 139499 for the ods case.

Attached file had a cell validation criteria as structured reference set in A9: ExampleRange[Left]
When saved as ods (see attached file) this is converted to an absolute cell range as $Sheet1.$A$3:$A$6 which matches the range of ExampleRange[Left] but the dynamic nature of the validation reference is lost.

1. Open attached file
2. Select A9 and go to Data - Validity 
3. Observe the Criteria -> Source is set as $Sheet1.$A$3:$A$6
4. Change this to ExampleRange[Left] (or ExampleRange[Right] )
5. Observe that the dropdown list offers the values from A3:A6
6. Save the file as ODS & reload
7. Select A9 and go to Data - Validity 
-> Now the Source field is back to $Sheet1.$A$3:$A$6 instead of ExampleRange[Left] (or $Sheet1.$B$3:$B$6 instead of ExampleRange[Right] )

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0bb90afaeb193181d7b98b79e962549d8a1dd85a
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2023-01-26 13:36:42 UTC
Created attachment 184931 [details]
The example file before saving as ods
Comment 2 Gabor Kelemen (allotropia) 2023-01-26 13:37:07 UTC
Created attachment 184932 [details]
The example file after save and reload
Comment 3 Eike Rathke 2023-01-26 15:08:43 UTC
That's because ODFF doesn't define Table Structured References formulas. We (I) will need to submit that to the OASIS ODF TC.