How to hide the button in line level of grid in sage X3

By | January 30, 2025

In Sage X3, we came across a situation where we need to hide a button at the line level within a grid. This functionality can be achieved by following the steps given below.

In our example, the user wants to hide the “Change of Receipt” button at the line level (as shown in Figure 1) for a specific transaction type, i.e RET (Return GRN) as shown in Figure 2.

New Stuff: How to print comments data longer than 250 characters on Crystal Reports at once in Sage X3

Receipt Screen
Receipt Screen
Transaction List
Transaction List

To remove the button, we need to follow mentioned steps:

Navigate to Windows(OPTH)->Screens(PTH1).

  1. Add an “Init Button” field action to the NBLIG field as shown in Figure 3.
  2. Add a specific action (SPE) so that it is applied to the relevant script (SPEPTH).
  3. Implement the code as shown in Figure 4.
screen
screen
Script code
Script code

Here
Within this action,
[V]GBOUTX, where GBOUT is the keyword used for button and X represents the button number
(i.e 5 – (Change of Receipt) in our case ).

Receipt Screen Without Button
Receipt Screen Without Button

As shown in above Figure 5 we have hide the button on Receipt screen for return transaction.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.

Greytrix has some unique integration solutions developed for Sage CRM with Sage ERPs namely Sage X3Sage IntacctSage 100Sage 500, and Sage 300. We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users, and Sage PSG worldwide. Greytrix helps in the migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like  Greytrix Business ManagerSage CRM Project ManagerSage CRM Resource PlannerSage CRM Contract ManagerSage CRM Event ManagerSage CRM Budget PlannerGmail IntegrationSage CRM Mobile Service SignatureSage CRM CTI Framework.

Greytrix is a recognized Sage Champion Partner for GUMU™ Sage X3 – Sage CRM integration listed on Sage Marketplace and Sage CRM – Sage Intacct integration listed on Sage Intacct Marketplace. The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.