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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Problem reading data from checkbox of type NoYes enum

(0) ShareShare
ReportReport
Posted on by 99

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.


pic12.jpg

pic22.jpg

pic3.JPG

pic4.JPG

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

    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;
    }

  • Suggested answer
    Fares Ben Miled Profile Picture
    99 on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

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
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans