How to stop Accepted code running On Save

Hi Folks,

Has been a long time since I’ve working in Not-Nettalk Clarion, ha!

Clarion 10.

So I’ve got some code in an Accepted embed for a field on a file form.

The code is running when the “Save” button is clicked.

If this were Nettalk, I’d add a little check wrap around the code. And from the dim dark memory palace there is something similar to do here right?

Q. How do I stop Accepted field embed code running On Save?

I think you are after:

IF 0{PROP:AcceptAll}=FALSE
  ! do some code stuff here that only runs when the 
  ! button is clicked, not when the window is doing AcceptAll mode shenanigans
END
1 Like

Champion! That’s the one.

Brahn, just for completeness. Event Accepted does not fire during AcceptAll mode for buttons.

Rick, YES!

My comment was quite badly worded. I would edit it but then your post would look weird :smiley:

Maybe more like this:

IF 0{PROP:AcceptAll}=FALSE
  ! do some code stuff here that only runs when the 
  ! field EVENT:Accepted fires from user interaction, not when the window is doing AcceptAll mode shenanigans
END
1 Like