最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

Dynamics 365财务和运营:网格方法扩展和网格字段映射 / Table method extension and grid field mapping Dynamics 365 for finance and operations

网络文摘 alirazazaidi 1043浏览 0评论
Hi all, here is small tip, I learned today, so document it   I need a custom method in table extension. And then this method need to call in field mapping inside Grid. Interesting it is amazing easy.   So like other extensions. You have to create a class add a attribute and make in static class show it will extension of certain table. And now create a method Suppose I need extension for PurchRFQScoring table  
[ExtensionOf(tableStr(PurchRFQScoring))] public static class PurchRFQScoring_Extension {   [SysClientCacheDataMethodAttribute(true)]  //This attribute will cache your display method. public static display Name ScoringName(PurchRFQScoring _this) { return PurchRFQScoringRFQCaseCriteria::find(_this.ScoringRFQCaseCriteria).name; }   }  
Now compile solution. And open the grid and from field mapping, set table In source. And in field you have to add method with class reference like  
PurchRFQScoring_Extension::ScoringName
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址