Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

replacement key index

Posted on by 1,113
Hi,

I created a table with the following fields:

Number    Id       codeX      codeY      Field1
------        ---      -------      -------     --------
1               id1     codex1     codey1      fieldz
2               id2     codex1     codey1      fieldz
 
Index with duplicate = No, is the field 'Number' and this index is the replacement key

now in SalesLine, i created a new recId field that has a relation with the recId from the table above.

i added this field in salesTable form as a reference group, and i overrided the lookup method to return  codeX, Id, codeY and Field1 only

The lookup seems to work fine, however when i type in the field to filter values for codeX, like typing codex1, it doesn't return anything. But if i type in the field the value "1" which is the number field, then it returns results for codeX. (even though number field doesn't appear in the lookup)

I suspect the issue is because of the index replacement key

So I created a new index with codeX, Id, codeY and Field1, and made this one the replacement key instead. Now when i type values for codeX, the filter works but now when i choose a value, the value appears combined with the 4 values of the 4 fields. Can I only see codeX after i choose a value instead of the 4 values?
Categories:

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans