cancel
Showing results for 
Search instead for 
Did you mean: 

Slow Button

Former Member
0 Kudos

Hi I've just started experimenting with manipulating system forms. I've managed to add buttons to the Item Master Data form and they work perfectly.

The problem occurs when I add a button to the area which contains user defined fields. (pVal.FormType == -150). The button is much slower than normal. It takes a while to press. The form also seems to flicker a bit when this button is pressed.

Can anyone help me?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

I've finally realized that this problem has nothing to do with my add-on. Basically whenever you open item master data and then go back and forth between the main form and the one containing user defined fields, this happens add-on or no add-on: et_FORM_ACTIVATE and et_FORM_DEACTIVATE occur at least 50 times. I've tested it with different databases.

Former Member
0 Kudos

Thanks I'll check that out

Former Member
0 Kudos

ok I used the event logger and basically it continuously activates and deactivates the formUID : F_10 and F_9.

The funny thing is that when I put a button on Item Master data and not the area with user defined fields, it works fine.

Any ideas?

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

From what you wrote it looks like that your addon is receiving plenty of

et_ACTIVATE and et_DEACTIVATE events from 2 forms. One thing you can

try is to filter out these events - if you don't need them.

If you use B1DE AddOn wizard then all the events you don't use are automatically

filtered. You can get B1DE from SDN under Business One SDK Tools.

If you decide to use SDK natively then you can get information on how to

filter useless events on the SDK help files (check out the class EventFilters in

the UI section) or on the e-learning section.

Former Member
0 Kudos

Thanks, I'll check it out. Basically the cursor trembles for a couple of seconds after it is pressed.

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

I suggest you profile the execution of your addon to understand what exactly is

going on. You should use two tools, both of them available for download on SDN.

- B1 Event Logger is going to show all the events raised by B1

- B1 .NET Profiler (part of B1TE) is going to show all the events and calls to SDK

made by your addon, with no need to instrument or recompile your code