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

Init method in Vend Table

(0) ShareShare
ReportReport
Posted on by

Hi ,

I am a beginner in AX, need some help on the below scenario.

I have customized the standard vendor form, i have added a new grid(Table A). My requirement is, when the vendor form is initialized, i need this grid to be populated with values from a different setup table(Table B).

Can anyone suggest how i can achieve this.

Thanks in advance!

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

    What do you mean by "vendor form is initialized"? Do you mean that every time the form is opened (=init method is executed), you want to populate your Table A? That would not make much sense in my opinion. You would be just copying data from the setup table every time the form is opened.

    Could you share some background and business requirement? Thanks!

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Adithya,

    If Table B has a relation with VendTable (or any other data source in the form), you can link Table B to the form data source, set the join source and join type and display the desired row(s).

    Is this what you are looking for?

  • Community Member Profile Picture
    on at

    Hi,

    Thanks for your reply.

    The requirement is, i have a setup table (Table B) in a different form which has some records.

    These records must be populated in the grid(Table A) which is present in VendorTable form.

    So, whenever i click on any Vendor from the All vendors page, this grid should get populated with values from Table B.

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Why can't you show table B directly in the grid?

    I don't see any reason why you would want to duplicate the data. Of course I'm basing my comment only on the information that you have shared.

  • Community Member Profile Picture
    on at

    Hi, Table B has a YesNo field. Only records with this field as YES should be populated in the grid.

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    You can filter the grid (or actually the data source that you use in the grid) in your code to show only those records.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Adithya,

    How are VendTable and Table B linked?

    You can set a range on tableB init method to show only records where this field has a value "Yes".

  • André Arnaud de Calavon Profile Picture
    301,231 Super User 2025 Season 2 on at

    Hi Adithya,

    It is still a bit vague to me. Just having a grid with data from a setup table is not a business requirement, but probably a technical attempt to solve a customers requirement.

    Can you tell the business requirement from a functional point of view?

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
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans