cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid unwanted system message programmatically?

Former Member
0 Kudos

Hello everybody!

I have an add-on programmed in c# for SAP B1. During the start-up of the add-on it checks for

some UDFs and if they don't exist it creates those tables. But my question is even the times

these tables exist, the following system message appears after the start-up of the add-on.

Which doesn't make any sense. Because the add-on didn't make any change to the database. Is there a way

that I can avoid this message and just display only in case of actual modification in the database?

Any help would be highly appreciated!

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor
0 Kudos

Hi Isuru,

The message only displays when you attempt to create or update fields. Even if there are no changes but an Update is called the message displays.

Make sure that you don't invoke Update or Add on the UserFieldsMD, UserTablesMD, etc... and the message should not display.

In any case there is a way to suppress the message. Application.MetaDataAutoRefresh controls the refresh of the meta data which triggers the pop-up.


The SAP Business One auto-refresh mechanism checks for changes in metadata, such as adding user-fields and user-tables.

When a change is detected, the application displays a notification form. This form can cause problems to add-ons that rely on many metadata changes.

During the interval between the property is false until it is true, refresh of the metadata is not possible.

There is more information in the SDK Help Center.

<


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn/body>

Answers (0)