Bug 66446

Summary: EDITING: using document user property as variable for conditional text doesn't work
Product: LibreOffice Reporter: boicottms
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: low CC: gautier.sophie, jerome.bouat
Version: 4.0.4.2 release   
Hardware: Other   
OS: Windows (All)   
Whiteboard: BSA
i915 platform: i915 features:
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.

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

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.