iVend Retail Add-on Execution Sequence

iVend Retail Add-on Execution Sequence

iVend Retail Add-on Execution Sequence

This knowledge base article explains the iVend Retail Add-on execution sequence in the iVend Management Console.

Overview

The iVend Retail Add-on contains business driven code and deployment is performed in the iVend Management Console. This article describes how an add-on executes if there are two or more add-ons registered in the iVend Management Console at the same time.

Code Snippet for Add-ons

This section shows two add-on code snippets and how they are executed as configured in the iVend Management Console.

1. Refer to the code snippet below for Add-on 1:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using CXS.Retail.Extensibility.Modules.Inventory;

using CXS.Retail.Extensibility;

using CXS.SubSystem.Inventory;

using System.Windows.Forms;

namespace CustomizeExistingScreenMANAGEMENT CONSOLE

{

class ProductView : ProductViewModuleBase

{

public override void OnBeforeSave(object sender, EventArgs<Product> args)

{

MessageBox.Show("Addon1 - On Before save");

}

}

}

 

2. Refer the code snippet below for Add-on 2:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using CXS.Retail.Extensibility.Modules.Inventory;

using CXS.Retail.Extensibility;

using CXS.SubSystem.Inventory;

using System.Windows.Forms;

namespace SampleAddOnForMANAGEMENT CONSOLEEvents

{

class ProductView : ProductViewModuleBase

{

/// <summary>

/// On Before Cancel on ProductAddEditView .

/// </summary>

/// <param name="sender"></param>

/// <param name="args"></param>

public override void OnBeforeCancel(object sender, EventArgs<CXS.SubSystem.Inventory.Product> args)

{

MessageBox.Show("On Before Cancel - ProductView");

}

/// <summary>

/// On After Cancel on ProductAddEditView .

/// </summary>

/// <param name="sender"></param>

/// <param name="args"></param>

public override void OnAfterCancel(object sender, EventArgs<Product> args)

{

MessageBox.Show("On After Cancel - ProductView");

}

public override void OnBeforeSave(object sender, EventArgs<Product> args)

{

MessageBox.Show("Addon2 - On Before save");

}

}

}

The screen images below, illustrate an example of a set of registered Add-ons in the iVend Management Console and how they are executed according to their sequence:

     

     





Reference

Refer to the CitiXsys Knowledge Portal’s Extensibility pages for further information on iVend Retail Add-ons and Extensibility.



    • Related Articles

    • iVend Retail Add-on Execution Sequence

      Introduction This knowledge base article explains the iVend Retail Add-on execution sequence in the iVend Management Console. Environment: iVend Version 6.5 Overview The iVend Retail Add-on contains business driven code and deployment is performed in ...
    • General Settings in SAP Business One

      Introduction The iVend Add-on helps in setting up some configurations required for integrating iVend with SAP Business One. The following sections of this document capture the functionality of the new screens created and new fields added to the SAP ...
    • iVend Retail Add-on Registration

      Introduction This knowledge base article assists developers to register an Add-on in the iVend Management Console once it is developed using the iVend Retail Extensibility Framework. Click here to learn more about creating, packaging, and deploying ...
    • iVend Retail 6.5 - Add-on Presentation

      Introduction iVend Add-on Framework is used for writing Custom Business Logic independently by a programmer. iVend Addon allows to extend business logic either in Management Console or at the Terminal POS.The addon framework allows deployment of ...
    • iVend Retail 6.6 - Add-on Presentation

      Introduction iVend Add-on Framework is used for writing Custom Business Logic independently by a programmer. iVend Addon allows to extend business logic either in Management Console or at the Terminal POS.The addon framework allows deployment of ...