Please follow the [contribution guideline](https://stackoverflow.com/help/how-to-ask) how to ask a good question. What do you expect as a result? Is there an error message? Can you post a minimal example?
– flaxelSep 21 '20 at 14:21
Which class did you extend? Which method? Did you associate it with an object or attribute? Are you aware that `VIEW.LOC` will be seen as a relationship-dot-attributename, so the `LOC` attribute at the end of the `VIEW` relationship is what will be made required?
– PreacherSep 21 '20 at 14:58
I am not extending a class. I am just trying to set a field in Maximo to required in the Java code.
– Nenna AnyaSep 22 '20 at 17:35
1 Answers1
0
The answer is : getMboValue("VIEW.LOC").setRequired(true);