web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Table relation not working effectively

(0) ShareShare
ReportReport
Posted on by 212

Hello

I have 2 forms, namely AllocationMain and AllocationFinal. For AllocationMain, I have used HcmWorker table from the AOT as the form Data source  whereas for AllocationFinal, I have used AK_AllocationFinal table that I have created as the data source. Both the tables have PersonnelNumber as the common Field. In AllocationMain form, I have added ShowAllocation menu item button which has menu item property set as AllocationFinal display menu item. My requiremnet is that when I click ShowAllocation button, I should only see those records from the AllocationFinal form whose PersonnelNumber is same as that of the selected record in the AllocationMain  form. 

Right now, when I click the ShowAllocation button, it show all the records irrespective of the PersonnelNumber of the  selected record in the AllocationMain form.

I have tried adding relation in the AK_AllocationFinal table on PersonnelNumber such that AK_AllocationFinal.PersonnelNumber == HcmWorker.PersonnelNumber.

But this is also not working. I suspect this is because I have used Hcmworker table from the AOT, this is a system table and not present in my solution.

Please help. 

I have the same question (0)
  • Martin Dráb Profile Picture
    238,544 Most Valuable Professional on at

    The relation looks correct. You surely can make relations to standard tables.

    You may want to verify that HcmWorker record is passed to AllocationFinal form through Args. If not, maybe the menu item button has a wrong value in DataSource property, or there is some code interfering with the standard behavior.

    If you get the record, it means that the dynalink wasn't created for some reason, or it was removed by some code.

    Of course, make sure that your solution is fully (and successfully) compiled, therefore the relation is actually used at runtime.

    This should allow you to isolate the problem, at least.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 629 Super User 2025 Season 2

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 444 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 288 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans