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 :
Microsoft Dynamics AX (Archived)

How to Bind Table Columns Name in LookUp

(0) ShareShare
ReportReport
Posted on by 810

Hi Guys,

I want to know is there any property to bind table Columns in Lookup. lookup could be Custom or EDT through.I have to Know How to Bind Columns name in Lookup. like we know in List Page for Searching Value in Particular Columns we have to Select Column from Lookup and After Search Value like that.

i have to Create lookup from Single or Multiple Tables Columns Lookup.

Can any one know how to create this lookup from table columns name.

Thank You.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi

    Did you mean, you will select the column name somewhere, that column has to be the in the lookup?

  • UmesH@ Profile Picture
    810 on at

    try this code you will Understand what i want.

    static void TableFieldLookup1(Args _args)
    {
        tableName           tableName = 'TableName';
        SysModelElement     tables;
        SysModelElement     fields;
        DictField           dictField;
    
        while select tables
            where tables.ElementType            == UtilElementType::Table       &&
                  tables.Name                   == tableName
            join fields
                where fields.ElementType        == UtilElementType::TableField  &&
                      fields.ParentModelElement == tables.RecId
        {
            dictField = new DictField(tables.AxId, fields.AxId);
    
            info(strFmt("Field Name: '%1'; Field Label: '%2'; IsSystem: %3",
                            dictField.name(),
                            dictField.label(),
                            dictField.isSystem()));
        }
    }

    OUTPUT :

    Fields.JPG

    I want like this

    in my form.

    Fields.JPG

  • UmesH@ Profile Picture
    810 on at

    I got like this but i have to insert that DictField and DictLabel values in another table. i don't want to insert in other table. using

    sysTableLookup.addLookupfield(fieldnum(Here i want FiledName));

    or else any Property or Method if you know please guide me.

    can you please give me Some Information How can i do this.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans