web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Allow edit field in extension of active method

(1) ShareShare
ReportReport
Posted on by 92
Hello
 
I have a following requirement:
 
 
This field needs to be editable always.
 
As it is now, it is editable only if cust trans is open (like other fields from cust trans datasource as well):
 
What I tried is:
 
 
But this doesn't work.
 
Any ideas?
 
Thanks in advance
Categories:
I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    300,081 Super User 2025 Season 2 on at
    Allow edit field in extension of active method
    Hi devgirlX,
     
    Have you used the debugger to find out if your coding is triggered or maybe overwritten with other logic?
    If you are testing in your development environment, ensure you did build the complete model, not only the project/solution and perform a full database sync.
  • Sohaib Cheema Profile Picture
    49,103 User Group Leader on at
    Allow edit field in extension of active method
    Hi,
     
    Your DataSource remains as CustTramns_DS.AllowEdit(false) because of base method (else case after if)
     
    You may want to to make that allowEdit(true) in your custom code.
     
    Look at the else case in the standard form, that is making the datasource non-editable.
     
     
     
    You must mention following line, after the call of base method (in your extension)
    custTrans_ds.allowEdit(true);
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 724 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 580 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 554

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans