In an IContentPluginBase plugin, implement the SetContent method to change the content of the plugin’s tab. You may create a user control inline as seen below, but you can also create a separate User Control (WPF) control and pass that to the control.Content property instead. //summary // The SetContent method to set the content //summary public […]
Developers Unipedia
- API
- API
- User defined fields
- User defined tables
- Saving a Session
- Posting an Invoice
- Post Invoice and get PDF
- Localization
- Attach physical voucher to entities
- Server-Login User
- How to find C# Property from Uniconta Label
- Minimize network traffic and optimize speed
Saving a Session
November 27th, 2018 in API, Developers Unipedia, PluginsYou can save a Session in Uniconta. You might want to do this, if you wish to keep a user’s Session, so they do not have to log in again. In the code beneath, two methods are showed, SaveSession and GetSession. SaveSession simply saves a Session at a given path as a byte[]. GetSession returns […]
Refreshing UI with plugins
October 2nd, 2018 in API, Developers Unipedia, PluginsThere are two different ways to refresh the UI from plugins, depending on the plugin type you are developing. The way to refresh in IContentPluginBase is the same as IPluginBase. Refreshing with IPluginBase IPluginBase plugins have the following EventHandler: public event EventHandler OnExecute; The following code snippet can be called from the method Execute(…) to refresh the […]
Debug Uniconta Plugins
October 2nd, 2018 in API, Developers Unipedia, PluginsTo debug Uniconta Plugins on the WPF client, you must download the ClickOnce Installer here. After downloading the ClickOnce installer, open up your Visual Studio project. From Visual Studio, right click your project and select the Properties menu from the dropdown. Go to the debug menu on the left hand site. Click the Start external […]
Global Script
July 19th, 2018 in Developers Unipedia, PluginsTo create a global script, go to Tools > Menus > User Plugin > Add Name – Name of the script Control – MainMenu (required to use MainMenu control) Class name – Class name of the script Then click on Add script. Below is an example of the script: Click on Save. As per the […]
User defined tables
July 16th, 2018 in API, Developers UnipediaYou can programmatically create and insert user defined tables into Uniconta. First, define a header using the TableHeaderClient class which defines information such as menu position, name and more. Table fields can be added using the TableField class which holds information such as name and type. A good way to create TableFields is to use a […]
User defined fields
June 26th, 2018 in API, Developers UnipediaSetting up You can create user defined fields in the Tools/User defined fields menu. Choose which table you would like to add a new field to, e.g. ‘Inventory’, ‘Sales orders’ etc. The two most important fields to set are ‘Name’ and ‘Type’. ‘Name’ being the […]
How to add user parameter in plugin menu
June 11th, 2018 in Developers Unipedia, PluginsIf you like to code according to different parameters in your PageEventsBase plugin, where param1 will do task1, and param2 will do task2 then while creating menu, add an argument UserParm Inside Plugin, code can be written like this: public override void SetUserParm(string UserParm) { /*example code to handle UserParm provided in menu*/ if (string.IsNullOrEmpty(UserParm)) return; […]
How to add filter criteria in Plugin
June 5th, 2018 in Developers Unipedia, PluginsTo apply filters like these using Plugin public override IEnumerable<PropValuePair> SearchFilter(IEnumerable<PropValuePair> appliedFilters) { /*example code to add own filter conditions*/ var lstFilters = new List<PropValuePair>(); var actFilter = PropValuePair.GenereteWhereElements(“Employee”, typeof(string), “ed”); if (appliedFilters != null) { lstFilters.AddRange(appliedFilters); lstFilters.Add(actFilter); } else lstFilters = new List<PropValuePair> { actFilter }; return lstFilters; } How to add user […]
Develop a PageEventBase Plugin
April 11th, 2018 in Developers Unipedia, PluginsPageEventBase plugin is a part of Uniconta Windows API. It can be found under Uniconta.WindowsAPI.PageEventBase.cs. For performing some work on inserting, updating, deleting, validating, on property change of a record on gridbase page, create a new plugin by extending PageEventBase.cs class and overriding virtual methods described in below code snippet. //Summary // The abstract class […]
Uniconta API
December 29th, 2017 in API, Developers UnipediaUniconta API is a complete API to interact with the Uniconta ERP Server. Uniconta API is the only way to interact with the ERP server. There do not exist any other type of connection or interface. We uses the Uniconta API for all our work on Uniconta our self. The Uniconta Windows and Uniconta Silverlight […]
Event Handling
December 19th, 2017 in Developers Unipedia, PluginsYou can handle following events from user plugin RefreshGrid SaveGrid public enum PluginEvent { RefreshGrid, SaveGrid } public class PluginEventArgs : EventArgs { public PluginEvent EventType { get; set; } } To execute the event, first instantiate PluginEventArgs and pass the EventType according to your requirement. PluginEventArgs arg = new PluginEventArgs(); arg.EventType = PluginEvent.RefreshGrid; OnExecute(null, arg);