x++

gotFocus and enter methods on Form field not being called

假如想象 提交于 2019-12-18 05:58:11
问题 I have some fields in my Sales Order Form (SalesTable) that need to be disabled if another field is set to a specific value. To do this I overrode the enter and the gotFocus methods on the form field (I did both to test it out). The code compiles and doesn't have any issues. My issue is that neither of these overridden methods are called when I click on a field in the appropriate grid column. What would cause the enter and the gotFocus methods to not be called on a grid field? 回答1: Do not use

What handles dynamics:// URLs?

半世苍凉 提交于 2019-12-17 13:07:14
问题 I'm trying to create my own custom drilldown functionality, where a URL dynamics://0?myfunction_123456 will launch my own code. In C\SysStartupCmd\construct , this base code: case 'viewalert': sysStartupCmd = new SysStartUpCmdViewAlert(s,parm); break; case 'drilldown': sysStartupCmd = new SysStartUpCmdDrillDown(s,parm); break; case 'viewalertrule': sysStartupCmd = new SysStartUpCmdViewAlertRule(s,parm); break; I've tested and these all get fired with these URLs: dynamics://0/?DrillDown_382576

What handles dynamics:// URLs?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 13:06:33
问题 I'm trying to create my own custom drilldown functionality, where a URL dynamics://0?myfunction_123456 will launch my own code. In C\SysStartupCmd\construct , this base code: case 'viewalert': sysStartupCmd = new SysStartUpCmdViewAlert(s,parm); break; case 'drilldown': sysStartupCmd = new SysStartUpCmdDrillDown(s,parm); break; case 'viewalertrule': sysStartupCmd = new SysStartUpCmdViewAlertRule(s,parm); break; I've tested and these all get fired with these URLs: dynamics://0/?DrillDown_382576

How to read text files transfered as binary

喜你入骨 提交于 2019-12-13 21:44:13
问题 My code copies files from ftp (using text transfer mode) to local disk and then trys to process them. All files contain only text and values are seperated using new line. Sometimes files are moved to this ftp using binary transfer mode and looks like this will mess up line-ends. Using hex editor, I compared line ends depending the transfer mode used to send files to ftp: using text mode: file endings are 0D 0A using binary mode: file endings are 0D 0D 0A Is it possible to modify my code so it

How to Update/Insert/Delete CrossCompany

南楼画角 提交于 2019-12-13 19:13:14
问题 is possible to make insert, update or delete crossCompany in axapta? i am trying to do that, debugging in my query i have this: select forUpdate crossCompany tlRemoteLocationInfo where tlRemoteLocationInfo.RemoteLocationId == "someId"; if (tlRemoteLocationInfo.RecId) { ttsBegin; changeCompany(tlRemoteLocationInfo.dataAreaId) //then i make mi update to fields and then i make this: tlRemoteLocationInfo.update(); ttsCommit; } i have a try catch, and debugging, fails to update in the method

Refresh Issue on the form when the dialog closes

孤者浪人 提交于 2019-12-13 18:17:43
问题 I have a form(for which the datasource is Table A ) from which i am calling a dialog and i enter few parameters and click on Ok. The process fills up data in Table A . Once i close the dialog, it does fill up the table and does not show in form , i will have to do a refresh the form(pressing F5 ) . how is this possible via Code 回答1: I've blogged about this, so here's also some insight on how to refresh a form's DataSource: http://devexpp.blogspot.com.br/2012/02/refresh-datasource-and-retain

How to post document date and document number in general journal

别来无恙 提交于 2019-12-13 06:57:50
问题 i'm wondering if anyone can help me figure out how to programatically set the document number and date in the general journal trans, under the tab invoice. I'm trying to post to the general journal in ax 2012 with x++. I currently have this code that works but there is no method under the ledgerjournal trans to set the document no or date. infact alot of the setters are missing and only has linenum account type, journal num etc etc. How can i set these fields? below i have some code static

Find / search the AOT for an exact match

巧了我就是萌 提交于 2019-12-13 04:42:08
问题 Is it possible to find (search) in Dynamics AX 2009 for an exact match? For example, when I am searching in the AOT for "AddressRelationship", I don't want to see DirPartyAddressRelationship in the results. 回答1: Okay, it took me a while, but I have figured this out, it Is possible . Adding a breakpoint to the find form shows that it uses a class called SysUtilScanSource to find your string within the AX source code. In SysUtilScanSource.do() the method match is used to find a match against

Hiding/showing report field based on values

十年热恋 提交于 2019-12-13 03:58:58
问题 this is a really simple query but I have a total mental block with it. I am modifying the Customer Account Statement report, and we have two Invoice ID Fields, I want to hide one if there is a value in the other. For example; If(custTrans.InvoiceID_1 != '') { return CustTrans.InvoiceID_1 } else return InvoiceID_2; I understand this would be carried out in Fetch Method, but I believe this is not the case, I have tried several ways of carrying out this change but have had no luck, any

Exporting labels to Excel from a project

醉酒当歌 提交于 2019-12-13 02:17:28
问题 I have a small problem - I have to list all the labels of several large shared projects, so labels that are missing a translation are identified updated. Now what I'm looking is something like Palle Agermark's label export job (http://www.agermark.com/2011/10/export-and-import-labels-for.html) but one that goes through one or more projects and pulls all the label IDs (regardless of label series) and values for three languages to Excel. Can this be done, any pointers? :) 回答1: This expands the