Bug 66446 - EDITING: using document user property as variable for conditional text doesn't work
Summary: EDITING: using document user property as variable for conditional text doesn'...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.4.2 release
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks: Fields
  Show dependency treegraph
 
Reported: 2013-07-01 09:23 UTC by boicottms
Modified: 2020-06-14 14:07 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
in the sample there's a working conditional text referring a variable in the text, and a not-working conditional text referring a document variable. (12.38 KB, application/vnd.oasis.opendocument.text)
2013-07-01 09:23 UTC, boicottms
Details
screenshots (673.33 KB, application/pdf)
2020-06-14 13:52 UTC, Joachim Wetzig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description boicottms 2013-07-01 09:23:20 UTC
Created attachment 81794 [details]
in the sample there's a working conditional text referring a variable in the text, and a not-working conditional text referring a document variable.

Problem description: 
I would like to be able to use a document user property to switch some conditional text (or hidden text or hidden paragraph) on or off
Steps to reproduce:
1. set a user document property (eg: "Onoff" type: boolean)
2. insert a field ->conditional text (or hidden text or hidden paragraph)
3. set as "condition" Onoff EQ true (or Onoff==TRUE or Onoff==1)
4. set an hidden text eg: "mytext"

Current behavior:
change the Onoff value, the text doesn't switch status
Expected behavior:
it should

Am I wrong calling the variable itself?
I know that I can set an hidden variable somewhere in the text to do the trick, but I consider that just a workaround: setting a variable anywhere in the text is not that coherent, and it'also difficult to find to change state.
Thank you

              
Operating System: Windows 7
Version: 4.0.4.2 release
Comment 1 sophie 2014-01-28 17:38:20 UTC
Hi, in fact, you can't call a variable that is not defined in the document. The fact that it exists in the properties is not enough for the conditional test. I set your request as an enhancement. Sophie
Comment 2 Joachim Wetzig 2020-06-14 13:52:44 UTC
Created attachment 161984 [details]
screenshots
Comment 3 Joachim Wetzig 2020-06-14 14:07:15 UTC
Comment on attachment 161984 [details]
screenshots

Greetings all,
the screenshots just uploaded 
(Libre Office V 6.5.3.2, localized German, running on a Mac OS High Sierra) 
show that a document property can be used (just like a variable) 
      EXCEPT in a conditional text field, where it does NOT update.
This is not really intuitive....

May I suggest, that user defined document properties be automagically linked to the document variables?

Cheers

Joachim