Method to access ValidationProblems

Post here questions and problems related to oXygen frameworks/document types.
Johann
Posts: 240
Joined: Wed Jun 17, 2015 12:46 pm

Method to access ValidationProblems

Post by Johann »

Hi,

In Oxygen 16 API, I didn't find a way to get ro.sync.exml.workspace.api.editor.validation.ValidationProblems outside ValidationProblemsFilter.

Are there other ways to access these ValidationProblems ? In WSAuthorEditorPage for example ?

Thanks in advance,

Johann L.
Radu
Posts: 9469
Joined: Fri Jul 09, 2004 5:18 pm

Re: Method to access ValidationProblems

Post by Radu »

Hi Johann,

There is no other API.
You need to add a validation problems filter and store in a field the list of last reported errors.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Johann
Posts: 240
Joined: Wed Jun 17, 2015 12:46 pm

Re: Method to access ValidationProblems

Post by Johann »

It's a pity..

Thanks for your response !

Johann L.
Radu
Posts: 9469
Joined: Fri Jul 09, 2004 5:18 pm

Re: Method to access ValidationProblems

Post by Radu »

Hi Johann,

Could you tell us more about your use case?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Johann
Posts: 240
Joined: Wed Jun 17, 2015 12:46 pm

Re: Method to access ValidationProblems

Post by Johann »

Hi Radu,

I succeeded in getting my ValidationProblems with your solution ! In fact, some actions on my XML document are not allowed according to the origin of ValidationProblems.

Thanks again,

Johann
Post Reply