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

如何启用附加在Dynamics 365财务和运营已处理记录中的文档/How to enabled document attached on processed records Dynamics 365 for finance and operations

网络文摘 alirazazaidi 198浏览 0评论
In many cases, document attachment disabled on processed records. Usually this happened with respect to business requirements. For example when Purchased order invoiced and settled in ledger, attachment add, edit and delete can be disabled. Only existing attachment can be view on these documents.But some cases we have to forcefully enabled document attachment on these processed records. I used following code snippet to enable the document attachment.
/ <param name="args"></param>
    [PostHandlerFor(formStr(DocuView), formMethodStr(DocuView, setEnabled))]
    public static void DocuView_Post_setEnabled(XppPrePostArgs args)
    {
        FormRun formRun; 
			//= sender;
        formRun  =Args.getThis();
        formrun.design().controlName("ctrlAdd").enabled(true);
        FormDataSource      DocuRef_DS =formRun.dataSource("DocuRef");
        DocuRef_DS.allowEdit(true);
        DocuRef_DS.allowCreate(true);
        DocuRef_DS.allowDelete(true);

    }
发表我的评论
取消评论

表情

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

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