There are situations where the user requires the custom column in the Standard Sage 300 Grid. Sage 300 ERP allows us to use/add columns in the standard Grid using “AccpacViewList”.
Based on the requirement of the column, it becomes necessary to provide custom finder on newly added column. We can assign the finder property to the control and use “OnCustomButtonClick” event to perform the desired operation.
A snippet of code which may help the developer to make use of this functionality:
Step 1: Declare the Viewlist with event in the control file
Public WithEvents avlDetail As AccpacFldList.AccpacViewList
Step 2: Adding new column and assigning custom button
Private Sub AccpacXX1000UICtrl1_OnUIAppOpened()
Dim stdPic As StdPicture ‘TODO: Write your custom button column code here
Set stdPic = AccpacXX1000UICtrl1.Picture ‘Inherit the Picture from the Control
Set avlDetail = AccpacXX1000UICtrl1.UIAppControls(“ModuleNameFromUIinfo”).GetControl
‘Add column with Finder property as True to use the custom button.
avlDetail.AddColumn avlDetail.ColumnCount, “BindField”, 0, “Column Name”, ALIGMENT_LEFT, 100, True, False, True
‘Adding the custom button with ZOOM symbol and picture inherited from the control. There are different buttons available in the list (BUTTON_ZOOM)
avlDetail.SetCustomButton avlDetail.ColumnIndexByField(“BindField”), BUTTON_ZOOM, stdPic
Step 3: OnCustomButtonClick event have the control of the click
Private Sub avlDetail_OnCustomButtonClick(ByVal ColIndex As Long, ByVal ColName As String, ByVal FieldName As String, Bookmark As Variant)
‘TODO: Write your code here to perform operation on custom button click
So, developer can use the above code snippet to call the functions, forms and also perform any other operations supported by VB6 and Sage 300.
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, 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 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 firstname.lastname@example.org. We will be glad to assist you.