Notifications
Announcements
No record found.
Hi All,
It seems that there is a 1:N relation between SalesTable.SalesId and SalesLines.SalesId.
When I create a simple query, can I also add SalesLine as a child data source of SalesTable ? or should it be always the case that the SalesTable is the child data source of the SalesLine in the query if I want to relate these two tables each other?
Thank you.
Hi Shawn,
You can add SalesTable as a child datasource to SalesLine in your query. You can check the query SalesLineSRS as an example.
Hi Sorry,
the other way round.. can we add Sales Line as a child data source of Sales Table?
Yes, you can.
Yes, you can always do that. You can check the query SalesTableListPagePartiallyPicked as am example. If you are looking to loop through all the data, you should change the Fetch mode for "SalesLine" datasource to "OneToN".
I would like to make a relation btw ReqTrans and InventTrans.
I have ReqTrans as a main data source and added SalesTable as a child data source.
Then I wonder if I have to add SalesLine as a child data source of SalesTable or add it under ReqTrans data source directly and add a relation.
what is the preferred way of working?
It depends of what you want to achive. Joining a table with an order header or an individual order line are two different things.
In my case, the latter is the purpose.
If your requirement is to join ReqTrans with InventTrans, Why don't you join ReqTrans with InventTransOrigin and join InventTrans to InventTransOrigin? Or do you need the data from sales orders as well?
Yes. I need data from Sales order as well.
If you need sales order line details only you can try joining SalesLine to InventTransOrigin based on the field InventTransId.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader