Here it is: XTextFieldsSupplier xTextFieldsSupplier = (XTextFieldsSupplier) UnoRuntime.queryInterface( XTextFieldsSupplier.class, component);
XEnumerationAccess xEnumeratedFields = xTextFieldsSupplier.getTextFields(); XEnumeration enumeration = xEnumeratedFields.createEnumeration(); boolean changed = false; while (enumeration.hasMoreElements() && !changed) { Object field = enumeration.nextElement(); XDependentTextField dependentTextField = (XDependentTextField) UnoRuntime.queryInterface( XDependentTextField.class, field); XPropertySet propertySet = dependentTextField.getTextFieldMaster(); String name = (String) propertySet.getPropertyValue("Name"); if (name.equals(fieldName)) { XPropertySet fieldProperties = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, field); fieldProperties.setPropertyValue("IsVisible", Boolean.FALSE); changed = true; } } If there was a way to go straight right to the field, avoiding the while loop, would be even better. FabrÃcio Lemos On 9/12/05, Tom Schindl <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Could someone summerize the whole thread it looks like a nice > code-snippet or at least could someone post the working code lines? > > Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]