Format value in oxy_textfield
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Format value in oxy_textfield
Hello,
We work with the 22.0 version of Oxygen and I would like to know if it is possible to format value of an oxy_textfield.
I tried this :
But it displays the value of the attribut and not the result of the oxy_xpath.
Is there any way to format this value ?
Thanks.
Regards,
Isabelle
We work with the 22.0 version of Oxygen and I would like to know if it is possible to format value of an oxy_textfield.
I tried this :
Code: Select all
oxy_textfield(edit, "@oidate", values, oxy_xpath("concat(substring(@oidate, 7, 2), '-', substring(@oidate, 5, 2), '-',substring(@oidate, 1, 4))", evaluate, dynamic-once), columns, 10)
Is there any way to format this value ?
Thanks.
Regards,
Isabelle
-
- Posts: 9433
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Format value in oxy_textfield
Hi Isabelle,
As far as I know the oxy_textfield is what you see is what you get, you cannot see one thing but insert another in the document, so you always see the current attribute value.
That "values" property specifies the list of insertion proposals which appear when pressing Ctrl-Space in the text field:
https://www.oxygenxml.com/doc/versions/ ... ditor.html
Maybe you can try to display the processed attribute value as static content on a ":before" or ":after" selector. And use an oxy_button form control to call your own action in which the end user chooses another value.
Regards,
Radu
As far as I know the oxy_textfield is what you see is what you get, you cannot see one thing but insert another in the document, so you always see the current attribute value.
That "values" property specifies the list of insertion proposals which appear when pressing Ctrl-Space in the text field:
https://www.oxygenxml.com/doc/versions/ ... ditor.html
Maybe you can try to display the processed attribute value as static content on a ":before" or ":after" selector. And use an oxy_button form control to call your own action in which the end user chooses another value.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Re: Format value in oxy_textfield
Hello Radu,
Thank you for your answer.
I understand, and I was curious about the rendererClassName and swingEditorClassName.
Found here https://www.oxygenxml.com/doc/versions/ ... trols.html.
Can they solve my issue or not ?
Regards,
Isabelle
Thank you for your answer.
I understand, and I was curious about the rendererClassName and swingEditorClassName.
Found here https://www.oxygenxml.com/doc/versions/ ... trols.html.
Can they solve my issue or not ?
Regards,
Isabelle
-
- Posts: 9433
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Format value in oxy_textfield
Hi Isabelle,
That specific feature would give you full control over the form control contents, you would create the Swing component which would get shown there.
I'm not sure if we've ever had somebody implement a custom form control but I think the extensions should work, if you want you can try this approach, see where it takes you and we can help with advice along the way.
Regards,
Radu
That specific feature would give you full control over the form control contents, you would create the Swing component which would get shown there.
I'm not sure if we've ever had somebody implement a custom form control but I think the extensions should work, if you want you can try this approach, see where it takes you and we can help with advice along the way.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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