Stories

09 September 2014

Checking the controls within a particular group of the Dynamics AX form

Sometimes it is necessary to check the controls within a particular group of the Dynamics AX form.

It's not hard to do:

getGroupControls(element.design().controlName(identifierStr(OverviewAmountGroup));

void getGroupControls(FormControl _formControl)
{
Counter j;
FormGroupControl groupControl;

if (_formControl is FormGroupControl)
{
groupControl = _formControl as FormGroupControl;

for (j = 1; j <= groupControl.controlCount(); j++)
{

29 August 2014

New relations don't appear in the standard Dynamics AX Query Designer (reports, advanced filters)

After creation of new relations in the tables, it happens that these new relations don't appear in the standard Query Designer (reports, advanced filters). Even recompiling and rebuilding cross-references don't help.

To solve this problem you can use this Job:

static void Neti_UpdateRelation(Args _args)

{

27 July 2014

How to calculate the date of Monday of the week if you know the week number of the year?

Solution:

static TransDate getMondayDateByWeek(Week _week)
{
TransDate transDate;
TransDate firstJanuary = mkDate(1, 1, year(systemDateGet()));
int firstDayofWeek = dayOfWk(firstJanuary);
int dayOfYear;
;
if (_week == 1)
return firstJanuary;

dayOfYear = 7 - firstDayofWeek + 1 + (7 * (_week - 1)) - 7;

transDate = dateStartYr(systemDateGet()) + dayOfYear;
return transDate;
}

24 June 2014

Tip - How to prevent removal for a particular dataSource in "EcoResProductPerCompanyLPInteraction" class and similar?

Question:

How to prevent removal for a particular dataSource in "EcoResProductPerCompanyLPInteraction" class and similar?

 

Answer:

fds = this.listPage (). activeRecord ("InventTable"). dataSource (); fds.allowDelete (! isArchive);

18 June 2014

VS doesn't show new fields in the temporary table of SSRS-report

Question: I added new fields in the temporary table of SSRS-report . After deployment I don't see them in VS, although when debugging I see them.

Solution:

Option 1.
1. Remove RDL file on Reporting server.
2. Restart the SSRS service.
3. Redeploy report.

Option 2.
Update dataset, save and close. Open rdl file.

19 February 2014

How to copy roles from one user to another in Dynamics AX2012

Today we would like to share How to copy roles from one user to another in Dynamics AX2012.

22 November 2013

Found an error in the mechanism of the master planning AX2012!

Version Dymanics AX 2012 R2, an application 6.2.1000.1219

Found an error in the mechanism of the master planning when working with applications for purchase. The essence of the problem: the calculation of the coating is not considered presence of established jackdaw consider stocks in the settings the master plan.

 

 

Look class ReqRequisitionsHelper, method initReqTransFromRequisitionLine (

18 January 2013

What if there was a simple?

So, come to this terrible hour - you had a simple ... "How is that? What do I do now? "- In horror reader will ask. "Do not be afraid! I'll save you all! "- I answer you with a proud expression on his face Captain. Now together we try to figure out what it is - a simple, try to classify it, and find ways to effectively and for the benefit of the public and private benefits of this simple to use.

17 January 2013

Security audit finds dev OUTSOURCED his JOB to China to goof off at work

A security audit of a US critical infrastructure company last year revealed that its star developer had outsourced his own job to a Chinese subcontractor and was spending all his work time playing around on the internet.

The firm's telecommunications supplier Verizon was called in after the company set up a basic VPN system with two-factor authentication so staff could work at home. The VPN traffic logs showed a regular series of logins to the company's main server from Shenyang, China, using the credentials of the firm's top programmer, "Bob".

15 January 2013

Selection of data using triggers OnFindRecord, OnNextRecord form in Navision

The purpose of this publication - to describe the ability to filter the data in a form on a "virtual" field using the methods and OnFindRecord OnNextRecord forms in the system Navision (Dynamics NAV). This question is partially lighted at many online resources, but complete decomposition "on the shelves" with concrete examples found in almost unreal. In preparation for publication were collected almost all the "bumps" of the filtration method.

Subscribe for blog updates

Get updated with our blog new articles via your email!


Subscribe now