Issue 79664 - Set variable fields hidden through API does not update state
Summary: Set variable fields hidden through API does not update state
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2007-07-16 14:45 UTC by benzman1981
Modified: 2013-02-24 21:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Document with a macro to reproduce the bug (7.77 KB, application/vnd.oasis.opendocument.text)
2007-07-16 14:47 UTC, benzman1981
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description benzman1981 2007-07-16 14:45:23 UTC
setting variable fields to be hidden (set IsVisible flag to false) does not 
work properly through the API. I used the code from the Snippets for hiding 
fields in Java and put it into a beanshell macro. For test purpose I also added 
a user field to hide it, too. When I run the macro, the user field gets hidden, 
but not the variable field. Doubleclicking on the variable field shows the 
checkbox "hidden" as checked. So the macro did the right thing, but there is no 
update of the state of this, I guess. I also tried the following:

XTextFieldsSupplier xTextFieldsSupplier = (XTextFieldsSupplier)
      XRefreshable xRefreshable = (XRefreshable)UnoRuntime.queryInterface
(XRefreshable.class, xTextFieldsSupplier.getTextFields());

This did not solve the issue, so I decided to create this bug report.

Comment 1 benzman1981 2007-07-16 14:48:05 UTC
Created attachment 46832 [details]
Document with a macro to reproduce the bug
Comment 2 jsc 2007-07-16 14:56:04 UTC
jsc :tl: it's the writer API
Comment 3 benzman1981 2007-07-30 12:59:17 UTC
Any progrss on this? Can I expect that this is fixed in 2.3?


Comment 4 thomas.lange 2007-08-01 10:52:02 UTC
No. There were too many other features and issues to take care of for 2.3.
Setting target to 2.x since currently we should use 2.4 only for 'hand-selected'
issues of special interest.
Comment 5 Martin Hollmichel 2007-11-09 17:28:42 UTC
set target from 2.x to 3.x according to
Comment 6 kpalagin 2008-01-30 09:37:33 UTC
Confirming with 2.4m241 - first field does not get hidden after running macro. 
Saving, closing, opening hides the field.