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 :
Dynamics 365 Community / Forums / Finance forum / How to call unbound co...
Finance forum

How to call unbound control in clicked method in D365

(0) ShareShare
ReportReport
Posted on by 30

how to assaign unbound control value in clicked method in d365.

thanks..

I have the same question (0)
  • Suggested answer
    startax Profile Picture
    1,845 on at

    Hi Ramesh,

    In property of unbound control Autodeclaration = Yes. Than you can assign value.

  • WillWU Profile Picture
    22,361 on at

    Hi Ramesh,

     

    Then right-clicked the Onclick events and copy event handler method, paste the method in your own class.

    pastedimage1569231681591v1.png

    After that  you can assign the contol value in the method.

    You can refer to the following code,

        [FormControlEventHandler(formControlStr(Form1, FormButtonControl1), FormControlEventType::Clicked)]

        public static void FormButtonControl1_OnClicked(FormControl sender, FormControlEventArgs e)

        {

            FormRun element = sender.formRun();

            FormStringControl EditField = element.design(0).controlName("FormStringControl1");

            EditField.text("Test");

        }

    pastedimage1569231723448v2.png

    Best regards,

    Will

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans