Search found 33 matches

by vitorhugovm
Fri Nov 08, 2024 5:32 pm
Forum: Common Problems
Topic: Error applying changes on Preferences dialog
Replies: 1
Views: 128

Error applying changes on Preferences dialog

Hello! I'm passing the URL parameter tags-mode=full-tags-with-attributes to set the tags mode. In this mode, when I open the Preferences dialog, the Tags display mode field is removed. That's the expected behavior, but when I try to apply the changes in the dialog, it doesn't work. The error shows t...
by vitorhugovm
Fri Nov 08, 2024 5:18 pm
Forum: Common Problems
Topic: Hide side view and main toolbar in WebApp
Replies: 10
Views: 537

Re: Hide side view and main toolbar in WebApp

Hello!

I'm currently satisfied with the results using iframe and hiding the main toolbar.
Just to be sure, could there be any problem caused by using iframe?

Thanks!
Vitor
by vitorhugovm
Wed Nov 06, 2024 3:30 pm
Forum: Common Problems
Topic: Hide side view and main toolbar in WebApp
Replies: 10
Views: 537

Re: Hide side view and main toolbar in WebApp

Hello! Apologies for the delay to respond. The purpose of the dialog is to select an element from another document by it's XPath. There are two different XMLs that are connected. In one of them exists elements that have the attribute "path", in which it's value must be referencing a node f...
by vitorhugovm
Mon Oct 28, 2024 11:50 pm
Forum: Common Problems
Topic: Hide side view and main toolbar in WebApp
Replies: 10
Views: 537

Re: Hide side view and main toolbar in WebApp

Hello!

I tried the loadPreview function, it works well, but with it I can't access the side view.
In this use case the Search and other views are still useful to find the selection.
Is there a way to show the side view on this mode?

Thanks!
Vitor
by vitorhugovm
Fri Oct 25, 2024 8:02 pm
Forum: Common Problems
Topic: Hide side view and main toolbar in WebApp
Replies: 10
Views: 537

Re: Hide side view and main toolbar in WebApp

Hello Bogdan and Cristian! Bogdan's response worked for both cases! Thanks! Regarding my goals that lead me to these issues, my initial goal was to create an iframe with another Oxygen editor opened inside, this editor is used only for selection, so it always have readOnly status set to true and sen...
by vitorhugovm
Thu Oct 24, 2024 11:50 pm
Forum: Common Problems
Topic: Hide side view and main toolbar in WebApp
Replies: 10
Views: 537

Hide side view and main toolbar in WebApp

Hello! I have a side view that utilizes some Oxygen original views, as Find/Replace, Review, Validation... and also some custom views. I want this side view to be hidden when the document is opened. I looked for it on sync.view.ViewManager , but I didn't find any function that does this. It can only...
by vitorhugovm
Tue Sep 03, 2024 11:07 pm
Forum: Common Problems
Topic: Add external values to oxy_combobox options
Replies: 2
Views: 540

Re: Add external values to oxy_combobox options

Hello Cosmin!

In this case I'm editing the text inside the element, not an attribute.
I used the class you mentioned, but altered the filterElementValues function instead, it worked!

Thank you very much!
Vitor
by vitorhugovm
Mon Sep 02, 2024 10:54 pm
Forum: Common Problems
Topic: Add external values to oxy_combobox options
Replies: 2
Views: 540

Add external values to oxy_combobox options

Hello!

Is there a way fill the values property of oxy_combobox in CSS by using a Java function?
I wanted to receive these options through an HTTP GET.

Thanks!
Vitor
by vitorhugovm
Mon Aug 19, 2024 4:23 pm
Forum: Common Problems
Topic: AuthorDocumentController.findNodesByXPath returning null after first use
Replies: 3
Views: 443

Re: AuthorDocumentController.findNodesByXPath returning null after first use

Hello Cristian! Actually, I've found a solution to the problem! The rendering call for the second element was being executed, but had a null return when passing through findNodesByXPath function. I assumed that the context for the function would be the root element when sending null as context, whic...
by vitorhugovm
Thu Aug 15, 2024 11:57 pm
Forum: Common Problems
Topic: AuthorDocumentController.findNodesByXPath returning null after first use
Replies: 3
Views: 443

AuthorDocumentController.findNodesByXPath returning null after first use

Hello! I'm using a custom renderer called by webappRendererClassName property in CSS. In two particular element renderers, I need to get attributes values from another element, which I find by using AuthorDocumentController.findNodesByXPath . When it passes through the first element render, everythi...
by vitorhugovm
Wed Jul 31, 2024 11:39 pm
Forum: Common Problems
Topic: Remove time selection in oxy_datePicker
Replies: 3
Views: 469

Re: Remove time selection in oxy_datePicker

Hello Cristian! Instead of overriding getAttributeDescription method, I overwritten the getElementDescription method, because I'm editing the text inside the node and not an attribute. In the schema the element has the type xs:dateTime . I tried to use setTypeDescription inside the new method, but i...
by vitorhugovm
Tue Jul 30, 2024 11:51 pm
Forum: Common Problems
Topic: Remove time selection in oxy_datePicker
Replies: 3
Views: 469

Remove time selection in oxy_datePicker

Hello! I'm in need of using oxy_datePicker to allow date selection inside a node. I need to allow selection only for the date so I can intercept the inserted text and add the current time and timezone. I tried to use the "format" property with "yyyy-MM-dd", but it keeps showing t...
by vitorhugovm
Mon Jul 22, 2024 10:19 pm
Forum: Common Problems
Topic: Get the WebApp URL through Java
Replies: 2
Views: 477

Re: Get the WebApp URL through Java

Hello Bogdan!

I did as you said and it solved my issue.

Thank you very much!
Vitor
by vitorhugovm
Thu Jul 18, 2024 11:45 pm
Forum: Common Problems
Topic: Get the WebApp URL through Java
Replies: 2
Views: 477

Get the WebApp URL through Java

Hello!

I'm trying to extract a parameter that is presented on the browser's URL of an opened XML file in the WebApp.
Is there any function in Java that does this or at least returns the complete URL so I can manipulate the string?
I'm currently using the version 25 of the SDK.

Thanks!
Vitor
by vitorhugovm
Tue Jun 25, 2024 3:52 pm
Forum: Common Problems
Topic: AuthorEditorAccess.refresh(node) not working inside WSEditorListener.editorAboutToBeSavedVeto
Replies: 3
Views: 577

Re: AuthorEditorAccess.refresh(node) not working inside WSEditorListener.editorAboutToBeSavedVeto

Hello Mihaela! The reason why I want to refresh the node before saving is so a custom renderer could be recalled through oxy_editor in CSS. I've used the refresh function like this in another cases and it works, but when I use it inside the listener, the custom renderer class is never called. I'm no...
by vitorhugovm
Mon Jun 24, 2024 10:14 pm
Forum: Common Problems
Topic: AuthorEditorAccess.refresh(node) not working inside WSEditorListener.editorAboutToBeSavedVeto
Replies: 3
Views: 577

AuthorEditorAccess.refresh(node) not working inside WSEditorListener.editorAboutToBeSavedVeto

Hello! I'm trying to perform a refresh in some specific nodes before a document is saved by extending WSEditorListener and overriding the function editorAboutToBeSavedVeto . Inside the overwritten function, some nodes are located by XPath and then an attempt to refresh their CSS is made by using Aut...
by vitorhugovm
Tue Jun 18, 2024 10:41 pm
Forum: Common Problems
Topic: Table column insertion changes caret and scroll position to wrong place
Replies: 7
Views: 1174

Re: Table column insertion changes caret and scroll position to wrong place

Hello!

Yes, I am using both ro.sync.ecss.extensions.commons.table.operations.cals.InsertColumnOperation and ro.sync.ecss.extensions.commons.table.operations.cals.SplitOperation as they are.
I tried logging to check for errors, but none is returned.

Thanks!
Vitor
by vitorhugovm
Mon Jun 17, 2024 3:16 pm
Forum: Common Problems
Topic: Table column insertion changes caret and scroll position to wrong place
Replies: 7
Views: 1174

Re: Table column insertion changes caret and scroll position to wrong place

Hello Mihaela!

Our code only calls the Oxygen default operation and does not perform by itself any change of caret or scroll.
As a reminder, we are using a default XML from S1000D, not a DITA. Apparently in DITA this does not happen.

Thanks!
Vitor
by vitorhugovm
Fri Jun 14, 2024 9:35 pm
Forum: Common Problems
Topic: Table column insertion changes caret and scroll position to wrong place
Replies: 7
Views: 1174

Re: Table column insertion changes caret and scroll position to wrong place

Hello Cosmin! I'm sorry, for compliance reasons I cannot send you our framework. I'm using the S1000D schema to edit the XML documents. The following code is being used in JavaScript to call the table action through an action button: class DeleteTableColumn extends sync.actions.AbstractAction { cons...
by vitorhugovm
Thu Jun 13, 2024 11:12 pm
Forum: Common Problems
Topic: Table column insertion changes caret and scroll position to wrong place
Replies: 7
Views: 1174

Table column insertion changes caret and scroll position to wrong place

Hello, I'm currently using Oxygen XML Web Author with SDK version 25.1, with a custom framework and editing an XML document. I'm having trouble while inserting a table column. When I run InsertSingleColumnOperation or in some cases of SplitOperation, the caret position is altered to a random element...
by vitorhugovm
Wed Apr 24, 2024 8:35 pm
Forum: Feature Request
Topic: Remove quick-fix actions from ValidationProblems list through Java
Replies: 1
Views: 502

Remove quick-fix actions from ValidationProblems list through Java

Hello! Is there a way to remove quick-fix actions inside a problem from ValidationProblems through Java? I have access to the problems list by extending ValidationProblemsFilter and then calling the following function: this.problems = validationProblems.getProblemsList() Example: image.png I can edi...
by vitorhugovm
Tue Apr 23, 2024 9:01 pm
Forum: Common Problems
Topic: Non-persistent data storage
Replies: 4
Views: 767

Re: Non-persistent data storage

Hello Cristian! I'm currently using EditingSessionContext and it's doing exactly what I needed. The objective was to store and retrieve data only for the current document, this data must be erased if the document is reloaded or closed. I'm using it to store external retrieved data that must not be i...
by vitorhugovm
Fri Apr 19, 2024 1:58 pm
Forum: Common Problems
Topic: Non-persistent data storage
Replies: 4
Views: 767

Re: Non-persistent data storage

Hi Radu!

I found the class EditingSessionContext, which apparently solves the issue by setting and getting attributes with keys and values. Should I have any concern about the use of this class?

Thanks!
Vitor
by vitorhugovm
Thu Apr 18, 2024 11:45 pm
Forum: Common Problems
Topic: Non-persistent data storage
Replies: 4
Views: 767

Non-persistent data storage

Is there a way to store and retrieve non-persistent data using the Java API?
Thanks!
Vitor
by vitorhugovm
Fri Mar 15, 2024 5:05 pm
Forum: Feature Request
Topic: Custom validation without Schematron
Replies: 3
Views: 825

Re: Custom validation without Schematron

Hello Cristian, Yes, you understood correctly. Now answering your questions: Yes, I am using a custom form control which extends WebappFormControlRenderer. The content retrieved from the external service is appended to the Writer out as HTML from an overwritten renderControl function. I'm not using ...
by vitorhugovm
Tue Mar 12, 2024 4:15 pm
Forum: Feature Request
Topic: Custom validation without Schematron
Replies: 3
Views: 825

Custom validation without Schematron

Hello, I'm trying to implement a validation for the following process: A request to an external endpoint is made when a document is opened in Author mode to fetch additional information to some custom XML tags. The retrieved content is not inserted in the XML after the request, it is inserted in the...
by vitorhugovm
Wed Feb 07, 2024 11:29 pm
Forum: Common Problems
Topic: InsertSingleColumnOperation scrolls editor to the top
Replies: 3
Views: 1034

Re: InsertSingleColumnOperation scrolls editor to the top

Hi Radu!
Yes, it is a custom framework for editing a custom XML vocabulary. I'm using Edge on a Windows for the tests. I tested the operation with the link you provided and it worked normally.
Thanks!
Vitor
by vitorhugovm
Tue Feb 06, 2024 2:45 pm
Forum: Common Problems
Topic: InsertSingleColumnOperation scrolls editor to the top
Replies: 3
Views: 1034

Re: InsertSingleColumnOperation scrolls editor to the top

Hi Radu! In this case I'm using the original operation, it's not customized. And yes, the caret is set to the first cell of the new column, as should be the expected behavior. But the problem is not the caret, because when the original operation is done, the editor is scrolled to the beginning of th...
by vitorhugovm
Mon Feb 05, 2024 10:56 pm
Forum: Common Problems
Topic: InsertSingleColumnOperation scrolls editor to the top
Replies: 3
Views: 1034

InsertSingleColumnOperation scrolls editor to the top

I'm having an issue while using the InsertSingleColumnOperation.
Although the caret stays on the right spot at the table, the editor's screen is scrolled to the top when the operation is done. Is this the usual behavior?
How could I avoid this?

Thanks!
Vitor
by vitorhugovm
Tue Jan 30, 2024 5:29 pm
Forum: Common Problems
Topic: Hide specific element attribute from editor view
Replies: 3
Views: 583

Re: Hide specific element attribute from editor view

For sure the best and most efficient way of doing it, worked perfectly!
If anyone wonders anytime, I used oxy_replace(oxy_attributes(), ' id="[^"]*"', '', true) to make it work.
Thank you very much Radu!
Vitor