Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Cant Edit a field on Form even if its "allow edit" every where

Posted on by Microsoft Employee

Hello Friends,

Here i m very confuse about a field on Table  I make it "Allow Edit" on table and From also, but still i am unable to edit it .

Anyone can plz suggest what step i am missing here or there is any other way to make it editable.

*This post is locked for comments

  • Verified answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Cant Edit a field on Form even if its "allow edit" every where

    Pasting code without context is not helpful.

    Does this mean you have found the root cause? I see entire datasource being locked for edit there, and also disabling fields individually too, which both could lock field editing.

    Kindly mark helpful answers next to each post to resolve the topic.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Cant Edit a field on Form even if its "allow edit" every where

    if (ACX_BidLine.RecId != 0 && ACX_BidLine.BidStatus == ACX_Status::Open)

       {

           btnActivate.enabled(false);

           Invitaiton.enabled(false);

           ACX_BidLine_ds.allowDelete(true);

           ACX_BidLine_ds.allowEdit(true);

           ACX_BidLine_ds.allowCreate(true);

           TimeEdit.allowEdit(true);

           HeaderTransporterBid_ToTime.allowEdit(true);

       }

       else

       {

           btnActivate.enabled(true);

           Invitaiton.enabled(true);

           ACX_BidLine_ds.allowDelete(false);

           ACX_BidLine_ds.allowEdit(false);

           ACX_BidLine_ds.allowCreate(false);

           TimeEdit.allowEdit(false);

           HeaderTransporterBid_ToTime.allowEdit(false);

       }

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Cant Edit a field on Form even if its "allow edit" every where

    Then access is being set likely from code, just read through the form's code to search for clues.

    Search for the field and the control name in the form, or if the form is using a class to manipulate the design, in there as well. See if/where does it call the enabled method.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Cant Edit a field on Form even if its "allow edit" every where

    sir,

    it has been set to AutoDeclaration from table property AllowEdit and AllowEditOnCreate are set to  yes.

    its not working

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Cant Edit a field on Form even if its "allow edit" every where

    Form field controls which are based on a display method cannot be edited.

    Fields which have AllowEditOnCreate property set within the table are also locked for subsequent editing once the record is saved.

    Also form control editing can be switched easily during runtime, either directly through the control (if it has AutoDeclaration set, that is usually a giveaway for form control manipulation), or by setting access to the field within the form datasource.

    To summarize, blocking editing can come from a large range of sources, if you provide a concrete example in Standard AX form (not your customization, since we do not have that), we could tell what is the specific case for that (or investigate it yourself based on the above details).

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans