on 07-03-2007 6:34 AM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks I'll check that out
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Thanks, I'll check it out. Basically the cursor trembles for a couple of seconds after it is pressed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.