axapta

Microsoft Dynamics AX 2009 development [closed]

对着背影说爱祢 提交于 2019-12-03 11:53:20
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm new to Microsoft Dynamics AX development and I'd like to learn basic things about it. I have a virtual machine with the '09

Obtain Network Credentials from Current User in Windows Authentication Application

余生颓废 提交于 2019-12-03 11:39:59
问题 I was wondering whether it was possible to obtain the current user object and get their credentials so that I can pass them along to a NetworkCredential object which I am using to connect to my AX .NET Business Connector. As, at the moment I'm having to specify it connect as a specific user which I set when I instantiate a NetworkCredential object: private NetworkCredential nc = new NetworkCredential("myUser", "myPassword", "myDomain"); I was hoping to do something like: private

“this” vs. “element” keyword in X++

杀马特。学长 韩版系。学妹 提交于 2019-12-03 10:54:34
When writing code in X++ you sometimes need to reference this.functionYouWant() and sometimes it is element.FunctionYouWant() . Sometimes both are in scope. I often try one and if the function I want isn't there I try the other. Is there a rule that explains when to use this and when to use element ? Allan Iversen this can be used in any objects to reference the current object and member methods. MorphX forms and reports are composite objects. In forms the collection of objects is contained within a FormRun object. You can reference members in the outer FormRun object by using the element

How to do unit testing in Microsoft Dynamics AX 2012 in a real world project

别来无恙 提交于 2019-12-03 08:01:35
Dynamics AX 2012 comes with unit testing support. To have meaningful tests some test data needs to be provided (stored in tables in the database). To get a reproducable outcome of the unit tests we need to have the same data stored in the tables every time the tests are run. Now the question is, how can we accomplish this? I learned that there is the possibility of setting the isolation level for the TestSuite to SysTestSuiteCompanyIsolateClass . This will create an empty company and delete the company after the tests have been run. In the setup() method I can fill my testdata into the tables

Microsoft Dynamics AX 2009 development [closed]

一曲冷凌霜 提交于 2019-12-03 02:13:53
I'm new to Microsoft Dynamics AX development and I'd like to learn basic things about it. I have a virtual machine with the '09 version installed. Is it essential to get familiarized with the language (X++) from the beginning? What should I start with (tutorials, videos, overviews, guided tours) and where do I find it? I'd like links, tips, or anything that may help! Is it easy to find step by step tutorials? Any links for that? Because SO does not let me to post many links I have posted it to Axaptapedia Download the "Inside Dynamics Ax 4" free ebook from microsoft and read then read What's

D365 FO Simple Query for expiring contract

微笑、不失礼 提交于 2019-12-02 09:49:00
I need to create simple query which will show all contracts which will expire in next 3 months. I know how to do that with SQL, but how to do that in Visual Studio when I create query. I added data source Contract table. Added range. Column where is date about expiring is VALIDTO. So, something to write up in value, or how to do that ? Solved with two ranges on VALIDTO column. Used (MonthRange(0,3)) with (Day(0)) formulas. 来源: https://stackoverflow.com/questions/56854909/d365-fo-simple-query-for-expiring-contract

Update records that can be retrieved by multiple joins in x++

大兔子大兔子 提交于 2019-12-02 08:53:10
So I have a complete x++ script that aims to update records based on the retrieved result set made with select query with multiple joins and using crosscompany As I have been told, it is not a good idea to update records when there is crosscompany. Can you give expert advice on how to do it the best practice way considering my current script. here is the script static void UpdateSample(Args _args) { InventTable a; InventTableModule b; EcoResProduct c; EcoResProductCategory d; EcoResCategory e; EcoResCategoryHierarchy f; int i = 0; while select crossCompany a exists join b where a.ItemId == b

Axapta/DynamicsAx: UTC datetime conversion

ⅰ亾dé卋堺 提交于 2019-12-02 08:18:01
问题 We are trying to interpret the data stored in Axapata's TIMEZONESRULESDATA table. Particularly, we'd like to figure out how it stores DST begin/end times. So far, my guess is: TZENUM: foreign key referencing TIMEZONESLIST (time zone name and identifier) YEAR: 0 if rule is valid indefinitely or a year where the timezone rule is in effect BIAS: offset to UTC time in minutes DBIAS: offset of DST (added to BIAS to get total offset from UTC) Now for the part I don't understand: DYEAR,DMONTH

Cannot Install Dynamics ax 2012 - error OpenDatabase

不羁岁月 提交于 2019-12-02 07:42:27
问题 I'm try to install Dynamics AX 2012, but I got this error: Do you have any idea how can I solve this issue? Thanks 回答1: Do you have a bootleg installer or something? It looks like you're not even to the install wizard yet, but you're at the "launcher" style screen. This shouldn't be necessary, but just in case, re-download the install, make sure to unblock it if needed (Right click, properties, unblock), and retry it on a few different machines (your laptop?) to see if you get past the error.

Displaying barcode in SSRS report

孤街浪徒 提交于 2019-12-02 04:09:47
问题 I am trying to display the barcode in the SSRS report. I have created a field in the report for barcode in the visual studio and changed the font type to BC C39 3 to 1 Wide format. The corresponding text that I have used to display is "hellobarcode". Whenever I generate the report, it is not displaying the barcode but the text only. Can anyone help please? 回答1: I figured out the problem. When a particular field in the report is an hyperlink to other report (for drilldown purpose), it will get