Sage 300 ERP has recently released the latest version 2018(v6.5) with the new theme alike Windows 10. When we customize any standard Sage 300 screen\OCX, we do not get the new look & feel provided by the Sage 300 ERP in v2018.
With the help of Sage Support team we have found the workaround for resolution of this issue and now our customers are also happy after getting the similar UI themes as same as in Standard Sage 300 ERP.
In this blog we are going to provide you the walkthrough of the workaround:-
New Stuff: Using modern UI – new theme for custom modules in Sage 300 ERP
A snippet of code which may help the developer to make use of this functionality:
Step 1: Declare the below event in the event declaration section of the OCX
Public Event OnUIRefreshModernization() ‘Event Declaration for Modern UI
Step 2: On the UIAppOpen of the control, include the below code:
Dynamic control : OpenUIApp()
LoadDynamicControl(“OE1100”) ‘Code to Load the Control Dynamically
mAppControls.Add ctlDynamic ‘Adding the selected control to App Controls
RaiseEvent OnUIRefreshModernization ‘Calling the Modern/New UI
Static Control : AccpacOE1100UICtrl1_OnUIAppOpened()
mAppControls.Add AccpacOE1100UICtrl ‘Adding the selected control to App Controls
RaiseEvent OnUIRefreshModernization ‘Calling the Modern/New UI
Step 3: Build an OCX.
Once the above code is added to your customized OCX, make the OCX and paste it in the Sage 300 Programs directory to check the UI of the control.
Note that the modern UI is not visible when debugging the project from the Visual Basic.
So, developer can use the above code snippet to call the modern UI provided by Sage in Sage 300 ERP v2018.
About Us
Greytrix is a one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.
Greytrix has some unique solutions of Sage 300 integration with Sage CRM, Salesforce.com and Magento eCommerce along with Sage 300 Migration from Sage 50 US, Sage 50 CA, Sage PRO, QuickBooks, Sage Business Vision and Sage Business Works. We also offer best-in-class Sage 300 customization and development services to Sage business partners, end users, and Sage PSG worldwide.
For more details on Sage 300 Services, please contact us at accpac@greytrix.com. We will be glad to assist you.