Apache OpenOffice (AOO) Bugzilla – Issue 99936
OO.o doesn't save XForm XML data model properties properly when using multiple models/instances
Last modified: 2017-05-20 11:22:09 UTC
Details: When using multiple models and instances in an XForms document, OO.o always saves the XML data model as "Model 1" regardless of the user having chosen "Model 2" 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 Add three models to the XForm document From within XML data navigator, click on Model button Select to Add Model name = Model 2 From within XML data navigator, click on Model button Select to Add Model name = Model 3 Add three instances to the XForm document From within XML data navigator, click on Instances button Select to Add Instance name = Instance 2 From within XML data navigator, click on Instances button Select to Add Instance name = Instance 3 Insert nine form controls into the document form from XML data navigator You will now have three models and three instances. Click the Model pull-down button and select Model 1 Notice Model 1 has three instances Click Model's 1 Instance 1 tab Notice the instance1 element Left click this element and drag it into the form Click Model's 1 Instance 2 tab Notice the instance1 element Left click this element and drag it into the form Click Model's 1 Instance 3 tab Notice the instance1 element Left click this element and drag it into the form Click the Model pull-down button and select Model 2 Notice Model 2 has three instances Click Model's 2 Instance 1 tab Notice the instance1 element Left click this element and drag it into the form Click Model's 1 Instance 2 tab Notice the instance1 element Left click this element and drag it into the form Click Model's 1 Instance 3 tab Notice the instance1 element Left click this element and drag it into the form Click the Model pull-down button and select Model 3 Notice Model 3 has three instances Click Model's 3 Instance 1 tab Notice the instance1 element Left click this element and drag it into the form Click Model's 1 Instance 2 tab Notice the instance1 element Left click this element and drag it into the form Click Model's 1 Instance 3 tab Notice the instance1 element Left click this element 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" Ensure your settings are correct <================ From within the text box properties window, click the Data tab Ensure XML data model is correctly set You should have three of them set to Model 1 Three of them set to Model 2 Three of them set to Model 3 Save your XForms document Exit OO.o completely Start OO.o Open up this file and look again at your text box properties window for each of these nine text boxes. Notice all nine of the data models are now saying Model 1. Where did the three Model 2 boxes and the three Model 3 boxes go?
confirm, set target and send to the right developer
moving target to "OOo Later". Investigations show that the XForms core has a design flaw that object IDs (which are stored as xml:id in the resulting file) are not globally unique, but only unique relative to a parent object. As a consequence, different bindings with the same name ("Binding 1") can exist in a document, in different models, which makes referring to them in the file format ambiguous. Fixing this is quite some effort, and given that XForms are not our priority at the moment (as much as one might regret this), "3.x" is not a reasonably target.
Dang, dang!! Well, thank you for all your efforts on OO.o. We sure appreciate it. :-)
Reset assigne to the default "issues@openoffice.apache.org".