Skip to main content
Solved

Field Updated Handler trigger with SetValueExt

  • May 20, 2024
  • 5 replies
  • 404 views
  • Translate All

Forum|alt.badge.img+11

Hi Guys,

 

just wanted to ask if the FieldUpdated handler will fire off when the field is populated via the SetValueExt method.

 

Thanks guys,

Aleks

Best answer by darylbowman

That is one of the documented purposes, yes, as opposed to .SetValue. However, in my experience, there is a difference in behavior between using it in an event handler and using it elsewhere. In an event handler, e.Cache.SetValueExt works very well by itself. Elsewhere, it usually needs a View.Update(row) accompanying it.

I’d love for someone to explain that.

View original

5 replies

darylbowman
Captain II
Forum|alt.badge.img+17

That is one of the documented purposes, yes, as opposed to .SetValue. However, in my experience, there is a difference in behavior between using it in an event handler and using it elsewhere. In an event handler, e.Cache.SetValueExt works very well by itself. Elsewhere, it usually needs a View.Update(row) accompanying it.

I’d love for someone to explain that.

Translate

Forum|alt.badge.img+11
  • Author
  • Captain II
  • May 21, 2024

Thanks for confirming @darylbowman !

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20

@aiwan and @darylbowman  .SetValue will updates/sets the value without any events firing for the respective field where .SetValueExt will invoke the events while modifying the field value.

Here is screenshot for reference.

 

 

Translate

darylbowman
Captain II
Forum|alt.badge.img+17

I’m aware. However, why .SetValueExt doesn’t work the same when interacting with a View as with e.Cache is what I’m curious about.

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20

I'm not entirely sure about this case.

Translate