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

Access unbound control in form datasource method CoC

(0) ShareShare
ReportReport
Posted on by 70

Hi ,

My requirement is to create a custom unbound control on a standard form and based on the lookup selection on this unbound control form grid should be filtered.

I have created a unbound control in the form extension. Now I am unable to get the value selected in the unbound control in the CoC of the executequery 
of the form datasource.

Can anyone help me on how to access the value of unbound control in the CoC of form datasource method

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Normally you can retrieve values by ControlName.valueStr().

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi praneethkumar.d365,

    If you set the property "Auto declaration" to yes for control, it should be accessible through the element keyword.

    element.MyControl.text(); //If it's string control

  • praneethkumar.d365 Profile Picture
    70 on at

    I was not seeing the intellisense on typing 'element.' But when I copy pasted it worked.

    Thanks !

  • Suggested answer
    Joris dG Profile Picture
    17,775 on at

    I personally prefer binding the control to an edit method if possible.

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 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans