How to stop Accepted code running On Save

clarion10
Tags: #<Tag:0x00007ff8a8e1cc80>

#1

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?


#2

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

#3

Champion! That’s the one.


#4

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


#5

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