cancel
Showing results for 
Search instead for 
Did you mean: 

Form Mode Change Event

Former Member
0 Kudos

Hi,

Is there any way to capture form's mode change? (eg: from OK to UPDATE...)

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Eneveux
Product and Topic Expert
Product and Topic Expert
0 Kudos

Angel,

In the SAP Business One SDK Help Center, did you look at the "AffectsFormMode Property".

HTH,

Eddy

Former Member
0 Kudos

Edward,

I'm looking for a simple solution to catch all form (including system forms) mode changes (not only from OK to UPDATE), is possible with "AffectsFormMode Property"?

I've read that catch FIND mode change must be done in a different way (something about menu events).

Thanks

AdKerremans
Active Contributor
0 Kudos

Hi,

You can catch the menu event from the buttons (add, find etc).

regards

Ad

Former Member
0 Kudos

But Catching events from buttons (add, find, etc) I can´t know when the form has changed form OK_mode to UPDATE_mode.

Regards,

Mario

AdKerremans
Active Contributor
0 Kudos

Hi Mario,

you could try the keypressed event and check the form mode.

Regards

Ad

Former Member
0 Kudos

As far as I've tested (I'm developing it by now) you must coordinate some pieces:

1) First, your form must set AutoManaged="1" attribute

2) Second, every item which you decide changes your form status must set AffectsFormMode="1" attribute (for example, set to "1" for edittext, but "0" to folders because if you click a folder item it doesn't affect your data)

3) capture the itemevent and menuevent of this form, and check then form's mode property

I hope it helps, greetings

Jose Manuel

Answers (0)