Announcements
No record found.
Hi everyone and thanks in advance for your input on my problem;I am student and working on a project with D365 FinOps,I added a NoYes enum to the HcmWorker form which I put it in an extension of the DirPerson table, in another form I have a display method that will assess if the checkbox is on Yes or No and depending on the result a value will be displayed, I created this method and put all possible FK relation ships that I could think of but for some reason it always returns the value corresponding to No even if Yes was the one selected in the check box, I'm really blocked with no solution on the matter and really appreciate your help.
Please use the debugger to find out what's going on in your method. Note that relations have nothing to do with it if you do everything in code.
Also note that a half of your code has no effect. I can be reduced to this:
public display real houseHol(INBEmployeeSalary _salary) { if (DirPerson::find(_salary.RefRecId).INBHouseHolder) { return 150; } return 10; }
Thanks Martin for showing me the right way to reduce it and your guidance as always.
as for a solution; I found out that the HcmWorker FK relation that I created before can be utilized here to solve my probelm without depending on another FK relation to DirPerson.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 617
André Arnaud de Cal... 461 Super User 2026 Season 1
Syed Haris Shah 298 Super User 2026 Season 1