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

FirstOnly property is not working when I use it in Query datasources

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

I'm struggling with adding the warehouse control to the "list items with setup" in the Item Coverage SetUp Interface.

The interface to edit is in the SetUp scetion of the Master planning module and it is as follows: 

03213.Capture1.PNG

My client's request is to add the warehouse found in the top of list when we click on item coverage button :

5810.Capture2.PNG

My problem is that when I add it, I get too many items records as long I have in the inventDim Table.

I'm working in the ReqItemTableSetup form by adding a new datasource named SPLInventDimLocation which is based on a view as you can see below in the images:

0523.Capture3.PNG

The view itself is based on query named SPLInventDimLocation:

3603.Capture5.PNG

In this query, I tried to ensure that we select only one record from InventDim by itemId. Therefore, I've changed the firstOnly property to Yes and i've set the fetch mode to 1:1

1411.Capture4.PNG

I've done the same thing in the init() and executeQuery() methods of the datasource as follows:8228.Capture6.PNG

As a result, I'm getting too many items with the same item number in items with setup which is not efficient.

2308.Capture7.PNG

Can anyone explain to me why am I getting too many items numbers even when I use the first only property?

PS: I'm not using the display method to show warehouse control in order to ensure that filters and sort are allowed for users.

Thanks in advance.

*This post is locked for comments

I have the same question (0)

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

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans