Method to access ValidationProblems

Post here questions and problems related to oXygen frameworks/document types.
Johann
Posts: 66

Method to access ValidationProblems

Wed Jun 17, 2015 1:04 pm

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: 5585

Re: Method to access ValidationProblems

Wed Jun 17, 2015 1:28 pm

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: 66

Re: Method to access ValidationProblems

Wed Jun 17, 2015 3:13 pm

It's a pity..

Thanks for your response !

Johann L.
Radu
Posts: 5585

Re: Method to access ValidationProblems

Wed Jun 17, 2015 3:19 pm

Hi Johann,

Could you tell us more about your use case?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Johann
Posts: 66

Re: Method to access ValidationProblems

Thu Jun 18, 2015 11:40 am

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 3 guests