Hi,
When trying to update an employee record (Human resources -- workers -- employees), like updating worker description field, I get this error:
Field 'Gender' in table 'DirPerson' has not been explicitly selected.
This is the code I have
[ExtensionOf(tableStr(DirPerson))] final class DirPerson_Extension { public void update() { DirPerson dirPersonOld = this.orig(); next update(); if(dirPersonOld.Gender != this.Gender) { } } }
Hi Junior AX,
Can you tell what exact business requirement needs to be covered? Can your requirement be covered with help of extending the modifiedField method? Do you need this field from the DirPerson table or do you need to validate a change on the gender field from the HcmPersonPrivateDetails table?
Can you also tell if this error comes from changing details on the standard form or do you have e.g. custom coding for updating worker records?
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156