You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2017/04/29 21:00:58 UTC

[Issue 126102] User Field value not kept in synch with field

https://bz.apache.org/ooo/show_bug.cgi?id=126102

elena.dobos <el...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |elena.hristea8@gmail.com

--- Comment #5 from elena.dobos <el...@gmail.com> ---
I was able to reproduce the behavior (the Name and Value inputs are not in sync
when the name for a field is updated to a name of another existing field)
performing the steps and suggestions provided by joezbugz@outlook.com and Tyler
Martinez on Windows 10 on
- AOO420m1(Build:9800) - Rev. 1785175 Rev.1785175 on
- A00 4.1.3

The behavior seams to be related to how Apply and Insert buttons work for newly
or already existing fields.

1. Navigate to Insert > Fields > Other.. > Variables > User Field.
2. In the Name input, set an user field UF1 having value 12.
3. Click on Insert button.
Actual results:
- a new item UF1 is added in the Selection list
- the UF1 value, 12, is added into the working document.

4. Press Enter into the document (in order to better distinguish between the
fields that will be added in the next steps). This step should be performed
after each field insertion into the document.
5. In the Fields screen, select UF1 item and update its value to 122.
6. Click on Apply button.
Actual results:
- into the working document, the user field's value is 122.

7. In the Fields screen, create a new user field, UF2, with value 34. Click on
Insert button and notice the field is added to the working document.
8. In the Fields screen, having focus on UF2 user field (its value is 34),
update the Name input to UF1.
9. Click on Insert button.
Actual result:
- a new value, 34, is added into the working document - if hover over the
field, its label is UF1.
- the previously inserted values for UF1 field are the old ones, 122.

10. In the Fields screen, move into the Selection list in order o notice the
couple Name-Value for existing fields.
Actual: UF1 value is 34.

11. Having UF1 selected from the Selection list, click on Apply button.
Actual:
- UF1 field's values from the working document are updated to the last set
value (122 becomes 34).


At first impression, it looks like the functionalities of adding and inserting
user fields ALWAYS have the same behavior. 
Yet, their behavior is different depending if they are applied on a newly
created field or onto an existing one:
1. For newly created fields:
- Apply saves the field into the Selection list
- Insert saves into the Selection list and inserts the field into the working
document
2. For existing fields
- Apply updates all already inserted usages of the given field with the last
set value
- Insert saves a new value for the field and adds it to the working document

I think that the underlying problem might be that by setting a value from the
Selection list into the Name input would, the value and Format properties of
the field aren't automatically displayed - in other words, setting a valid user
field name in the Name input could behave as a filter.
This might be the wanted behavior or not - in either way, it is quite confusing
for the user.

-- 
You are receiving this mail because:
You are the assignee for the issue.