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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to get button value and DS value using CoC on button click

(0) ShareShare
ReportReport
Posted on by 632

Hello Friends,

I have added customized  button under button group in SalesTable form.

My requirement is  If user will click on customized  button that button (Customized button) should be disable and in sales table i have added one customize field that should be update.

To achieved that i am using CoC.

[ExtensionOf(formControlStr(SalesTable, ABC_CreateInvoice))]
final class SalesTable_ABC_Extension
{
    public void clicked()

    {
      
        next clicked();

    }

}
 

Here i am unable to get customized button value and form Salestable_ds value.

Please tell me how to get this on button click.

Thanks & Regards,

Rahul

I have the same question (0)
  • Blue Wang Profile Picture
    on at

    Hi Rahul.p,

    Have you tried to call logic from the modified method of the data source field?

  • Verified answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Getting a reference to the button should be trivial - simply use this variable.

    To get the data source, use element.SalesTable_ds. Nevertheless you probably need the table buffer (element.SalesTable) rather than the data source object.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans