axapta

axapta table insert / update

hi folks, and once again an axapta-question ( running on ax 2009 and sql-server 2008 r2 ): which is exactly the point of time, when inserted or updated datasets are stored in the regarding database? the aim is to call a stored procedure on the sql-server which transfers data from the ax-tables ( eg inventtable ) to another ( not genera...

Microsoft Dynamics AX 2009: Error executing code: Wrong argument types in variable assignment.

I have added an object member to InventMovement class and have created one parameter method for the same but following line of code is popping up above error: movement.parmProdJournalId(this.JournalId); JournalId parmProdJournalId(JournalId _prodJournalId = prodJournalId) { ; prodJournalId = _prodJournalId; return prodJour...

Is there a way to "embed" a form in another form

I have a form and I want to embed it in another form. I want to keep both form, but I would prefer to avoid duplicating the first form. Is there a way to "attach" a form to a tab page for example? ...

Teaching a COBOL developer Java/C#, OOP and modern day software development

Hi Stackoverflow I want to ask a question on behalf of my father, a now 30 year veteran in writing software. My father works today as a self-employed consulant for a single customer, maintaining a 20+ year old system written in COBOL -- but on borrowed time. The customer already have plans for changing to Microsoft Dynamics AX within t...

Running Dynamics AX Test Case in C#

Hi Everyone, I am hoping someone out there can give me help with this. So I need to be able to run Microsoft Dynamics AX test case in C#. Now I was going to try and do something like Process.Start("ax32.exe", "-StartupCmd=RunTestProject_<name of test>"); But I am hoping there might be a way to run it by importing some Dynamics AX DLL...

How to select for an empty datetime in Dynamics AX 2009

I have a table with a field name "StartDateTime" of type "DateTime". I want to do a query where those fields are null. In the table browser, I see these fields as " 00:00:00", where non-empty fields are like "2010-09-14 00:00:00". I tried using without success: this.query().dataSourceTable(tableNum(smmActivities)).addRange(field...

import and compile axapta 2009 xpo by commandline

hi there, i'm looking for a way to import an existing xpo-export via command-line into ax2009 aot and afterwards compile just this imported xpo. google tells me how to compile the whole aot by commandline, which takes quite long. so is there a way to import an xpo ( shared project ) and compile just these objects? what possibilities ar...

AX report: off by one error with joined datasources

We want to build a report in Microsoft Dynamics AX 2009 to show all employees that worked on a production order. Into the datasources for this report we drag-n-dropped the ProdTable (pt) which is inner joined by ProdID and DataAreaID to the ProdJournalRoute (pjr) which is inner joined by EmplID and DataAreaID to the EmplTable (et) where...

Controlling HTML from WebParts in Microsoft Dynamics AX

I have a website running in Microsoft SharePoint which uses menus and other data from Dynamics AX 4.0. I have a weblet in the website where I fetch a menu from Dynamics AX, which uses the WebMenuWebLet and WebVertMenuHTML classes to generate the HTML to be displayed on the page. I have now tried to strip everything from the weblet to rec...

Print Report in Microsoft Dynamics AX 2009 through X++

I am trying to print sales confirmation report on a button click which I have added on Sales Order Detail form in Microsoft Dynamics AX 2009. On click event of that button, I have written following code: void clicked() { Args args; ReportRun reportRun; SalesFormLetter salesFormLetter; PrintJo...

Images in AX forms

In Dynamics AX, we use a large number of images and icons for various purposes in our custom forms. We're currently having to individually install image/icon packs on every client machine in order for everything to work. Is there a way (or best practice) for handling images and icons in Dynamics so an install on every single client is ...

Dynamics Ax 2009, New Vendor Approval Workflow

We are trying to add an Approval Workflow for new Vendors created in Dynamics Ax. But I have no clue how to go about implementing this. I managed to create a workflow using this Workflow for Dummies Wizard But it seems that it only starts after the Vendor record is created, and we need it to prevent the record from being used before...

Microsoft AX 2009/Axapta, prompt before compile

Is there a way to have AX/Axapta, prompt before compiling? I have accidentally clicked compile for the entire app several times now, and since it takes 30-60 minutes, if I could add a prompt prior, it would be great. Thanks ...

mark specific dataset in filtered grid

i'm just struggling through the following situation - there's a datasource added to a grid in axapta 2009, filtered by a querybuildrange. i want to mark a specific dataset by x++ via datasource_DS.findrecord( specificRecord ) this works as intended, removing the filter, but not having the filter active! a workaround to remove the fi...