Publications

Generating barcode for SSRS report

Variant 1, based on parameters: Variant 2, specific barcode type: In SSRS report use relevant font at the control which should display barcode for case above BC C128 should be used. If you experience problems with barcode appearence in PDF…

rror.hpp: Wrong type of FIND argument. ctively.

If you experiencing unusual AX behaviour and faced with following errors: Cannot edit a record in User information. rror.hpp: Wrong type of FIND argument. ctively. Deleting all *.auc and *.kti files at following location…

Simple SSRS RPD based report, AX classes

Data provider: Controller: Contract: Output menu item: ObjectType: Class Object: ReturnFormController LinkedPermissionType: SSRSReport LinkedPermissionObject: ReturnForm LinkedPermissionObjectChild: Report (design)

How to lock/disable whole AX form

protected void lockFormScreen(boolean _lock = true) { FormControl formControl; int controlCount, a, id; boolean toState = !_lock; if (formRun) { if (_lock) { formControlState = new Map(Types::Integer, Types::Enum); } controlCount =…

Getting access to private projects

Recently while moving a model from one environment to the other i encountered an issue with private projects. There were private projects in this model, even though there shouldn't have been any. So the task was to delete those. There are…

SysExtensionSerializerFormRunHelper

Out of the box table extension framework can not get child table from form if it is delayed joined. SysExtensionSerializerFormRunHelper is a class helper which should resolve this issue. It's implementation on form is quite easy: 1. Add…

Clean SQL Server cache and buffer

MSDN DROPCLEANBUFFERS: Use DBCC DROPCLEANBUFFERS to test queries with a cold buffer cache without shutting down and restarting the server. To drop clean buffers from the buffer pool, first use CHECKPOINT to produce a cold buffer cache.…

How to calculate charge (MarkupTrans) amount from code

static void calculateMarkupTrans(Args _args) { SalesTable salesTable = SalesTable::find('000854'); SalesLine salesLine; AmountCur markupAmount; MarkupTrans markupTrans; CurrencyExchangeHelper curCurrencyExchangeHelper; while select…

Example of lookupReference

public Common lookupReference(FormReferenceControl _formReferenceControl) { SysReferenceTableLookup sysRefTableLookup; Query lookupQuery = new Query(); QueryBuildDataSource lookupQueryDataSource; sysRefTableLookup =…

Pre/Post event handlers

For table methods all event handlers should be placed in TableName EventHandler class _args.getArg('_argumentName') _args.getThis() _args.setArg() _args.setReturnValue()

Table synchronization errors

You can try following method to solve almost any table synchronization error: - At SQL server rename table and append 2 at the name. Clustered index of table should also be renamed (table name -> Indexes node -> name (clustered) ). -…

Combine several filter object queries into one project

For example you want to filter objects which exists on several layers. We need to temporary modify SysProjectFilterRunBase class: Add new variable to class declaration: Modify main method. Modify statement of following if conditions: To…

Using Trace Parser

Installation & Configuration - Install Trace Parser from AX instalations: - Add your user to Performance Log Users user group. Otherwise you should get following error message starting Tracing cockpit in AX Tools: "To capture traces the AX…

How to get product related retail promotions/discounts

But method \Classes\RetailPricingDataManager\getPeriodicDiscounts should be slightly changed. We need to change To: In other words just add CurrencyCode to selected fields. Otherwise it will fail in method…

Search

About

DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics 365 FO.

Authors are allowed to set their own "buy me a coffee" link.
Join us.

Blog Tags