Page 1 of 1

Method to access ValidationProblems

Posted: Wed Jun 17, 2015 1:04 pm
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.

Re: Method to access ValidationProblems

Posted: Wed Jun 17, 2015 1:28 pm
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

Re: Method to access ValidationProblems

Posted: Wed Jun 17, 2015 3:13 pm
by Johann
It's a pity..

Thanks for your response !

Johann L.

Re: Method to access ValidationProblems

Posted: Wed Jun 17, 2015 3:19 pm
by Radu
Hi Johann,

Could you tell us more about your use case?

Regards,
Radu

Re: Method to access ValidationProblems

Posted: Thu Jun 18, 2015 11:40 am
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