Notifications
Announcements
No record found.
Hi All,
Below is my EventHandler for form control . imagesColors is another control name and 'uploadImageFile()' is it's method. imageFilePathName, imageContainer are global variables declared on standard form
1. How can I access uploadImageFile() method
2. How can I get those variable values from the form
Thanks.
Form methods you should be able to call using formrun object. If you are trying to access global variables defined on the form use COC instead of using event handler of the click button. Loo for section how to do COC on form control in the link below
More information about COC is present on the link below
docs.microsoft.com/.../method-wrapping-coc
Hi Avinash,
To access global variables, use the recommended method directly, CoC.
Please check these threads:
community.dynamics.com/.../757239
community.dynamics.com/.../table-buffer-not-showing-in-coc-on-initvalue-method
Yeah, just use CoC as suggested and you can access anything of a form with element.something, just don't expect intellisense to work as it does not.
Don't overcomplicate yourself :)
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 565 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader