Bug 138106 - Forms: List Box: Source Cell Range - Doesn't allow horizontal range e.g. C14:F14
Summary: Forms: List Box: Source Cell Range - Doesn't allow horizontal range e.g. C14...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2020-11-09 23:45 UTC by Jax
Modified: 2021-08-13 18:46 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Sample file (7.06 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-11-10 17:51 UTC, m.a.riosv
Details
Image of example (47.50 KB, image/jpeg)
2020-11-11 21:54 UTC, Jax
Details
Example File (10.09 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-11-11 21:54 UTC, Jax
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jax 2020-11-09 23:45:42 UTC
I wish to refer to a horizontal range and use as the 'Source Cell Range' for a 'List Box' when making a form.

The list box only shows the first item in the array.

Is there a rationale or is this a bug?

I've tried a workaround using Transpose but have hit a wall of awkward...
Comment 1 Martin Srdoš 2020-11-10 15:17:58 UTC
(In reply to Jax from comment #0)
> I wish to refer to a horizontal range and use as the 'Source Cell Range' for
> a 'List Box' when making a form.
> 
> The list box only shows the first item in the array.
> 
> Is there a rationale or is this a bug?
> 
> I've tried a workaround using Transpose but have hit a wall of awkward...

Hello Jax,
could you describe step by step what exactly you are doing? Also describe how to arrive at the box list that contains only the first item.
Comment 2 m.a.riosv 2020-11-10 17:51:16 UTC
Created attachment 167178 [details]
Sample file

Works fine for me.
Version: 6.4.7.2 (x64)
Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 4; OS: Windows 10.0 Build 20180; UI render: GL; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US
Calc: CL
Comment 3 m.a.riosv 2020-11-10 17:52:03 UTC
Sorry I did a validation cell not a list box.
Comment 4 raal 2020-11-11 07:55:05 UTC
Hello,

Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document.
(Please note that the attachment will be public, remove any sensitive information before attaching it.)
How can I eliminate confidential data from a sample document?
https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F

Please answer question in comment 1. 
Thank you
Comment 5 Jax 2020-11-11 21:52:28 UTC
Thanks all,

Attached is an image of the sheet and also a sample file.

Instructions to replicate:

1. Create new sheet with a horizontal series of cell entries (see attached)
    e.g. C3=Hourly  D3=Daily  E3=Weekly
2. Enter Form Design Mode
3. Insert > Form COntrol > List Box  Then draw the box on the sheet
4. Right Click on the List Box and select Control Properties
5. Choose Data tab
6. Enter a cell address in 'Linked Cell'
    e.g. G13
7. In Source Cell Range, enter the horizontal range
    e.g. C3:E3
8. Leave Form Design Mode
9. Select the List Box and I only see Hourly as an option
Comment 6 Jax 2020-11-11 21:54:17 UTC
Created attachment 167216 [details]
Image of example
Comment 7 Jax 2020-11-11 21:54:55 UTC
Created attachment 167217 [details]
Example File
Comment 8 Jax 2020-11-11 21:59:02 UTC
(In reply to m.a.riosv from comment #3)
> Sorry I did a validation cell not a list box.

Ooh, Validation Cell... that's actually what I'm after... nevertheless, the bug stands.  Thanks m.a.riosv
Comment 9 QA Administrators 2020-11-12 04:54:26 UTC Comment hidden (obsolete)
Comment 10 Buovjaga 2021-07-27 13:54:04 UTC
Repro with document

NixOS
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 67e47070a7580a17804adce812cc2f98bfe7b51f
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: x11
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 11 Buovjaga 2021-08-13 18:46:40 UTC
Already behaves like this in 3.5.0, so assuming inherited.