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 assign selected item from combobox into grid in ax?

(0) ShareShare
ReportReport
Posted on by

I have created one combobox with A,B,C values when i select particular values that selected value should be assign to grid .my problem is how to assign selected value into grid.

*This post is locked for comments

I have the same question (0)
  • Hariharans87 Profile Picture
    3 on at

    I could not understand that what you mean of assign selected value into grid?

    Are you talking about filtering the grid?

  • Community Member Profile Picture
    on at

    while select * from Temptable

    where temptable.num==1000

    {

    --------------------//How to write code to assign values into grid

    //select all temptable values where num ==1000  and assign into grid.

    }

  • Hariharans87 Profile Picture
    3 on at

    Don't use select statement for binding values to the grid. It is not the best practice.

    Add the table as form datasource and drag that datasource fields in to grid, create range and assign value to range by using x++ code.

    Please refer to this link

    dynamics-ax-live.blogspot.in/.../how-to-filter-records-in-form-by-code.html

    Instead of using combo box and adding filter by using x++, the user can use default grid filter option by press ctrl+g shortcut. I am not sure that it is ok for you.

  • UmesH@ Profile Picture
    810 on at

    Create Display Method in table and Call in StringEdit Control in Grid.

    Display str StudentName()
    {
        A_Student _Student;
        ;
        select Student_Name from _Student where _Student.Student_ID== this.Mark_Student;
        return _Student.Student_Name;
    }
    
    //fill stringedit by changing dropdown
    //set this method in sub table method


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