Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Multi Table lookup fields
Finance forum
Unanswered

Multi Table lookup fields

Posted on by 3
I have a form with 2 datasources QuotationTable and QuotationLine.. QuotationLine has a field called ItemId related to InventTable. I want to override the lookup for ItemId 
 
so, I tried to override lookup method of itemId field in QuotationLine but it gave me the error that 2 lookup forms trying to open! So I override the event handler of ItemNumber control in the grid.
- the sysTableLookup has QuotationLine as a parameter but it isn't used as qbds below.
- I tried to have Quotation line as qbds and then link qbdsInventTable with it and I get the error: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
- the error I get: 'Failed to execute query because no root data source on the form matches the root datasource on the query.'
 
  • Layan Jwei Profile Picture
    Layan Jwei 4,728 Super User on at
    Multi Table lookup fields
    Hi,
     
    SysTableLookup doesn't support adding fields from multiple tables.
    You could create a View with all of those joins and use it with sysTableLookup
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,773 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,513 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans