Bug 134313 - Different type of fields requires different decimal sign for numeric data
Summary: Different type of fields requires different decimal sign for numeric data
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.4.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://ask.libreoffice.org/en/questi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-26 06:11 UTC by Oleg Shchelykalnov
Modified: 2021-09-16 19:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Shchelykalnov 2020-06-26 06:11:31 UTC
I have a code to substitute variables into the document but when I try to insert and use numeric variable I have to use different decimal sign for different types of text fields. For User fields I need to use decimal dot and for SetExpression fields I need to use decimal comma. I've tried to set Value property as double but it doesn't work.

Example template: https://ask.libreoffice.org/upfiles/15929228703192809.odt

Example python3 code: https://pastebin.com/i7u7X9gB
Comment 1 Dieter 2020-10-09 06:19:03 UTC
Oleg, it is not clear to me, if you need assistance, or if you want to report a bug. If you want to report a bug, please add a clearer set of step-by-step instructions on how to reproduce the problem.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the steps are provided.
Comment 2 Oleg Shchelykalnov 2020-10-13 14:58:28 UTC
Yes, maybe I need some assistance how to work with numeric data via API.

Step-by-step:

1. Start libreoffice in headless mode like: --accept=socket,host=0.0.0.0,port=8989;urp; --headless
2. Set correct libreoffice host and port as resolver.resolve argument in python3 script
3. Download .odt template
4. Fix path to in python3 script
5. Launch script and check generated pdf
6. Use decimal dot for someExpr field in dataNum variable in script
7. Launch script and check generated pdf
Comment 3 Dieter 2021-09-16 19:53:53 UTC
(In reply to Oleg Shchelykalnov from comment #2)
> Yes, maybe I need some assistance how to work with numeric data via API.

If you need assistance, you should use "Ask Libre Office". Bugzilla is only for reporting bugs.

So let's close this report. Feel free to change it back to UNCONFIRMED, if you think your problem is related to a bug.