x++

Are RecIds unique across Common tables in Dynamics AX 2012?

我的梦境 提交于 2019-11-29 12:08:05
Are the RecIds unique across Common tables in AX 2012? I read that this is version dependent, but I did not manage to find any information on this for AX 2012. If not, doesn't that break polymorphic design of the tables in AX, where all AX tables extend from Common ? And Common declares RecId ... When Microsoft Dynamics AX inserts records into SQL tables, a unique RecId is assigned to each record regardless of the company each record is associated with. The field is 64 bit long and unique per table. In Axapta 3.0 and below RecIds were unique per company account and 32 bit long. Thus a company

How to catch inner exception?

对着背影说爱祢 提交于 2019-11-29 09:59:10
Is there any possibility to catch inner exception: try { ttsbegin; info("step one"); try { info("step two"); throw Error("error"); } catch { info("catch step two"); } ttscommit; } catch { info("catch step one"); ttsabort; } I know I can get it commenting ttsbegin; / ttscommit, but I need to have a transaction. No, it is not possible (unless your exception is UpdateConflict or DuplicateKeyException ). The documentation states: If an exception is thrown inside a transaction, the transaction is automatically aborted (a ttsAbort operation occurs). This applies both for exceptions thrown manually

Are RecIds unique across Common tables in Dynamics AX 2012?

时间秒杀一切 提交于 2019-11-28 06:00:07
问题 Are the RecIds unique across Common tables in AX 2012? I read that this is version dependent, but I did not manage to find any information on this for AX 2012. If not, doesn't that break polymorphic design of the tables in AX, where all AX tables extend from Common ? And Common declares RecId ... 回答1: When Microsoft Dynamics AX inserts records into SQL tables, a unique RecId is assigned to each record regardless of the company each record is associated with. The field is 64 bit long and

How to catch inner exception?

放肆的年华 提交于 2019-11-28 03:33:33
问题 Is there any possibility to catch inner exception: try { ttsbegin; info("step one"); try { info("step two"); throw Error("error"); } catch { info("catch step two"); } ttscommit; } catch { info("catch step one"); ttsabort; } I know I can get it commenting ttsbegin; / ttscommit, but I need to have a transaction. 回答1: No, it is not possible (unless your exception is UpdateConflict or DuplicateKeyException ). The documentation states: If an exception is thrown inside a transaction, the

What handles dynamics:// URLs?

坚强是说给别人听的谎言 提交于 2019-11-27 15:18:30
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 dynamics://0/?ViewAlert_382576 dynamics://0/?ViewAlertRule_382576 However, if I add my own case,