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: 4.0.4.2 release
Hardware: Other Windows (All)
: low enhancement
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-01 09:23 UTC by boicottms
Modified: 2014-03-10 11:24 UTC (History)
2 users (show)

See Also:
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. (12.38 KB, application/vnd.oasis.opendocument.text)
2013-07-01 09:23 UTC, boicottms
Details

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.