Page 1 of 1

default option for MoveElementOperation (and others)

Posted: Wed Aug 09, 2017 7:02 pm
by friedemann_bach
Dear developers,

I have a little issue here which I experienced in the Author action "MoveElementOperation". I defined insertPosition, sourceLocation and targetLocation, and the action worked fine. Then, returning to the dialog again to make some other changes, I (by mistake) clicked on deleteLocation, but did not enter anything. After saving all changes, the action now returned an "unexpected <eof>" error. I checked the action definition in my project file and I saw this:

Code: Select all

<field name="argValues">
<serializableOrderedMap>
<entry>
<String>deleteLocation</String>
<String></String>
</entry>
So the action just tried to parse that empty string there. I then deleted the entry from the project file, reloaded and everything was back to normal. Another way which I also tested was to repeat the sourceLocation, this also works fine but it would mean redundancy. Is this a bug? If not, it would be convenient if there was a "reset to default" button in the dialog.

Many thanks for your brilliant work!!

Re: default option for MoveElementOperation (and others)

Posted: Thu Aug 10, 2017 9:31 am
by Radu
Hi,

I understand, we'll consider adding in a future version a button to unset a parameter's value back to its default.
Also in Oxygen 19.1 (Autumn this year) we'll treat an empty xpath expression set on a parameter in the same way as an xpath expression that is not set at all.

Regards,
Radu

Re: default option for MoveElementOperation (and others)

Posted: Thu Aug 10, 2017 11:51 am
by friedemann_bach
Great, thanks!