Problem with update form trapping IF PROP:AcceptAll

Hi I have an an issue with accept all on a window

When ok is pressed accept all is triggered and all fields checked

On fields is embedded code to run a routine . Say 30 fields

And under accept all the routine is called 30 times

I am using
if thiswindow(accept:all)
= 0 exit

In the routine

But it does not seem to recognise the accept all status

Any ideas?
C10

Hi,
if I understand your situation correctly, you need the opposite condition in your IF - you should exit routine while in “accept all” mode, i.e.: IF Window{PROP:AcceptAll} = 1 THEN EXIT .

Regards,
Andrzej

1 Like

Hi yes perfect thanks.
Sorry my post was not clear…i was rushing!
The funny thing was the test message I had in there to trap the code was before the accept all code.
So this was why I thought it was not working… as my debug message was in the wrong place !

You can use Zero or TARGET for the current window so that the same code will work if the Window is named QuickWindow by a wizard. The Window is FEQ Zero which is also the value of TARGET. You also do not need the " =1 " to test for True. Either of these two will work:

IF 0{PROP:AcceptAll} THEN EXIT.
IF TARGET{PROP:AcceptAll} THEN EXIT.
1 Like