19 March 2018

How to get the form control access using event handler in D365 or AX7 How to enable or disable the field in the form level in D365 or AX7

How to enable or disable the field in the form level in D365 or AX7

CustTable custTable = sender.cursor(); // args.getThis() as CustTable;
FormDataSource custTable_ds = sender.formRun().dataSource(tablestr(CustTable);
FormRun element = sender.formRun();
FormControl myNewControl = element.design(0).controlName("myControl");
myNewButton.enabled(false);

=====

CustTable custTable = sender.cursor(); // args.getThis() as CustTable;
FormDataSource custTable_ds = sender.formRun().dataSource(tablestr(CustTable);
FormRun element = sender.formRun();
custTable_ds.object(fieldNum(CustTable,CustGroup)).enabled(false);

5 comments:

  1. Recruitment Technology has for a long time fallen behind the developments in other professional industries such as accounting, legal, insurance etc. with a number of excellent technology tools and software products being developed in these areas. Recently though their has been a surge of development within recruitment technology with some truly fantastic products being developed to take us out of the dark ages of recruitment methodologies. But if recruiters don't embrace this development we will hinder our progress into the future. access card system singapore

    ReplyDelete
  2. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! https://accesscontrolsystemsingapore.wordpress.com/2022/01/21/advantages-of-having-an-access-control-system-in-your-workplace/

    ReplyDelete
  3. Thanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. access control system

    ReplyDelete
  4. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. door access system to buy

    ReplyDelete
  5. me requirement is to enable or disable form control field unbound based on check box value and I have used form control event handler_on modified , its working fine but when I open the form its showing control enable , anyone share the code of form on activated event handler field disable enable based on checkbox

    ReplyDelete

Give me the commetns and solutions

Ledger Voucher creation Framework and x++ code to create ledger voucher

 Please click her for MS reference file Below is the out of the box example reference and code. SalesInvoiceJournalPostSubBill_Extension-...