web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

getting information from joined view on both tabs

(0) ShareShare
ReportReport
Posted on by 1,199

Hello,

I have joined view to my custom form like that:

5483.JPG

Then I added the following code to the init() method of my view "InventTableExpandedShort_ICL" to help AX with relation:

public void init()
{
    super();
    this.queryBuildDataSource().addLink(fieldNum(ProductAvailability_ICL,ItemId),fieldNum(InventTableExpandedShort_ICL,ItemId));
}

On my form I have two datasources for ProductAvailability_ICL table:

1)ProductAvailability_ICL

2) ProductAvailability_Batch

They are related like that:

5736.JPG

And inside ProductAvailability_Batch datasource init method there is a dynalink:

    this.queryBuildDataSource().clearDynalinks();
    this.queryBuildDataSource().addDynalink( fieldNum(ProductAvailability_ICL, InventBatchId),
                                                ProductAvailability_ICL,
                                                fieldNum(ProductAvailability_ICL, InventBatchId));

I need a productname field from my view InventTableExpandedShort_ICL showed on both tabs of the form. One tab of the form contains grid fields from ProductAvailability_ICL datasource and other tab contains grid fields from ProductAvailability_Batch. When I add productname to the grid ProductAvailability_ICL it shows fine but when I add productname to ProductAvailability_Batch it doesn't show productname correctly for my itemids. What am I missing?

Thanks.

I have the same question (0)
  • dark_knight Profile Picture
    1,199 on at

    Solved. If anyone is interested I should have added the same InventTableExpandedShort_ICL view to the list of datasources second time and then join it to the ProductAvailability_Batch datasource.

  • Michal Krejza Profile Picture
    Microsoft Employee on at

    Hi Azat,

    Thank you fort letting us know.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 495 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 315 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans