Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
Showing results for 
Search instead for 
Did you mean: 
Active Contributor

In the new ver, SBO SDK supports the LayoutKeyEvent.

The event allows us to open our crystal report attached to our user form.

However, this event is not supported by the B1DE 2.2(which is the latest version available as of this writing.)

I have modified the B1Wizardbase.dll to support for this event.

I will not discuss about this Event, instead you should check this Blog : http://www.sdn.sap.com/irj/scn/weblogs?blog=%2Fpub%2Fwlg%2F26720

And the discussion in this thread : View Crystal Report from add-on

You can download the DLL here.

How to use the DLL :

1. Create your addon using the B1DE wizard as usual.

2. Under the Debug/Release folder, look for the B1Wizardbase.dll file, replace this file with the modified B1Wizardbase.dll.

3. Use the declaration of the event as below :

   class MyClass : B1Event
        [B1Listener(BoEventTypes.et_PRINT_LAYOUT_KEY, true, new string[] { "frmUID" })]
        public virtual bool OnBeforePrintLayOutKey(LayoutKeyInfo eventInfo)
            eventInfo.LayoutKey = "DocEntry";
            return true;

The above declaration might be different if your class is inheriting from other than B1Event.

That's it, the event should be captured just fine.

Happy coding.


Labels in this area