Blog2019-02-02T00:55:38-06:00

Convert Axapta Time in SQL

November 15th, 2010|Categories: Dynamics AX 4.x|

AX 4.0 stores time in the database using the seconds since midnight.  So in order to view the time (military format) we must divide.  Here is an example:SELECT TOP 20 StartTime AS [Seconds since midnight],       CAST(StartTime/60/60 AS VARCHAR(2)) + ':' [...]

Get the next unique file name

October 9th, 2010|Categories: Dynamics AX 4.x|

Sometimes you are saving a temporary file so you don't want to delete or overwrite anything that already exists in a directory...there is a nice function to find the next unique file name.fileNameTemp = Global::fileNameNext(fileOriginalsPath + fileName);

Rename items quickly

October 4th, 2010|Categories: Dynamics AX 4.x|

Here is a little script to rename items quickly.  Just provide a CSV file with old and new item number.  I found that making the CSV file was faster than making a job to intelligently rename items because I could [...]

Modifying tab order

September 30th, 2010|Categories: Dynamics AX 4.x|

In AX to change tab order normally you change the order of the controls in the form.  You can set the "Skip" property on a control to Yes and when the user tabs it will skip that control.  Certain forms [...]

Deleting all transactions in a company

September 7th, 2010|Categories: Dynamics AX 4.x|

Sometimes when creating a new playground for testing you need to delete all transactions in a company.  There is a nice utility included in AX for this purpose.  The SysDatabaseTransDelete class will delete all tables by checking the TableGroup property [...]

Reports being used

September 3rd, 2010|Categories: Dynamics AX 4.x|

I was asked recently which reports were being run by users so that some of the menus could be simplified.  This SQL will list users and the AX report name for every report that has been run by anyone.  It [...]

Offset voucher does not exist in account ____.

July 12th, 2010|Categories: Dynamics AX 4.x|

When posting a ledger journal you may receive:Whenever open accounts payable or receivable transactions are selected a corresponding record in SpecTrans is created, which just holds the ledger journal line record ID and the open transaction record ID.Open the ledger journalSelect the ledger [...]

Go to Top