To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=99891 Issue #|99891 Summary|OpenOffice.org does not honor the XForms readonly spec |ification Component|Word processor Version|OOo 3.0 Platform|Unknown URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|writerneedsconfirm Reported by|safway
------- Additional comments from saf...@openoffice.org Wed Mar 4 18:43:52 +0000 2009 ------- Details: The XForms specification as defined by the official WWW Consortium states "When evaluating to true, this model item property indicates that the XForms Processor should not allow any changes to the bound instance data node" http://www.w3.org/TR/xforms/#model-prop-readOnly . OO.o does not honor that. If the user want read only ALWAYS--REGARDLESS OF ANY CONDITION, then it is required that they enable readonly within the form control. This obliviates the functionality of conditional readonly capabilities of XForms. Steps to show defect: Open a new XForm File New XML Form Document Ensure form control toolbar is enabled: View Toolbars Form controls Ensure form design toolbar is enabled: View Toolbars Form design Ensure XML Data Navigator window is enabled: Withing Form design toolbar toggle on XML data navigator using icon Insert a form control into the document form from XML data navigator From within XML data navigator, click on instance tab In the instance tab is at least one node Left click this node and drag it into the form Select the form control and look at its properties Right click the form control and select to ungroup This will ungroup the label field from the text box Double left click the text box This brings up a text box properties window that has as the title "Properties: Text box" Specify the readonly setting to this text box From the text box properties window, click the general tab Notice the read-only setting is set to No From the text box properties window, now click the data tab In the Read-only box type the XPath function "true()" without the quotes Notice the read-only setting is now set to Yes OK, well you can force it to always be readonly this way. What if you want it to be read-only only under a certain condition? Go back to the text box properties window and type in a real XPath conditional expression and you will see that it does not follow this condition. To provide an XPath expression example would be totally dependent upon other values on your XML document. However, here is an attempt to provide you with one. If the read-only box XPath function were "/SetupForm/ContactInformation/Age >= 45" then what the user should expect is that ONLY when the Age node is greater or equal to 45 should THIS box be read-only. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org For additional commands, e-mail: issues-h...@sw.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org