什么处理dynamics://URL? [英] What handles dynamics:// URLs?
问题描述
我正在尝试创建自己的自定义向下钻取功能,其中URL dynamics://0?myfunction_123456
将启动我自己的代码.
I'm trying to create my own custom drilldown functionality, where a URL dynamics://0?myfunction_123456
will launch my own code.
在C\SysStartupCmd\construct
中,此基本代码:
case 'viewalert':
sysStartupCmd = new SysStartUpCmdViewAlert(s,parm);
break;
case 'drilldown':
sysStartupCmd = new SysStartUpCmdDrillDown(s,parm);
break;
case 'viewalertrule':
sysStartupCmd = new SysStartUpCmdViewAlertRule(s,parm);
break;
我已经测试过,并且所有这些都被这些URL解雇了:
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, leaving all other code the same, I can't get the URL to fire:
case 'myFunction':
sysStartupCmd = new SysStartUpCmdDrillDown(s,parm);
break;
我在整个系统上进行了挖掘,无法弄清楚是什么原因导致dynamics://
URL仅在这三种情况下才会触发.是否有注册表项或其他内容?我发现C\EventDrillDownPoller
似乎在创建PipeServer来处理传入的内容?
I've dug all over the system and can't figure out what causes the dynamics://
URL to only fire for those three cases. Is there a registry entry or something? I've found C\EventDrillDownPoller
which appears to create a PipeServer to maybe handle what's incoming?
推荐答案
当然,每次键入stackoverflow问题时,我都会弄清楚自己的答案,但我认为这些信息确实有用.
Of course, I figure out my own answer every time I type up a stackoverflow question, but I think the information is really useful.
这个堆栈问题促使我发现了这一点 C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\AxHLink.exe %1
处理Dynamics://URL.
This stack question led me to find out that C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\AxHLink.exe %1
handles Dynamics:// URLs.
这导致我进入 Microsoft的社区论坛其他人也面临着与我相似的问题.
Which led me to Microsoft's community forums where somebody else was facing a similar problem as me.
因此解决方案将是:
- 使用C#或其他某种语言创建自定义URI处理程序,以与AX通信(并使其成为可点击的链接.
- Create custom a URI handler with C# or some other language to communicate to AX (Similar to this)
- Hi-jack one of the 3 handled existing cases with some custom X++ code to try and fork off of it. Perhaps by changing the drilldown target in the URL and handling that way, or appending some special characters to the string.
- Call
"c:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\Ax32.exe" -startupcmd=myfunction_myParams
and make that a clickable link.
这篇关于什么处理dynamics://URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!