Deleting An Attribute Value In A Combobox
Oxygen general issues.
-
- Posts: 32
- Joined: Mon Apr 10, 2017 8:56 pm
Deleting An Attribute Value In A Combobox
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%);
}
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Deleting An Attribute Value In A Combobox
Post by Gabriel Titerlea »
Hello,
You can use add an oxy_button when the attribute you want to remove is present. This button will remove the attribute.
Here's an example:
I'm using the ChangeAttributeOperation in this example. You can find the documentation for this operation here [1].
Alternatively your users could use the Attributes panel to remove an attribute [2].
Best,
Gabriel
[1] https://www.oxygenxml.com/doc/versions/ ... eOperation
[2] https://www.oxygenxml.com/doc/versions/ ... _attribute
You can use add an oxy_button when the attribute you want to remove is present. This button will remove the attribute.
Here's an example:
Code: Select all
replacementNameplateRequired[nameplateType]{ /* Adding the button only when the nameplateType attribute is present */
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%)
oxy_button(action, oxy_action(
name, 'Remove nameplate',
operation, 'ro.sync.ecss.extensions.commons.operations.ChangeAttributeOperation',
arg-name, 'nameplateType' /* The attribute to remove */
));
}
Alternatively your users could use the Attributes panel to remove an attribute [2].
Best,
Gabriel
[1] https://www.oxygenxml.com/doc/versions/ ... eOperation
[2] https://www.oxygenxml.com/doc/versions/ ... _attribute
-
- Site Admin
- Posts: 234
- Joined: Wed Aug 30, 2023 2:33 pm
Re: Deleting An Attribute Value In A Combobox
Hello,
Here is a simple example:
We are excited to announce the release of Web Author version 27.0!
This version brings significant improvements, new features, and a smoother user experience.
For a detailed overview, visit the What's New section on our website [1].
[1] https://www.oxygenxml.com/xml_web_author/whats_new.html
Best,
Cosmin
Starting with version 27 of Oxygen XML Web Author you can use "canRemoveValue" property for oxy_comboboxI saw in the documentation for oxy_combobox that using canRemoveValue set to true creates an <Empty> value. However, that is not working for me...
Here is a simple example:
Code: Select all
oxy_combobox(
edit, '@outputclass',
editable, false,
fontInherit, 'true',
canRemoveValue, 'true',
columns, 12,
values, "as-jira-subtask",
labels, "Subtask"
)
This version brings significant improvements, new features, and a smoother user experience.
For a detailed overview, visit the What's New section on our website [1].
[1] https://www.oxygenxml.com/xml_web_author/whats_new.html
Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service