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

Notifications

Announcements

Community site session details

Community site session details

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

Enable button on a Form

(0) ShareShare
ReportReport
Posted on by 9,047 Super User 2025 Season 2
Hi All,
 
I want to enable a button on the form when all data is loaded to make sure all records are included. How can I achieve that?
I am working on Standard form and the button is created through extension on Form.
 
Regards,
Waed
I have the same question (0)
  • Mohit Rampal Profile Picture
    12,565 Moderator on at
    I haven't tried it but check if this article helps.
     
    https://axatoz.wordpress.com/2013/11/24/get-number-of-records-in-a-formdatasource/
  • GirishS Profile Picture
    27,829 Moderator on at
    Thats the question i am asking how you are confirming that all records are loaded?
    By default all the records will be loaded in the form unless there is any range filters.
     
    Thanks,
    Girish S.
  • Waed Ayyad Profile Picture
    9,047 Super User 2025 Season 2 on at
     
    Currently I can click button and the code will only apply to the loaded records.
     
    Regards,
    Waed
  • Waed Ayyad Profile Picture
    9,047 Super User 2025 Season 2 on at
    Hi Girish S.,
     
    What about  FormDatasource.allRowsLoaded() it check if the whole records are loaded or not. Can I use it by enable button on activated event handler of form.
     
    Regards Waed
  • GirishS Profile Picture
    27,829 Moderator on at
    Hi waed,
     
    System doenst know the whole record is loaded.
    You need to find out whether full record is loaded based on some condition and enable or disable the button on the active method of the datasource.
     
    Thanks,
    Girish S.
  • Mohit Rampal Profile Picture
    12,565 Moderator on at
    Hi Waed, Are you able to click button while data is loading on form? I think system will go in non responsive mode if we do that. If not able to click while data loading then you can enable it anywhere as per requirement, like on active method of datasource if you want to enable or disable button based on certain values in a record.

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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 325 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans