-1

I have tried the following code and it doesn't seem to work:

this.setFieldFlag("VIEW.LOC". MboConstants.REQUIRED, True)
Nenna Anya
  • 67
  • 7
  • 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? – flaxel Sep 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? – Preacher Sep 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 Anya Sep 22 '20 at 17:35

1 Answers1

0

The answer is : getMboValue("VIEW.LOC").setRequired(true);

Nenna Anya
  • 67
  • 7