Tell me what is going on here. What's wrong ?
God, I had a Filter not added for ITEM_PRESSED in Inventory form.
I know the video is showing CLICK but this was changed because ITEM_PRESSED wasn't working
howver it was because I had not set a filter for ITEM_PRESSED in Inventory form
This could be a lesson to other people so I keep the thread to show my stupid mistake !
Never a stupid mistake Marc, it is always a happy little accident ![]()
I have made the same mistake a "few" times. This is why I started using the "new" method of trapping events. It has also made it easy to have my add-ons as DLLs. No more unintalling/installing B1 add-ons every time I make a change.
Well, I've been dreaming about not having to install/uninstall addon every time since 6 years. But my first attempt at doing that back 4 years ago, was stopped because the dll's are installed on each user's computer. That make the installing process easier than having to copy paste the new dll on each computer
If you have detail about what you do, I suggest starting a blog or a thread about it and give detail as I'm sure many other would like to know.
I started one here http://scn.sap.com/blogs/gear so you can post comments and give detail about your experience.
LOL. I am not sure that it warrants a blog.
I put the new DLLs in a folder in B1_SHR.
I created a batch (BAT) file that the user must run when there is a new version of the code.
This batch file just copies the DLLs.to the local machine.
Not a very sophisticated solution, but it works.
If there is more interest, or you need more info, I can post in the blog.
ok and what happen when the customer upgrade to a new patch ? Are you updating also the SAP UI API and DI API as well in your batch file ?
In fact I don't think you can keep the interop of old patch version to each user's computer
yes, I copy the correct interops and the correct B1WizardBase dll.
I guess that I am still in the development\test stage..... I only have one customer that I am using this method on. We are both on the same version of B1.
I am not going to go back and re-write all of my existing add-ons,
I think that as long as I stay current with upgrades, I should be OK.
When the next patch is released, I will upgrade my machine. The client will not be upgrading, so we will be a different patch levels.
If you like, I can do a gotomeeting and walk you through what I have done.
It's all right, I see your idea. Thank you to have shared this with us.
OK. If you change your mind, let me know.
One more thing...
I first tried this with the old method of using SAPbouiCOM.EventFilters, but I could never get it to work well.
So I went to the B1Listener. (I could not find any documentation of this - is there any ?)