Implement modern UI – new theme when customizing existing Sage 300 ERP OCX

By | November 28, 2017

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 a globally recognized Premier Sage Gold Development Partner is a one stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix offers unique GUMU™ integrated solutions of Sage 300 with Sage CRM, 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 and integration service for applications such as POS | WMS | Payroll | Shipping System | Business Intelligence | eCommerce for Sage 300 ERP and in Sage 300c development services we offer services such as upgrades of older codes and screens to new web screens, newer integrations using sdata and web services  to Sage business partners, end users and Sage PSG worldwide. Greytrix offers over 20+ Sage 300 productivity-enhancing utilities that we can help you with such as GreyMatrix, Document Attachment, Document Numbering, Auto-Bank Reconciliation, Purchase Approval System, Three way PO matching, Bill of Lading and VAT for Middle East.

For more details on Sage 300 and 300c Services, please contact us at We will be glad to assist you.