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, ...
Suggested Answer

dialog form with no datasource

(2) ShareShare
ReportReport
Posted on by 1,965
Hi,

If i have a form of type dialog and no datasource

with radio button linked to an enum with 2 options

and another free text string control (not bound to a datasource) that gets enabled when a certain radio button is chosen

now i want this free text string control, when enabled to be lookup of a certain field in a certain table

how to do that?
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,844 Most Valuable Professional on at
    If the EDT has a reference to a table, a lookup gets created automatically. If it doesn't or you want a different lookup, override lookup() method and implement a lookup there.
  • .. Profile Picture
    1,965 on at
    Hi Martin,

    1. When you say have a reference to a table, do you mean this?
     
    2. it currently has no references, but even if it had, it will return all values in the table, so if i want to return based on a certain Id, i would still need to override lookup method, correct?
     
    I mean if the table is purchLine
    PurchId     MyField
    --
    1                x1
    1                x2
    1               x3
    2              xA
     
    then the lookup will return all of those 4 values, but if i want it to return based on the PurchId I'm on, then i will still need to override lookup, correct?
     
     
    3. In general, when we create EDTs, when do we have to fill table references node? and when we shouldn't? what's the benefit?
     
  • Minh.Nguyen Profile Picture
    19 on at
    Hi, 
    Just would like to help clarify the EDTs and table reference to have the auto lookup. Hope this help!
    1/ When creating the EDT (for example the string as below), we may add the Reference table into it as below).
    EDT creation
    Then you can add the Table References using the Related field.
    2/ From the Table, use this EDT with the field. Then you will have the auto lookup from this EDT to this custom table.
  • Martin Dráb Profile Picture
    237,844 Most Valuable Professional on at
    1. Yes
    2. It'll return records according to the relation. It typically means all records, but there may be a filter on the relation.
    If you want something else than what's defined by the relation, you want to override lookup() and implement your own lookup logic.
    3. Typically, if the EDT represents a primary ID of a table, it's beneficial to define a reference. It'll help with discoverability, the creation of table relations and lookups of unbound controls.
  • .. Profile Picture
    1,965 on at
    Hi Martin,
     
    So adding a table reference, is just like creating a relation with the table, but in this case no need to create relation, it's taken from EDT?

    also not sure what you mean by discoverability?


    And when you said filter on relation, you meant the enum filter right?
  • Martin Dráb Profile Picture
    237,844 Most Valuable Professional on at
    If you use the EDT in a table field, you should still create a table relation. In some cases, the relation gets created automatically when you drag the EDT to to the table (based on the reference on EDT).
     
    When you look at an EDT, you may discover that it's actually related to a table, which one and how. That's useful information in many cases.
     
    If you actually try to create a filter, you'll see that you can use other fields than just enums. But I'm not aware of any EDT that uses something else than an enum.

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans