09.03.2020, 14:16 | #1 |
Участник
|
alirazazaidi: How to enabled document attached on processed records Dynamics 365 for finance and operations
Источник: https://www.tech.alirazazaidi.com/ho...nd-operations/
============== 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. / [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); } Источник: https://www.tech.alirazazaidi.com/ho...nd-operations/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|