Issue 99936 - OO.o doesn't save XForm XML data model properties properly when using multiple models/instances
Summary: OO.o doesn't save XForm XML data model properties properly when using multipl...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 3.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-05 22:28 UTC by safway
Modified: 2017-05-20 11:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description safway 2009-03-05 22:28:12 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?
Comment 1 marc.neumann 2009-08-17 11:37:16 UTC
confirm, set target and send to the right developer
Comment 2 Frank Schönheit 2009-08-28 12:29:24 UTC
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.
Comment 3 safway 2009-08-28 17:25:19 UTC
Dang, dang!!  Well, thank you for all your efforts on OO.o.  We sure appreciate
it.  :-)
Comment 4 Marcus 2017-05-20 11:22:09 UTC
Reset assigne to the default "issues@openoffice.apache.org".