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

How to use Existing ACCPAC Advantage Session in C#

$
0
0

In this blog, we are going to define the use of an existing Sage 300c session with ACCPAC Advantage in C# .Net. We have seen that when we use ACCPAC Advantage DB link for opening ACCPAC Advantage View, we use session for initializing DB link instance I.e., object.

New Stuff: SAU Plugin error while installing Sage 300 ERP

In this scenario we often create a new session which needs multiple parameters and may cause later in the form of an Error. To neglect error related to Session or DB link, we will use existing session of sage 300c.

Following are the step to use Existing session of sage 300c.

Step 1:

Include the Sage 300 ACCPAC Advantage in the project.

Step 2:

Declare the static ACCPAC Advantage session in repository class

(e.g., Repository_Sample) where we can access extended function of base(context).

Step 3:

Store the current session in an object of ACCPAC Advantage session I.e., Csession.

Csession = (ACCPAC.Advantage.Session)base.Session.GetSession();

Step 4:

As we know that Csession is declared as static and we can access this wherever we want, so use this session for opening DBlink in any class.

Csession = Repository_Sample<>.Csession;

Csession.Errors.Clear();

DBlink_object =Csession.OpenDBLink(DBLinkType.Company, DBLinkFlags.ReadWrite);

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partner is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged 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 competence.

Greytrix offers unique GUMU™ integrated solutions of  Sage 300 with Sage CRM, Salesforce.com (listed on Salesforce Appexchange), Dynamics 365 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 services for applications such as POS | WMS | Payroll | Shipping System | Business Intelligence | eCommerce for Sage 300 ERP and for Sage 300c development services we offer, upgrades of older codes and screens to new web screens, latest integrations using sData and web services  to Sage business partners, end users and Sage PSG worldwide. Greytrix offers 20+ addons for Sage 300 to enhance productivity such as GreyMatrixDocument AttachmentDocument NumberingAuto-Bank ReconciliationPurchase Approval SystemThree way PO matchingBill of Lading and VAT for Middle East. The GUMU™ integration for Dynamics 365 CRM – Sage ERP is listed on Microsoft Appsource with easy implementation package.

The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.

For more details on Sage 300 and Sage 300c Services, please contact us at accpac@greytrix.com, We will like to hear from you.

The post How to use Existing ACCPAC Advantage Session in C# appeared first on Sage 300 ERP – Tips, Tricks and Components.


Viewing all articles
Browse latest Browse all 1475

Trending Articles



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