Fragment_presenter.set_value() in a Fragment Validator

Would you expect a fragment_presenter.set_value() to work in the context of a fragment validator or not ?

Just seems to do nothing ?

There does not appear to be any mention of it NOT working in either CS documentation or in the online docs area.

By “not working” I mean specifically prevented / not suitable in this context.

On the surface it contains an instance of a fragment presenter so in theory you could call set_value() but i’m guessing since a validator expects a very specific Return it prevents the set_value() from actually working.

even if the set_value is perfectly validated and possible value ?

Ah sorry I see what you mean now. Yes maybe its just not something you can do in a fragment validator in which case can the docs be updated accordingly ?

That’s what i’d guess yes.

as a thought - does anyone know if you had a callback AND a validator on a field which order they would run in - I would assume callback then validator ?

Not sure if you found the answer to this, but I think a callback will only fire on page load and then if a Page Event is triggered on it. I don’t think it will normally fire on value change.

But you can get it to work on value change by setting the “Trigger page event” and “Refresh on page event” options to the same value. It appears this will fire in this orderin blur: validator (as normal on value change), callback (bacause of page event), validator (again, presumably to detect if value was changed by callback).

Hopefully you solved your issue anyway, but might be useful.