Quantcast
Channel: Sage 300 ERP – Tips, Tricks and Components
Viewing all articles
Browse latest Browse all 1475

Adding custom button in Accpac View List

$
0
0

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.

New Stuff:  Migrate Item Category from Sage 50 CAD to Sage 300 ERP

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
End Sub

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

Call CustomFinder
End Sub

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.

Also Read :

  1. Tips and Tricks on Sage ACCPAC ERP’s Views: 2. How to get data immediately displayed on the screen when updated in the views?
  2. Auto Vendor / Customer Code Generation in Sage 300 ERP
  3. GET XML FORMAT DATA FROM WEB SERVICE RESPONSE WITHOUT EXPORTING FILE FOR SAGE 300 ERP
  4. Tips and Tricks of Sage ACCPAC ERP’s Views: 1. Do you know how to get notification from the Accpac Views?
  5. Adding columns to the detail grid of Transaction Screens

About Us

Greytrix is 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 have 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.

 


Viewing all articles
Browse latest Browse all 1475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>