Dynamics AX 2012 超链接实现方式Open Web Url
static void OpenWebUrl(Args _args){ Dialog dialog; DialogField field; dialog=new Dialog("My Dialog"); dialog.addText("Enter the web url you want to connect:"); field=dialog.addField(extendedTypeStr(Name)); if(dialog.run()){ infolog. urllookup(strfmt("htTP://%1", field.value())); } }
X++获取当前选择行记录 “= ProjTable_DS.cursor()”
void clicked() { ProjTable _projTable; super(); //获取当前记录 _projTable = ProjTable_DS.cursor(); if( _projTable.TEK_MosOpportunityID || _projTable.TEK_ProjMosUrl){ if(_projTable.TEK_ProjMosUrl){ infolog. urllookup(strfmt("%1", _projTable.TEK_ProjMosUrl)); } else{ infolog. urllookup(strfmt("https://XXX/lightning/n/My_Sales_MOS?AxSFD__id="+ "%1", _projTable.TEK_MosOpportunityID)); } }else{ error("未知网址!"); } }
留言评论
暂无留言