axapta

How can I identify an Axapta class Name from the class ID?

前提是你 提交于 2019-12-10 16:44:08
问题 Please can someone help me make sense of the Batch madness? I'm trying to debug an Axapta 3.0 implementation that has about 50 Batch Jobs. Most of the batched classes do not implement the description() method, so when you look at the Batch List form (Basic>>Inquiries>>Batch list) the description field is blank. You can see the Batch Group and the Start Time , etc. but you can't tell which class is actually being called. The Batch table contains a hidden field called ClassNum which identifies

Ax 2012 tts error

╄→гoц情女王★ 提交于 2019-12-10 15:10:34
问题 HI i am facing an error while updating a record in the invent table. I am using the following sample code. static void Job4(Args _args) { CsInvBOMSplitQtyCalcHelper bomCalc; Qty qty; InventTable inventTable; InventTable updateInventTable; BOM bom; boolean result; BOMId bomId; BOMVersion bomVersion; ItemId item = "1000M-3C-Pcs"; select firstOnly * from bomversion where bomversion.Active == true && bomversion.ItemId == item && csIsLengthItem(item) == false; if (0 != bomVersion.RecId) { select *

Hide form tabs for specific user groups

只愿长相守 提交于 2019-12-10 14:39:26
问题 There is requirement to hide certain tabs for certain user groups on a form. Thing is, hiding all the fields in the tab does not seem to work. Any ideas are appreciated. Working with AX 2009. 回答1: In case anyone needed an answer to this with visuals: In AX you can assign a security key to a tab via the properties sheet: Then you can either make use of existing security keys or create your own in order to control user visibility by assigning only the users you want to see the tab to have

Finding the Total Available and Available physical for an Item/Warehouse

不问归期 提交于 2019-12-10 13:49:18
问题 I have a method for a display field which does the following; return InventSum::find(_salesLine.ItemId, InventDim::_salesLine.InventDimId).AvailPhysical(); This gives me the on-hand Available Physical for the line site/warehouse/location. I need to see the total available for just the site/warehouse. I think I need to search inventDim by Item/Warehouse to get my inventdimid, but I cannot find the method so I am suspicious that this is incorrect. Can anyone help? 回答1: My working solution...

Dynamics AX 2009 / BizTalk Server 2013 Compatibility

和自甴很熟 提交于 2019-12-10 11:34:02
问题 Is BizTalk Server 2013 compatible with the Dynamics AX 2009 AIF BizTalk Adapter? I've searched but can't find any information to say either way. I found that BizTalk Server 2010 is compatible with AX2009 SP1 RU7: http://blogs.msdn.com/b/emeadaxsupport/archive/2011/09/29/microsoft-biztalk-server-2010-passes-compatibility-testing-with-microsoft-dynamics-ax-2009-sp1.aspx (Apologies if this is not the correct site for this question, as it's not directly programming related; however I couldn't

Lookup method bug with SysTableLookup?

為{幸葍}努か 提交于 2019-12-10 11:13:54
问题 This is code that should work with any base system added to Tables\ProdBOM. Somehow the query is stripping out data from fields. static void lookupItemIdBOMSubset(FormStringControl _ctrl, ProdId _prodId) { SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(ProdBOM), _ctrl); Query query = new Query(); QueryBuildDataSource qbds = query.addDataSource(tableNum(ProdBOM)); ; qbds.addRange(fieldNum(ProdBOM, ProdId)).value(queryvalue(_prodId)); qbds.addSortField(fieldNum(ProdBOM,

Images in AX forms

半腔热情 提交于 2019-12-10 10:48:36
问题 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 not necessary? Ideally, I'd install all images and icons in one place on the server and reference everything from there, but I'm open to any suggestions

Axapta: Convert utcDateTime to date

≯℡__Kan透↙ 提交于 2019-12-10 10:43:40
问题 What is the best way to convert a utcDateTime value to a date type so I can use the global datetime functions on it? int timeDiff; date _now = systemdateget(); ; select firstOnly myUTCDateTime from _myTable timeDiff = Global::yearDiff(_now, _myTable.myUTCDateTime); info(strfmt('%1', timeDiff); Thanks 回答1: The DateTimeUtil Class has methods for dealing with utcdatetime variables. In your case you would use DateTimeUtil::date . timeDiff = Global::yearDiff(_now, DateTimeUtil::date(_myTable

Make order by with Query in AOT

 ̄綄美尐妖づ 提交于 2019-12-10 10:34:23
问题 I have made a query in AOT. My goal is to print information using Group by "CustGroup" and Order by "count(RecId)" desc of CustTable table. The group by works properly, but the order by does not. I can not understand why... This is what my query looks like: This is code I use: Static void Query(Args _args) { QueryRun qr; CustTable myCustTable; ; qr = new QueryRun(queryStr(MyQuery)); while(qr.next()) { myCustTable = qr.get(tableNum(CustTable)); info(strFmt("Group %1 Num %2", myCustTable

Axapta Dialog Validation

天大地大妈咪最大 提交于 2019-12-09 19:08:22
问题 I've found several posts and articles around the net talking about validating form fields in dialogs, but none of the examples I've found seem to work properly. Can someone post a complete, concise example of x++ code that generates a dialog containing a single text field, performs simple validation (if text = "abc") on it, and either closes the window (returning the field value) if validation passes or generates an Infolog warning without closing the dialog if validation fails. For those of