Notifications
Announcements
No record found.
The Parent Grid is based on the purchase table and the Child Grid is based on vendinvoiceTrans
It's linked the the PurchID but the child grid show all the related records.
What am I doing wrong?
Thanks
Hi Brianmaric,
Can you describe what you mean with "but the child grid show all the related records"? Do you mean to say, you see all VendInvoiceTrans records despite a correct link between these tables? Can you share how you defined the join relation on the form data sources?
Yes that is what I meant. I see all the related records despite a correct link (PurchId)
btw, the adding the following code to executeQuery method of VendInvoiceTrans seems to do the trick..
public void executeQuery() { QueryBuildDataSource qbds; QueryBuildRange qbr; MultiSelectionHelper selectionHelper = MultiSelectionHelper::construct(); selectionHelper.parmDataSource(PurchTable_ds); QueryBuildDataSource VendInvoiceTransQbds = VendInvoiceTrans_ds.queryBuildDataSource(); PurchTable purchTablelocal = selectionHelper.getFirst(); while (purchTablelocal) { VendInvoiceTransQbds.addRange(fieldNum(VendInvoiceTrans, PurchId)).value(queryValue(purchTablelocal.Purchid)); purchTablelocal = selectionHelper.getNext(); } super(); }
I'm wondering if this is the best way to do this..
Does VendinvoiceTrans have a relation to PurchTable? If not, the system doesn§t know how to create the link. You would need to either add a relation in AOT or use addLink() when intializing the form.
But if you want transactions for several selected orders, you incdeed need to do it in code.
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 503 Most Valuable Professional
André Arnaud de Cal... 434 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional