Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Allow edit YES inside from Grid

(1) ShareShare
ReportReport
Posted on by 297
Hi, I am doing a development that involves an extension of a form. In that form, I have added a new field in the GRID. The problem is that I need to be able to edit that field manually from the form, but the grid has the value allow edit no, and I can't change it since it belongs to standard code. What could I do to be able to modify this field without having to modify the grid.
  • Layan Jwei Profile Picture
    Layan Jwei 7,278 Super User 2024 Season 2 on at
    Allow edit YES inside from Grid
    Hi Jesus,
     
    I think u followed my suggestion. Please don't forget to verify the answers that helped.
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Jesús García Profile Picture
    Jesús García 297 on at
    Allow edit YES inside from Grid
    Hello again, yes, we have rethought the development and have concluded to do the following:
    Grid Allow edit: true
    Datasource allow edit: true
    After this, we set all the fields to allow edit: false except the one we need to be true, so we keep the previous security and unblock the editing of the field we need.
  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    Allow edit YES inside from Grid
    Please read my answer again. This is what I am saying that you need to rethink on your business requirement.
     
    But still if business requirement needs this, then you can try on active method.
  • Jesús García Profile Picture
    Jesús García 297 on at
    Allow edit YES inside from Grid
    this is the form I am extending. In this case, the Grid and the datasource named WHSShipmentTable has the allow edit set to no. The initial idea is to add this field in the GRID and make it editable, but this configuration prevents me from doing it.
  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    Allow edit YES inside from Grid
    Are you sure you really want to add a field where the whole datasource made as allow edit to no? Because you can't change the datasource level properties if it is made from standard.
     
    But you can try from code in active method post next if you can make that field as allow edit yes.
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,619 Super User 2024 Season 2 on at
    Allow edit YES inside from Grid
    Hi @Jesus,
     
    Did try to add your field on the form that used to create/Edit the grid records? What is the Form name that you try to add a new field to it in order to help you?
     
     
    Thanks,
    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 10,964 Super User 2024 Season 2 on at
    Allow edit YES inside from Grid
    Hi,
     
    try this in your init method:
    FrmDataSource_ds.object(fieldNum(FrmDataSource,LineNum)).allowEdit(true);
    Best regards,
    Mohamed Amine MAHMOUDI
  • Verified answer
    Layan Jwei Profile Picture
    Layan Jwei 7,278 Super User 2024 Season 2 on at
    Allow edit YES inside from Grid
    Hi Jesus,

    if the whole grid is allow edit false, then are you sure it's the correct place to add your field?

    But in general:
    You should be able to change the allowEdit property of the grid via extensions. So you can change the datasource grid allow edit property to"true", then mark each single field as allow edit false except for your new field.

    or you can do it by code, i mean to mark the grid by code as allow edit true
    then mark each single field as allowEdit false, except for your new field;

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,791 Super User 2024 Season 2 on at
    Allow edit YES inside from Grid
    Hi Jesus,
     
    Can you describe the business requirements? What exact form do you want to extend and on what table do you have your custom field? When you provide some more information the volunteers on the forum might be able to think along with you about a viable approach.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans