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

Dynamics 365财务和运营使用扩展数据源过滤器 / Data source filter using extension Dynamics 365 for finance and operations

网络文摘 alirazazaidi 322浏览 0评论
Hi every one, Today I have very small tip. During customization we need to add filters at run time. Specially in the case of inquiry forms. But Now we have to work with extension. Extensions are much more powerful then over layering.   So first one thing to copy Datasource  OnQueryEXecuting event. And paste in Extension class. The sample code snippet is here.      
 [FormDataSourceEventHandler(formDataSourceStr(HcmDiscussion, HcmTopicRef), FormDataSourceEventType::QueryExecuting)] public static void HcmTopicRef_OnQueryExecuting(FormDataSource sender, FormDataSourceEventArgs e) { FormRun          HcmDiscussionForm = sender.formRun(); sender.query().dataSourceName(sender.name()).addRange(fieldnum(HcmTopicRef,     HeadingRefRecId)).value(queryValue(_heading.RecId)); }
发表我的评论
取消评论

表情

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

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