cancel
Showing results for 
Search instead for 
Did you mean: 

How to switch off 'Would you like to save changes?' message

former_member369006
Participant
0 Kudos

Hello.

I am developing AddOn that has form of control type. This means some parameters can be specified (so editing mode must be on) but the data in database are never changed.

So standard message that SAP B1 displays ( 'Would you like to save changes?' ) when closing form is useless.

Please tell me how can I switch off this message.

Best regards,

Pawel.

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor
0 Kudos

Hi Pawel,

As pointed out this is not possible, however if the item is not used to change the database you can set the AffectsFormMode property to false. This means that any change to the item will not change the form and B1 will not present you with message about saving the data (as it cannot detect that changes were made).

Good luck.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

former_member369006
Participant
0 Kudos

Thank you very much. Property AffectsFormMode works perfectlly.

One has to set AffectsFormMode = true for each control even for control of type it_COMBO_BUTTON.

Best regards,

Pawel

Answers (1)

Answers (1)

AdKerremans
Active Contributor
0 Kudos

Hi Pawel,

Unfortunatley this is not possible.

Regards

Ad