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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Change value in table when action pane button is clicked on form extension

(0) ShareShare
ReportReport
Posted on by 2

pastedimage1682928689263v1.png  when this post button is clicked , form table has Enum (Yes No) , by default its no , its value should to yes when button is clicked

I have the same question (0)
  • GirishS Profile Picture
    27,833 Moderator on at

    Hi Sachin,

    You need to write onclciked event handler of the Post button - get the datasource and change that enum field to yes.

    Thanks,

    Girish S.

  • Sachin Mittal Profile Picture
    2 on at

    can it be achieved without event handler ?

  • GirishS Profile Picture
    27,833 Moderator on at

    You can write either COC or event handler for the post button clicked method.

    Thanks

    Girish S.

  • Sachin Mittal Profile Picture
    2 on at

    can you help with clicked method code please

  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    As a fresher in starting we have already provided code for previous threads. Please go ahead and write a code on your own then only you will have some hands on experience.

    Every time we won't provide code.

    You need to go ahead and started writing code on your own.

    Thanks,

    Girish S.

  • Sachin Mittal Profile Picture
    2 on at

    i understand this but i had already written but its not working that why i asked

    /// 
    /// Form Control Extension Method
    /// 
    [ExtensionOf(formControlStr(OAE1DistributorWorkerTarget , FormButtonGroupControl1))]
    final class OAE1DistributorWorkerTragetFormCtrlOAB_Extension
    {
        public void clicked()
        {
           
            next clicked();
            OAE1DistributorWorkerTarget OAE1DistributorWorkerTarget = this.dataSourceObject().cursor();
      
    
            OAE1DistributorWorkerTarget.OABPosted == NoYes::Yes;
           
            
    
        }
    
    }

    pastedimage1682929908954v1.png showing this

  • GirishS Profile Picture
    27,833 Moderator on at

    On line number 14 Its single = to only not double equal to.

    Thanks,

    Girish S.

  • Sachin Mittal Profile Picture
    2 on at

    why showing error on next , thats the issue

  • GirishS Profile Picture
    27,833 Moderator on at

    I am not sure with this error. If its take time you can go for onClicked event handler instead of COC.

    Thanks,

    Girish S.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    It seems to be custom control. Then I think calling next is not required. And in the 2nd line = should be given as you are assigning value.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans