Deleting An Attribute Value In A Combobox
Posted: Wed Aug 23, 2017 10:26 pm
Hello,
I am using Oxygen XML Web Author and discovered an issue today.
I have several comboboxes in my document that edit attributes. These comboboxes pull their value from the schema and are initially set to blank. The issue I have is that if someone accidentally selects a value, I cannot delete the value - unless I go into the xml and delete it manually. We do not want our users to use the xml view - so this is not a good solution for my purposes.
I saw in the documentation for oxy_combobox that using canRemoveValue set to true creates an <Empty> value. However, that is not working for me...
I suspect because I am using values from the schema.
Below is the code - and in this example, I would like the ability to delete an accidentally filled-in value for the last combobox.
Any thoughts or suggestions?
Thanks!
John
I am using Oxygen XML Web Author and discovered an issue today.
I have several comboboxes in my document that edit attributes. These comboboxes pull their value from the schema and are initially set to blank. The issue I have is that if someone accidentally selects a value, I cannot delete the value - unless I go into the xml and delete it manually. We do not want our users to use the xml view - so this is not a good solution for my purposes.
I saw in the documentation for oxy_combobox that using canRemoveValue set to true creates an <Empty> value. However, that is not working for me...
I suspect because I am using values from the schema.
Below is the code - and in this example, I would like the ability to delete an accidentally filled-in value for the last combobox.
Any thoughts or suggestions?
Thanks!
John
Code: Select all
replacementNameplateRequired{
content:
oxy_label(text, "Replacment nameplate/modplates required: ", width, 18%)
oxy_combobox(edit, "@replaceNameplate", editable, false, width, 10%)
oxy_label(text, " ", width, 2%)
oxy_label(text, "If Yes, replacement nameplate/modplate type: ", width, 18%)
oxy_combobox(edit, "@nameplateType", editable, false, width, 52%);
}