Set column titles dynamically in Sage Enterprise Management (Sage X3)

By | August 27, 2012

Recently we had a requirement wherein the name of the columns need to be dynamic. That is, based on the user selection the titles of the columns in the grid need to be changed. For those with prior .Net or Java this is just a matter of assigning a title string to the column object. However, in Sage X3 that uses 4 GL programming, the steps are slightly different. So let us see how to do it in Sage X3.

First of all, add enough number of columns you might require on the screen (Table). Make sure that the Column Description field is left blank to be set later.
You might want to change the title on user selection or change of fields on the screen. Narrow down the event to be handled say “AVANTBOUT” that handles the button click event. Now just use the below-mentioned code statement.

Titcol [M:XYZ1]NBLIG “title” For COL0001
Here,
Titcol is the command that sets Column Title.
[M:XYZ1] is the screen name(abbreviation).
NBLIG is the grid control variable.
“title” is the constant string to be set as title.
COL0001 is the name of the column field
Don’t forget to refresh screen using Affzo statement. The below code block will give you a better view.

That’s just as simple as you do it in any other modern programming language. Hope this information would be helpful or you can always use our Greytrix Sage X3 Development Services.

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 caters to a wide range of Sage Enterprise Management (Sage X3) offerings – a Sage Business Cloud Solution. Our unique GUMU™ integrations include Sage Enterprise Management (Sage X3) for Sage CRMSalesforce.com and Magento eCommerce along with Implementation and Technical Support worldwide for Sage Enterprise Management (Sage X3). Currently we are Sage Enterprise Management Implementation Partner in East Africa, Middles East, Australia, Asia. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit for Sage Enterprise Management to Sage business partners, end users and Sage PSG worldwide.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage Enterprise Management – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com. We will be glad to assist you.