Bug 154728 - XML Form Document: Binding to numeric fields with numeric form controls impossible
Summary: XML Form Document: Binding to numeric fields with numeric form controls impos...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Julien Nabet
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks: XML_Form
  Show dependency treegraph
 
Reported: 2023-04-09 15:44 UTC by Robert Großkopf
Modified: 2023-04-12 10:14 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Try to set binding for Decimal field - special control. See also attached screenshot. (24.31 KB, application/vnd.oasis.opendocument.text)
2023-04-09 15:44 UTC, Robert Großkopf
Details
Screenshot for creating binding between form field and XML-Binding (189.22 KB, image/png)
2023-04-09 15:45 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2023-04-09 15:44:50 UTC
Created attachment 186554 [details]
Try to set binding for Decimal field - special control. See also attached screenshot.

Open the attached XML Form Document.
Try to set the "Special control" for datatype "Decimal" to "BindDecimal".
Screenshot will show how this should work.
Chose the binging and nothing happens.
Now have a look at the binding for "Text control" for "Decimal". Binding to "Decimal" has been set through LO 7.4.6.2.

Same behavior when using formatted field and any number formatting. You couldn't bind if formatting is set as numeric or currency, might be some more formattings. But formatted field will be accepted for binding if "Date" or "Time" has been chosen before trying to bind.

This bug will be related to bug 154658.

Bug appears here with LO 7.4.6.2 on OpenSUSE 15.4 64bit rpm Linux.
Will have a look for the first version which gives this buggy behavior.
Comment 1 Robert Großkopf 2023-04-09 15:45:42 UTC
Created attachment 186555 [details]
Screenshot for creating binding between form field and XML-Binding
Comment 2 Robert Großkopf 2023-04-09 15:50:59 UTC
This buggy behavior first appears with
Version: 7.3.0.3 / LibreOffice Community
Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3
CPU threads: 6; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

Works well with LO 7.2.5.2 here.
Comment 3 Julien Nabet 2023-04-10 13:09:40 UTC
After https://cgit.freedesktop.org/libreoffice/core/commit/?id=26012007e4d20f47697d1336b725e60541df794a which fixes tdf#154658, it seems ok.
Indeed, when giving a try with LO Debian package 7.4.5.1, the binding doesn't work with decimal but when using LO master sources updated today (with the quoted patch), it works.
Comment 4 Robert Großkopf 2023-04-12 07:06:22 UTC
Have tested with the attached document. Could bind the fields now.

I will set this one to RESOLVED and FIXED.
Comment 5 Julien Nabet 2023-04-12 10:14:24 UTC
Thank you for the feedback, let's put this one to VERIFIED since you checked.